/* ═══ 📱 Comprehensive Mobile Responsiveness ═══ */
@media (max-width: 768px) {
    body {
        padding: var(--space-sm);
    }
    
    .container {
        max-width: 100%;
    }
    
    /* Header on mobile */
    .header {
        padding: var(--space-md);
    }
    .header h1 {
        font-size: 1.1rem !important;
    }
    .subtitle {
        font-size: 0.7rem !important;
    }
    .header-logo {
        font-size: 1.5rem !important;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 38px;  /* Touch target */
    }
    
    .controls {
        gap: 6px;
    }
    
    /* Search */
    .search-wrapper {
        min-width: 100%;
        max-width: 100%;
        order: -1;
    }
    
    /* Symbol cards: better on mobile */
    .symbol-card {
        padding: 10px 12px;
    }
    
    /* Modals */
    .modal-overlay {
        padding: var(--space-sm);
    }
    .modal {
        border-radius: var(--radius-lg);
    }
    .modal-header {
        padding: var(--space-md);
    }
    .modal-header h2 {
        font-size: 0.95rem !important;
    }
    .modal-body {
        padding: var(--space-md);
    }
    
    /* Tabs */
    .tabs {
        flex-wrap: wrap;
        gap: 4px;
    }
    .tab-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        min-height: 36px;
    }
    
    /* Theme toggle */
    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    /* Toast */
    .toast {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .symbols-grid {
        grid-template-columns: 1fr !important;
    }
    
    .controls > .btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
    
    .modal-header h2 {
        font-size: 0.85rem !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}



