/* User Menu Styles */

.user-menu-container {
    position: relative;
    display: none; /* Hidden by default, shown when logged in */
    z-index: 100001;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #2d3748;
}

.user-menu-btn:hover {
    border-color: #FF6B35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-name {
    font-size: 0.9rem;
    color: #2d3748;
}

.user-arrow {
    font-size: 0.7rem;
    color: #718096;
    transition: transform 0.3s ease;
}

.user-menu-btn:hover .user-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.user-dropdown {
    position: fixed;
    top: 60px;
    right: 20px;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100001;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-display-name {
    font-weight: 600;
    font-size: 1rem;
}

.user-email {
    font-size: 0.8rem;
    opacity: 0.9;
}

.user-dropdown-menu {
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: #667eea;
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.logout-item {
    color: #e53e3e;
}

.logout-item:hover {
    background: #fff5f5;
    color: #c53030;
}

.admin-only {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #667eea;
    font-weight: 500;
}

.admin-only:hover {
    background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
}

/* Login Link */
.login-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.login-link i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        min-width: auto;
        max-width: calc(100vw - 20px);
        margin: 0 auto;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu-btn {
        padding: 0.5rem;
    }
    
    .user-dropdown-header {
        padding: 1rem;
    }
    
    .user-avatar-large {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}
