/* TankoGame - Responsive Design */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
        height: auto;
    }

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

    .hero-showcase {
        order: -1;
    }

    .hero-title {
        font-size: 2rem;
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

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

    .logo h1 {
        font-size: 0.9rem;
    }

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

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 10, 30, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 2px solid rgba(217, 70, 166, 0.3);
        display: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        z-index: 1100; /* ensure menu overlays header/content */
    }

    .nav-menu.active {
        display: flex;
        height: 100vh;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .search-box {
        max-width: 100%;
        left: 0;
        border: none;
        height: 100vh;
    }

    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .tv-wall-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    }

    .action-blocks {
        flex-wrap: wrap;
    }

    .hero-description {
        font-size: 0.7rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

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

    .category-card {
        padding: var(--spacing-md);
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-name {
        font-size: 0.7rem;
    }

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

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

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

    .game-card-title {
        font-size: 0.6rem;
    }

    .game-card-horizontal {
        flex: 0 0 250px;
    }

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

    /* Footer mobile centering */
    .footer-content {
        justify-items: center;
        text-align: center;
    }
    .footer-column ul li a {
        justify-content: center;
    }
    .footer-bottom p {
        font-size: 0.8rem; /* larger bottom copyright on mobile */
    }


    .footer-brand {
        grid-column: 1;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-badge {
        font-size: 0.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card-horizontal {
        flex: 0 0 200px;
    }

    .play-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Large Desktop (min-width: 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

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

    .game-card-horizontal {
        flex: 0 0 350px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

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

    .hero-description {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .search-box,
    .mobile-menu-toggle,
    .scroll-controls,
    .footer {
        display: none;
    }

    .hero {
        margin-top: 0;
    }

    .games-grid,
    .categories-grid {
        break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}

