/* Profile Component Styles */

/* ========== PROFILE AVATAR STYLES ========== */

/* Navigation profile avatar (desktop) */
.profile-avatar-nav {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.profile-avatar-nav:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Large profile avatar (dropdown header) */
.profile-avatar-large {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Mobile profile avatar */
.profile-avatar-mobile {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Profile avatar for profile page */
.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ========== PROFILE DROPDOWN STYLES ========== */

.profile-dropdown-toggle {
    padding: 0.5rem !important;
}

.profile-dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0;
    margin-top: 0.5rem;
    min-width: 320px;
    max-width: 400px;
}

.profile-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-header h6 {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========== PROFILE INFO STYLES ========== */

.profile-info {
    margin-bottom: 1rem;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.profile-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-info-item strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 1rem;
    min-width: 60px;
    flex-shrink: 0;
}

.profile-info-item span {
    color: var(--text-secondary);
    text-align: right;
    word-break: break-word;
}

/* ========== PROFILE UPGRADE SECTION ========== */

.profile-upgrade-section {
    margin-top: 1rem;
}

.profile-upgrade-section hr {
    border-color: var(--border-color);
    margin: 1rem 0;
}

.profile-upgrade-section .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
}

.profile-upgrade-section p {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ========== MOBILE PROFILE PAGE STYLES ========== */

@media (max-width: 991px) {
    .profile-dropdown-menu {
        display: none !important;
    }
    
    .profile-info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .profile-info-item strong {
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .profile-info-item span {
        text-align: left;
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 576px) {
    .profile-card {
        padding: 1rem;
    }
    
    .profile-dropdown-menu {
        min-width: 280px;
        margin-left: -100px;
    }
    
    .profile-info-item {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ========== ANIMATION AND TRANSITIONS ========== */

.profile-dropdown-menu {
    animation: profileDropdownFadeIn 0.3s ease-out;
}

@keyframes profileDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-avatar-nav,
.profile-avatar-mobile,
.profile-avatar {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-nav:hover,
.profile-avatar-mobile:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ========== ACCESSIBILITY ========== */

.profile-dropdown-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.profile-info-item strong,
.profile-info-item span {
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .profile-avatar-nav,
    .profile-avatar-mobile,
    .profile-avatar,
    .profile-dropdown-menu {
        animation: none;
        transition: none;
    }
}

/* ========== DARK MODE SUPPORT ========== */

@media (prefers-color-scheme: dark) {
    .profile-card {
        background: var(--bg-secondary, #2d3748);
        color: var(--text-primary, #f7fafc);
    }
    
    .profile-info-item {
        border-bottom-color: var(--border-color, #4a5568);
    }
    
    .profile-header {
        border-bottom-color: var(--border-color, #4a5568);
    }
}