/**
 * Profile Page CSS
 */

/* Profile Card */
.profile-card {
    background: var(--surface-color, #FFFFFF);
    border: 1px solid var(--border-color, #E6E4DD);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.profile-card h5 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #E6E4DD);
    font-family: var(--font-serif);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px 8px;
    border-radius: 8px;
    background: #f8f9fa;
}

.stat-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-item.clickable:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #191919);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #5F5F5F);
}

/* Avatar Section */
.avatar-section {
    text-align: center;
    margin-bottom: 32px;
}

.current-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--border-color, #E6E4DD);
    margin: 0 auto 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.avatar-option {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    background: #f5f5f5;
}

.avatar-option:hover {
    border-color: var(--accent-color, #D97757);
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--accent-color, #D97757);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.2);
}

.avatar-option img {
    width: 100%;
    height: 100%;
}

/* Form Section */
.form-section {
    margin-bottom: 24px;
}

.form-section h5 {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #E6E4DD);
}

/* Followers Modal */
.followers-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.followers-modal.show {
    display: flex;
}

.followers-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.followers-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #E6E4DD);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.followers-modal-header h5 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 600;
}

.followers-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
}

.followers-modal-header .close-btn:hover {
    color: var(--text-primary);
}

.followers-modal-body {
    padding: 16px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.follower-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.follower-item:hover {
    background: #f8f9fa;
}

.follower-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.follower-item-info {
    flex: 1;
    min-width: 0;
}

.follower-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.follower-item-bio {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-followers {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-followers i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profile-card {
        padding: 16px;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
}

