/* ═══ Profile Page & Interests Editor ═══ */

/* Profile Page Layout */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
}

/* Override management-grid when profile is showing */
.management-grid:has(.profile-page) {
    display: block;
}

/* User Info Card */
.profile-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-display-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.profile-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

.profile-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Profile Sections */
.profile-section {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-section-header {
    margin-bottom: 20px;
}

.profile-section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

.profile-section-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interest-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.interest-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.interest-chip.active {
    background: rgba(244, 114, 182, 0.12);
    border-color: rgba(244, 114, 182, 0.4);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.08);
}

.interest-chip.active .interest-label {
    color: #f9a8d4;
}

.interest-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.interest-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

/* Save Button */
.btn-save-interests {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f472b6, #a855f7);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-interests:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.3);
}

/* Interests Modal (kept for potential reuse) */
.interests-modal {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    animation: modalSlideUp 0.3s ease;
}

.interests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.interests-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.interests-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    margin-bottom: 24px;
    line-height: 1.4;
}

.interests-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .interests-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .interest-chip {
        padding: 12px 14px;
    }
    .profile-card-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-page {
        max-width: 100%;
    }
}
