/* Mobile-First UI Improvements */

/* Touch-friendly button sizes */
@media (max-width: 768px) {
    /* Minimum touch target sizes */
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    a.nav-link,
    .tab-btn,
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Form elements touch-friendly */
    input,
    select,
    textarea {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Card interactions */
    .event-card,
    .artist-card,
    .ticket-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 16px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .event-card:active,
    .artist-card:active,
    .ticket-card:active {
        transform: scale(0.98);
    }
    
    /* Header improvements */
    .header {
        padding: 1rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(20px);
        background: rgba(20, 20, 25, 0.95);
    }
    
    .header-content {
        gap: 1rem;
        align-items: center;
    }
    

    
    /* Navigation improvements */
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Modal improvements */
    .auth-modal-content,
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        border-radius: 16px;
    }
    
    /* Tab navigation */
    .tabs-header {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.75rem 1.25rem;
        border-radius: 25px;
    }
    
    /* Grid layouts */
    .events-grid,
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Search inputs */
    .search-input {
        border-radius: 12px;
        padding: 0.875rem 1rem 0.875rem 3rem;
        font-size: 1rem;
    }
    
    .search-icon {
        left: 1rem;
        width: 20px;
        height: 20px;
    }
    
    /* Page spacing */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    /* Loading states */
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
    
    /* Swipe indicators */
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .page-header {
        padding: 1rem 0;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    /* Form adjustments */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Button groups */
    .filter-buttons,
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Card content */
    .event-card,
    .artist-card {
        padding: 1rem;
    }
    
    .card-image {
        height: 200px;
        border-radius: 12px;
    }
    
    /* Text sizing */
    body {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Dark mode specific mobile adjustments */
@media (max-width: 768px) {
    [data-theme="light"] .header {
        background: rgba(245, 242, 232, 0.95);
    }
    
    [data-theme="light"] .event-card,
    [data-theme="light"] .artist-card {
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="light"] .search-input {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    * {
        /* Disable hover effects on touch devices */
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Optimize animations */
    .card-hover-effect,
    .complex-animation {
        animation: none;
        transition: none;
    }
    
    /* Reduce blur effects */
    .backdrop-blur {
        backdrop-filter: blur(5px);
    }
    
    /* Optimize gradients */
    .complex-gradient {
        background: var(--bg-primary);
    }
}

/* Touch interactions */
@media (pointer: coarse) {
    /* Increase clickable areas */
    .close-btn,
    .icon-btn {
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better spacing for finger navigation */
    .nav-links {
        gap: 1.5rem;
    }
    
    /* Swipe-friendly carousels */
    .swiper-slide {
        padding: 0 0.5rem;
    }
}