/*
Theme Name: Flying Kiwi Neon
Theme URI: https://flyingkiwiirl.com
Author: FlyingKiwiIRL
Author URI: https://flyingkiwiirl.com
Description: Custom theme for FlyingKiwiIRL travel food blog. Neon Night Market aesthetic with dark mode support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flyingkiwi
Tags: food-and-drink, blog, custom-colors, dark-mode, featured-images, full-width-template, responsive-layout
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES - DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Primary - Deep Teal (Night Market Awning) */
    --teal-900: #0A4A50;
    --teal-800: #0B5258;
    --teal-700: #0D5C63;
    --teal-600: #10696F;
    --teal-500: #1A7A82;
    --teal-400: #2E9299;
    --teal-300: #3BA5AE;
    --teal-200: #6DC4CB;
    --teal-100: #B5E2E6;
    --teal-50: #E8F6F7;

    /* Accent - Neon Orange/Coral */
    --neon-orange: #FF6B35;
    --neon-glow: #FF8C5A;
    --neon-deep: #E85A2B;
    --neon-light: #FFB89A;

    /* Neutrals - Warm Paper */
    --paper: #FAF8F5;
    --paper-warm: #F5EFE8;
    --paper-dark: #EDE5DA;
    --charcoal: #2D2926;
    --charcoal-light: #3D3936;
    --smoke: #6B6560;
    --smoke-light: #9A9590;

    /* Semantic Colors */
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-live: #EF4444;

    /* Dark Mode Colors */
    --night: #141414;
    --night-surface: #1E1E1E;
    --night-elevated: #2A2A2A;
    --night-border: #3A3A3A;
    --night-text: #F5F3F0;
    --night-text-muted: #A8A5A0;

    /* Typography */
    --font-display: 'Big Shoulders Display', 'Impact', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-accent: 'Caveat', 'Comic Sans MS', cursive;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* Font Sizes - Fluid */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-neon: 0 0 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(255, 107, 53, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;

    /* Container */
    --container-max: 1280px;
    --container-narrow: 768px;

    /* Active Theme Colors (Light Mode Default) */
    --bg-primary: var(--paper);
    --bg-secondary: var(--paper-warm);
    --bg-elevated: #FFFFFF;
    --text-primary: var(--charcoal);
    --text-secondary: var(--smoke);
    --text-muted: var(--smoke-light);
    --border-color: var(--paper-dark);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: var(--night);
    --bg-secondary: var(--night-surface);
    --bg-elevated: var(--night-elevated);
    --text-primary: var(--night-text);
    --text-secondary: var(--night-text-muted);
    --text-muted: var(--smoke-light);
    --border-color: var(--night-border);

    /* Intensify neon in dark mode */
    --shadow-neon: 0 0 30px rgba(255, 107, 53, 0.5), 0 0 60px rgba(255, 107, 53, 0.3);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Film Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::before {
    opacity: 0.06;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 var(--space-4);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin: 0 0 var(--space-4);
}

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--neon-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: var(--teal-700);
    color: white;
}

.btn--primary:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--neon {
    background: var(--neon-orange);
    color: white;
}

.btn--neon:hover {
    background: var(--neon-glow);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn--ghost:hover {
    border-color: var(--neon-orange);
    color: var(--neon-orange);
}

/* Cards */
.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__content {
    padding: var(--space-4);
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.card__title a {
    color: var(--text-primary);
}

.card__title a:hover {
    color: var(--neon-orange);
}

.card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.card__stats {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Badges/Pills */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    background: var(--teal-100);
    color: var(--teal-800);
}

[data-theme="dark"] .badge {
    background: var(--teal-900);
    color: var(--teal-200);
}

.badge--neon {
    background: var(--neon-light);
    color: var(--neon-deep);
}

[data-theme="dark"] .badge--neon {
    background: rgba(255, 107, 53, 0.2);
    color: var(--neon-glow);
}

/* Category Pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.pill:hover {
    border-color: var(--neon-orange);
    color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--color-live);
    color: white;
    border-radius: var(--radius-full);
}

.live-indicator__dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.live-indicator--offline {
    background: var(--smoke);
}

.live-indicator--offline .live-indicator__dot {
    animation: none;
}

/* Location Indicator */
.location-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-accent);
    font-size: var(--text-xl);
    color: var(--text-primary);
}

.location-indicator__pin {
    font-size: var(--text-2xl);
    animation: drop-bounce 0.6s ease-out;
}

@keyframes drop-bounce {
    0% { transform: translateY(-50px); opacity: 0; }
    50% { transform: translateY(10px); }
    70% { transform: translateY(-5px); }
    100% { transform: translateY(0); opacity: 1; }
}

.location-indicator__city {
    font-weight: 600;
    color: var(--neon-orange);
}

/* Receipt Info Box */
.receipt-box {
    position: relative;
    background: var(--paper-warm);
    border: 2px dashed var(--smoke-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    max-width: 320px;
}

[data-theme="dark"] .receipt-box {
    background: var(--night-elevated);
    border-color: var(--night-border);
}

.receipt-box::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 5px,
        var(--paper-warm) 5px,
        var(--paper-warm) 10px
    );
}

[data-theme="dark"] .receipt-box::after {
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 5px,
        var(--night-elevated) 5px,
        var(--night-elevated) 10px
    );
}

.receipt-box__header {
    font-family: var(--font-display);
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 1px dashed var(--smoke-light);
}

.receipt-box__divider {
    text-align: center;
    margin: var(--space-2) 0;
    color: var(--text-muted);
}

.receipt-box__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-1);
}

.receipt-box__label {
    color: var(--text-secondary);
}

.receipt-box__value {
    color: var(--text-primary);
    font-weight: 600;
}

.receipt-box__quote {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px dashed var(--smoke-light);
    font-family: var(--font-accent);
    font-size: var(--text-base);
    font-style: italic;
    text-align: center;
    color: var(--text-secondary);
}

/* Neon Text Effect */
.neon-text {
    color: var(--neon-orange);
    text-shadow:
        0 0 5px var(--neon-orange),
        0 0 10px var(--neon-orange),
        0 0 20px var(--neon-orange),
        0 0 40px var(--neon-deep);
}

.neon-text--subtle {
    text-shadow:
        0 0 10px rgba(255, 107, 53, 0.5),
        0 0 20px rgba(255, 107, 53, 0.3);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-base);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.site-logo:hover {
    color: var(--neon-orange);
}

.site-logo__icon {
    font-size: var(--text-2xl);
}

.site-nav {
    display: none;
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
        align-items: center;
        gap: var(--space-6);
    }
}

.site-nav__link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link--active {
    color: var(--neon-orange);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Dark Mode Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--border-color);
}

.theme-toggle__icon {
    font-size: var(--text-lg);
    transition: transform var(--transition-base);
}

.theme-toggle:hover .theme-toggle__icon {
    transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle__icon {
    font-size: var(--text-xl);
    color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero--video {
    min-height: 70vh;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 92, 99, 0.7) 0%,
        rgba(13, 92, 99, 0.5) 50%,
        rgba(20, 20, 20, 0.9) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: white;
}

.hero__title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto var(--space-6);
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   POST GRID
   ========================================================================== */

.post-grid {
    display: grid;
    gap: var(--space-6);
    padding: var(--space-8) 0;
}

@media (min-width: 640px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Asymmetric layout - first card spans 2 rows */
    .post-grid--asymmetric .card:first-child {
        grid-row: span 2;
    }

    .post-grid--asymmetric .card:first-child .card__image {
        aspect-ratio: 3/4;
    }
}

/* ==========================================================================
   CATEGORY QUICK LINKS
   ========================================================================== */

.category-links {
    padding: var(--space-8) 0;
    text-align: center;
}

.category-links__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

.category-links__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.newsletter {
    background: var(--teal-700);
    padding: var(--space-12) var(--space-4);
    text-align: center;
}

.newsletter__title {
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: var(--space-2);
}

.newsletter__subtitle {
    font-size: var(--text-base);
    color: var(--teal-200);
    margin-bottom: var(--space-6);
}

.newsletter__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter__form {
        flex-direction: row;
    }
}

.newsletter__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: none;
    border-radius: var(--radius-md);
    background: white;
    color: var(--charcoal);
}

.newsletter__input::placeholder {
    color: var(--smoke);
}

.newsletter__button {
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-md);
    background: var(--neon-orange);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter__button:hover {
    background: var(--neon-glow);
    box-shadow: var(--shadow-neon);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--charcoal);
    color: var(--smoke-light);
    padding: var(--space-12) var(--space-4);
}

[data-theme="dark"] .site-footer {
    background: var(--night);
}

.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
}

.site-footer__description {
    font-size: var(--text-sm);
    line-height: 1.7;
}

.site-footer__heading {
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: white;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: var(--space-2);
}

.site-footer__links a {
    color: var(--smoke-light);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.site-footer__links a:hover {
    color: var(--neon-orange);
}

.site-footer__social {
    display: flex;
    gap: var(--space-3);
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--charcoal-light);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

[data-theme="dark"] .site-footer__social a {
    background: var(--night-elevated);
}

.site-footer__social a:hover {
    background: var(--neon-orange);
    transform: translateY(-2px);
}

.site-footer__bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--charcoal-light);
    text-align: center;
    font-size: var(--text-xs);
}

[data-theme="dark"] .site-footer__bottom {
    border-color: var(--night-border);
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.single-post__hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
}

.single-post__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.8) 0%, transparent 60%);
}

.single-post__header {
    position: relative;
    z-index: 1;
    max-width: var(--container-narrow);
    margin: -100px auto 0;
    padding: 0 var(--space-4);
}

.single-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.single-post__title {
    font-size: var(--text-4xl);
    color: white;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.single-post__content-wrapper {
    display: grid;
    gap: var(--space-8);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

@media (min-width: 1024px) {
    .single-post__content-wrapper {
        grid-template-columns: 1fr 320px;
    }
}

.single-post__content {
    font-size: var(--text-lg);
    line-height: 1.8;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
    margin-top: var(--space-8);
}

.single-post__content p {
    margin-bottom: var(--space-4);
}

.single-post__content img {
    border-radius: var(--radius-md);
    margin: var(--space-6) 0;
}

.single-post__sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Sticky Video */
.sticky-video {
    position: sticky;
    top: 80px;
    z-index: var(--z-sticky);
    margin-bottom: var(--space-6);
}

.sticky-video__wrapper {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sticky-video__wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.related-posts {
    background: var(--bg-secondary);
    padding: var(--space-12) var(--space-4);
    margin-top: var(--space-12);
}

.related-posts__title {
    text-align: center;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-8);
}

/* ==========================================================================
   ARCHIVE PAGE
   ========================================================================== */

.archive-header {
    background: var(--teal-700);
    padding: var(--space-12) var(--space-4);
    text-align: center;
    color: white;
}

.archive-header__title {
    font-size: var(--text-4xl);
    color: white;
    margin-bottom: var(--space-2);
}

.archive-header__description {
    font-size: var(--text-lg);
    color: var(--teal-200);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Fade In Up */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }

@media (max-width: 767px) {
    .hidden-mobile { display: none; }
}

@media (min-width: 768px) {
    .hidden-desktop { display: none; }
}
