/* ============================================================
   ZANTREXGUIDE.MONSTER — RESPONSIVE STYLESHEET
   Mobile-first breakpoints
   ============================================================ */

/* ---- BREAKPOINTS
   xs: 0–479px      (small mobile)
   sm: 480–767px    (mobile)
   md: 768–1023px   (tablet)
   lg: 1024–1279px  (small desktop)
   xl: 1280px+      (desktop)
   ---- */

/* ============================================================
   TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --space-section: 5.5rem;
    }

    /* Header */
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-actions .btn-glow {
        display: none;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        justify-content: center;
    }

    .hero-subtext {
        margin: 0 auto var(--space-xl);
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust-row {
        justify-content: center;
    }

    .potion-showcase {
        width: 340px;
        height: 380px;
    }

    .potion-orb-main {
        width: 200px;
        height: 280px;
    }

    .potion-orb-secondary {
        width: 90px;
        height: 120px;
    }

    /* Potions Grid */
    .potions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Story Grid */
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .story-img-frame img {
        height: 380px;
    }

    /* Ingredients */
    .ingredients-scroll-row {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Craft Steps */
    .craft-steps {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .craft-step {
        flex: 1 1 40%;
        min-width: 180px;
    }

    .craft-connector {
        display: none;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
    }

    /* Newsletter */
    .newsletter-glass {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

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

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    /* Detail */
    .detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Values */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Council */
    .council-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }

    /* Ingredients Archive */
    .ingredient-full-card {
        grid-template-columns: 200px 1fr;
    }

    /* Timeline */
    .timeline::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        order: unset;
        text-align: left;
        padding: 0;
    }
}

/* ============================================================
   MOBILE (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
    :root {
        --space-section: 4rem;
        --space-3xl: 4rem;
        --space-2xl: 3rem;
    }

    /* Container */
    .container {
        padding: 0 var(--space-md);
    }

    /* Header */
    .logo-text {
        font-size: 0.78rem;
    }

    /* Hero */
    .hero-headline {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .potion-showcase {
        width: 280px;
        height: 300px;
    }

    .potion-orb-main {
        width: 160px;
        height: 220px;
    }

    .potion-orb-secondary {
        width: 70px;
        height: 95px;
    }

    .hero-rune-circle {
        width: 260px;
        height: 260px;
    }

    /* Potions Grid */
    .potions-grid {
        grid-template-columns: 1fr;
    }

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

    /* Section Headers */
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    /* Story Section */
    .story-stat-card {
        display: none;
    }

    /* Ingredients Row */
    .ingredients-scroll-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Newsletter */
    .newsletter-glass {
        padding: var(--space-xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    /* Detail */
    .effects-grid {
        grid-template-columns: 1fr;
    }

    .detail-purchase {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-price-row {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    /* Tabs */
    .tabs-nav {
        flex-direction: column;
    }

    .tab-panel {
        padding: var(--space-lg);
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Council */
    .council-grid {
        grid-template-columns: 1fr;
    }

    /* Craft Steps */
    .craft-step {
        flex: 1 1 100%;
    }

    /* Ingredients Archive */
    .ingredient-full-card {
        grid-template-columns: 1fr;
    }

    .ingredient-full-visual img {
        height: 220px;
        min-height: unset;
    }

    .ingredient-data {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .ingredient-data dt {
        margin-top: 0.5rem;
        color: var(--color-text-secondary);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Page Hero */
    .page-hero {
        padding-top: calc(var(--header-height) + var(--space-xl));
        padding-bottom: var(--space-2xl);
    }

    /* Legal */
    .legal-nav-links {
        flex-direction: column;
        align-items: center;
    }

    /* Timeline */
    .timeline-item {
        margin-bottom: var(--space-xl);
    }

    /* Breadcrumb */
    .breadcrumbs {
        font-size: 0.72rem;
    }

    /* Hero CTA group */
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    /* Thumbnail row */
    .detail-thumbnail-row {
        gap: 0.4rem;
    }

    .thumb-btn {
        width: 56px;
        height: 56px;
    }
}

/* ============================================================
   SMALL MOBILE (max-width: 479px)
   ============================================================ */
@media (max-width: 479px) {
    :root {
        --space-section: 3rem;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .brand-logo .logo-text {
        font-size: 0.7rem;
    }

    .ingredients-scroll-row {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .hero-trust-row {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .potion-showcase {
        width: 240px;
        height: 260px;
    }

    .potion-orb-secondary {
        display: none;
    }

    .cta-block {
        padding: var(--space-xl);
    }
}

/* ============================================================
   LARGE DESKTOP (min-width: 1400px)
   ============================================================ */
@media (min-width: 1400px) {
    :root {
        --space-section: 10rem;
    }

    .hero-headline {
        font-size: 4.5rem;
    }

    .potions-grid {
        gap: var(--space-xl);
    }
}