/* User Profile Dropdown Styles */
.user-profile-dropdown {
    position: relative;
    margin-left: 1rem;
}

.profile-dropdown-btn {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.7rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    min-width: 44px; /* Minimum touch target size */
    min-height: 44px; /* Minimum touch target size */
}

.profile-dropdown-btn:hover,
.profile-dropdown-btn:focus {
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
}

.profile-dropdown-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.profile-dropdown-btn .fa-user-circle {
    font-size: 1.5rem;
    margin-right: 0.3rem;
}

.profile-dropdown-btn .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

/* Rotate chevron when dropdown is open */
.profile-dropdown-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.profile-dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--card-bg);
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.2s ease;
}

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

/* Remove hover-based display and use a class for showing the dropdown */
.profile-dropdown-content.show {
    display: block;
}

.profile-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

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

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

.profile-menu {
    padding: 0.5rem 0;
}

.profile-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--light-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.profile-menu a:hover,
.profile-menu a:focus {
    background-color: rgba(110, 68, 255, 0.1);
    color: var(--primary-color);
    outline: none;
}

.profile-menu a:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-color) inset;
}

.profile-menu a i {
    margin-right: 0.8rem;
    width: 1.2rem;
    text-align: center;
}

.profile-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.delete-account-link {
    color: #dc3545 !important;
}

.delete-account-link:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Responsive styles for user profile dropdown */
@media (max-width: 768px) {
    .user-profile-dropdown {
        position: static;
    }
    
    .profile-dropdown-content {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
} 