/* ============================================
   AniCineHub - Responsive Styles
   ============================================ */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-md);
        justify-content: center;
        border-radius: 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

/* Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .card-content {
        padding: var(--spacing-sm);
    }

    .card-title {
        font-size: 1rem;
    }

    .card-meta {
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        padding: var(--spacing-md);
    }

    .modal-body iframe {
        height: 250px;
    }

    .nav-right {
        gap: var(--spacing-xs);
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .search-wrapper input {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-text {
        display: none;
    }

    .modal-body iframe {
        height: 200px;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: translateY(0);
    }

    .card:active {
        transform: scale(0.98);
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.95);
    }

    .icon-btn:active {
        transform: scale(0.9);
    }

    /* Larger touch targets */
    .nav-link {
        min-height: 48px;
    }

    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
    }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .modal-body iframe {
        height: 300px;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .card-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Adjustments (if system prefers dark) */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--jet-black);
    }
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .scroll-to-top,
    .cookie-consent,
    .modal {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        page-break-inside: avoid;
    }
}