/* Mobile-specific styles for user dropdown menu */

/* Large Mobile/Tablet Styles (1024px and below) */
@media (max-width: 1024px) {
    /* Improve touch targets */
    .profile-dropdown-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    /* Ensure dropdown is properly positioned */
    .user-profile-dropdown {
        position: relative !important;
        z-index: 1000 !important;
    }
    
    /* Ensure dropdown content appears below the button */
    .profile-dropdown-content {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        width: 250px !important;
        border-radius: 8px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        animation: fadeIn 0.2s ease !important;
        transform: none !important;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Medium Mobile Styles (768px and below) */
@media (max-width: 768px) {
    /* Adjust dropdown position for smaller screens */
    .profile-dropdown-btn {
        padding: 6px;
    }
    
    /* Keep dropdown at the top but make it wider */
    .profile-dropdown-content {
        width: 230px !important;
    }
    
    /* Adjust profile header for smaller screens */
    .profile-header {
        padding: 12px;
    }
    
    .profile-icon {
        font-size: 2rem;
        margin-right: 10px;
    }
    
    .profile-name {
        font-size: 0.95rem;
    }
    
    .profile-email {
        font-size: 0.75rem;
    }
    
    /* Adjust menu items for better touch targets */
    .profile-menu a {
        padding: 12px 15px;
        min-height: 44px;
    }
}

/* Small Mobile Styles (576px and below) */
@media (max-width: 576px) {
    /* Keep dropdown at the top but adjust for very small screens */
    .profile-dropdown-content {
        width: 200px !important;
        right: -10px !important; /* Adjust position to prevent overflow */
    }
    
    /* Further reduce sizes for very small screens */
    .profile-header {
        padding: 10px;
    }
    
    .profile-icon {
        font-size: 1.8rem;
    }
    
    .profile-name {
        font-size: 0.9rem;
    }
    
    .profile-email {
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile Styles (400px and below) */
@media (max-width: 400px) {
    /* Ensure dropdown doesn't overflow screen */
    .profile-dropdown-content {
        width: 180px !important;
        right: -5px !important;
    }
} 