/* ==========================================
   Responsive Design v3.0
   ========================================== */

@media (min-width: 1025px) {
    .hero-decoration { display: block; }
    .scene-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
}

@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero-content h2 { font-size: 2.2rem; }
    .feature-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .scenes-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .stats-row { gap: 2rem; }
}

@media (max-width: 768px) {
    .nav { padding: 0.75rem 1rem; }
    .nav-menu {
        position: fixed; left: -100%; top: 56px;
        flex-direction: column; background: var(--bg-white);
        width: 100%; text-align: center; transition: left 0.3s ease;
        box-shadow: var(--shadow-lg); padding: 1.5rem 0; gap: 0; z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { display: block; padding: 0.75rem 1rem; }
    .menu-toggle { display: flex; }

    .hero { padding: 3rem 1.5rem 2.5rem; }
    .hero-content h2 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-decoration { display: none !important; }

    .stats-row { gap: 1rem; flex-wrap: wrap; justify-content: space-around; }
    .stat-pill { min-width: 40%; }
    .stat-pill strong { font-size: 1.2rem; }

    .features, .how-it-works, .scene-preview { padding: 3rem 1rem; }
    .section-title { font-size: 1.6rem; }
    .feature-grid { grid-template-columns: 1fr; }

    .steps-timeline { flex-direction: column; gap: 1.5rem; }

    .preview-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .filters { flex-direction: column; align-items: stretch; }
    .filter-group { flex-direction: column; align-items: stretch; }
    .search-box { min-width: 100%; }

    .scenes-grid { grid-template-columns: 1fr; }
    .scene-detail { padding: 1.25rem; }
    .dialogue-controls { flex-direction: row; flex-wrap: wrap; }

    .vocab-search { flex-direction: column; }
    .vocab-search button { width: 100%; }
    .filter-tabs { flex-wrap: wrap; }
    .vocab-list { grid-template-columns: 1fr; }

    .modal-content { margin: 0.75rem; max-width: calc(100% - 1.5rem); padding: 1.5rem; }

    .paths-grid { grid-template-columns: 1fr; }
    .stats-cards { grid-template-columns: repeat(3, 1fr); }

    .print-items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .page-header h2 { font-size: 1.8rem; }
    .page-header { padding: 2rem 0 1.5rem; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-content h2 { font-size: 1.5rem; }
    .hero .subtitle { font-size: 0.9rem; }
    .section-title { font-size: 1.4rem; }
    .stat-pill { min-width: 45%; }
    .stat-pill strong { font-size: 1rem; }
    .stat-pill small { font-size: 0.7rem; }
    .scene-card { padding: 1rem; }
    .scene-card h3 { font-size: 1rem; }
    .preview-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .preview-card { padding: 1rem; }
    .preview-icon { font-size: 2rem; }
    .alphabet-filter { gap: 0.2rem; }
    .letter-btn { padding: 0.3rem 0.5rem; font-size: 0.75rem; }
    .path-card { padding: 1.25rem; }
    .print-items { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .print-item { padding: 0.75rem; }
}

@media print {
    .header, .footer, .filters, .hero-buttons, .close-btn,
    .dialogue-controls, .audio-player, .menu-toggle, .btn, .btn-download,
    .stats-bar { display: none !important; }
    body { background: white; }
    .scene-card, .vocab-card, .path-card, .feature-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
