/* ═══════════════════════════════════════════════════
   World Box TV Theme - Responsive Styles
   ═══════════════════════════════════════════════════ */

/* ─── Tablet (max-width: 1024px) ─── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-mini-features {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-devices-img {
        max-height: 350px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .downloads-visual {
        text-align: center;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ─── Mobile Large (max-width: 768px) ─── */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-links li a {
        display: block;
        padding: 14px 16px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
        width: 100%;
    }

    .nav-social {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Hero - full width slider */
    .hero-section {
        padding: 0;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 16px;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-devices-img {
        max-height: 250px;
    }

    /* Sections */
    .about-section,
    .downloads-section,
    .features-section,
    .plans-section,
    .faq-section,
    .cta-section {
        padding: 60px 0;
    }

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

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    /* Plans */
    .plans-grid {
        grid-template-columns: 1fr;
    }

    /* Downloads */
    .device-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .device-actions {
        width: 100%;
        justify-content: center;
    }

    .downloads-placeholder-visual {
        height: 300px;
    }

    .dl-tv {
        width: 200px;
        height: 130px;
    }

    /* Support */
    .support-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links li a {
        justify-content: center;
    }

    /* Shop */
    .shop-products-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-title {
        font-size: 24px;
    }

    .product-detail-price {
        font-size: 28px;
    }

    .product-trust-badges {
        flex-direction: column;
    }

    /* Posts */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* 404 */
    .error-content h1 {
        font-size: 80px;
    }

    .error-content h2 {
        font-size: 22px;
    }

    /* Page Hero */
    .page-hero-mini {
        padding: 100px 0 40px;
    }

    .page-hero-mini .page-title {
        font-size: 1.6rem;
    }

    /* Toast */
    .wbtv-toast {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    /* Back to top & WhatsApp */
    .back-to-top {
        bottom: 80px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ─── Mobile Small (max-width: 480px) ─── */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .mini-feature {
        font-size: 12px;
        padding: 6px 12px;
    }

    .plan-badge {
        font-size: 10px;
        padding: 4px 32px;
        right: -36px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

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

    .cta-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .faq-question {
        font-size: 14px;
        padding: 16px 18px;
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
        font-size: 14px;
    }

    .nav-logo img,
    .nav-logo .custom-logo {
        height: 42px;
    }

    .footer-logo img,
    .footer-logo .custom-logo {
        height: 40px;
    }
}

/* ─── Print ─── */
@media print {
    .wbtv-header,
    .whatsapp-float,
    .back-to-top,
    .nav-toggle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-section {
        background: #f0f0f0 !important;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-title,
    .section-title {
        color: #000 !important;
    }
}
