/*
 * KILLORIA BATTLE - Responsive Styling Sheet
 * Targets responsive breakpoints: 320, 360, 375, 390, 412, 430, 768, 1024, 1440
 */

/* ==========================================
   DESKTOP / EXTRA LARGE SCREENS (1440px+)
   ========================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* ==========================================
   LAPTOPS & TABLETS (1024px and below)
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 80px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-meta {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

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

    .about-content {
        order: -1;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-content h2::after {
        margin: 12px auto 0 auto;
    }

    .about-bullets {
        align-items: center;
        text-align: left;
    }

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

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .guide-arrow {
        display: none;
    }

    .refer-card {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 50px 30px;
    }

    .refer-reward-boxes {
        justify-content: center;
    }

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

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

/* ==========================================
   MOBILE DEVICES (768px and below)
   ========================================== */
@media (max-width: 768px) {
    /* Hide nav links on mobile; toggle active state via menu.js drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(11, 7, 24, 0.98);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 40px;
        z-index: 1050;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .nav-hamburger {
        display: block;
    }

    .nav-cta {
        display: none; /* Hide primary download CTA in menu bar for more space */
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .apk-card {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 30px;
    }

    .apk-grid-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .community-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ==========================================
   SMALL MOBILE DEVICES (480px down to 320px)
   ========================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-badge-wrap {
        padding: 4px 12px;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

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

    .hero-meta {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .refer-reward-boxes {
        flex-direction: column;
        gap: 16px;
    }

    .reward-box {
        width: 100%;
    }

    .contact-info-panel, .contact-form-panel {
        padding: 24px 16px;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .back-to-top.show {
        bottom: 20px;
        right: 20px;
    }
}

/* Specific checks for micro screens (320px width - e.g., Galaxy Fold) */
@media (max-width: 320px) {
    h1 {
        font-size: 2.2rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero-badge-wrap {
        margin-bottom: 16px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }
}
