/* Stylix Intelligence Download Button Styles */
.stylix-download { position: relative; }
.stylix-download-btn {
    background: #F15A29;
    color: #fff;
    border: none;
    border-radius: 24px;
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    user-select: none;
}
.stylix-download-btn .btn-icon { font-size: 13px; opacity: 0.9; }
.btn-chevron { font-size: 10px; opacity: 0.8; transition: transform 0.25s; margin-left: 2px; }
.stylix-download:hover .stylix-download-btn { background: #D94E22; }
.stylix-download:hover .btn-chevron { transform: rotate(180deg); }
.stylix-download-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.stylix-download-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 22px;
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: -1px -1px 3px rgba(0,0,0,0.04);
}
.stylix-download:hover .stylix-download-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.store-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1A1410;
    transition: background 0.15s;
}
.store-link:hover { background: #FFF1EC; }
.store-link-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.store-link-icon.apple { background: #000; }
.store-link-icon.google { background: #fff; border: 1px solid #E8E8E8; }
.store-link-text { line-height: 1; }
.store-link-sub { font-size: 10px; font-weight: 400; color: #999; margin-bottom: 2px; display: block; }
.store-link-name { font-size: 13px; font-weight: 700; display: block; color: #1A1410; }
.store-divider { height: 1px; background: #F5F5F5; margin: 2px 4px; }

/* ─── DOWNLOAD BUTTON ─── */
.stylix-download {
  position: relative;
}

.stylix-download-btn {
  background: #F15A29;
  color: #fff;
  border: none;
  border-radius: 24px;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  user-select: none;
}

.stylix-download-btn .btn-icon {
  font-size: 13px;
  opacity: 0.9;
}

.btn-chevron {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 0.25s;
  margin-left: 2px;
}

.stylix-download:hover .stylix-download-btn { background: #D94E22; }
.stylix-download:hover .btn-chevron { transform: rotate(180deg); }

/* ─── DROPDOWN ─── */
.stylix-download-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ok */
.stylix-download-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 22px;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: -1px -1px 3px rgba(0,0,0,0.04);
}

.stylix-download:hover .stylix-download-dropdown,
.stylix-download:focus-within .stylix-download-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Store linkleri */
.store-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #1A1410;
  transition: background 0.15s;
}

.store-link:hover { background: #FFF1EC; }

.store-link-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.store-link-icon.apple { background: #000; }
.store-link-icon.google { background: #fff; border: 1px solid #E8E8E8; }

.store-link-text { line-height: 1; }
.store-link-sub { font-size: 10px; font-weight: 400; color: #999; margin-bottom: 2px; display: block; }
.store-link-name { font-size: 13px; font-weight: 700; display: block; color: #1A1410; }

.store-divider { height: 1px; background: #F5F5F5; margin: 2px 4px; }

/* Stylix Blog - Modern Reactive UI Stylesheet */
/* Issue #20: Modern, reactive, fashion-suitable theme */

/* ============================================
   VIEW TRANSITIONS API
   App-like page transitions for Hugo MPA
   ============================================ */
@view-transition {
    navigation: auto;
}

/* Named view transition for hero elements */
.hero-title {
    view-transition-name: hero-title;
}

.post-title {
    view-transition-name: post-title;
}

/* View transition animations */
::view-transition-old(root) {
    animation: fade-out 0.2s ease-out;
}

::view-transition-new(root) {
    animation: fade-in 0.3s ease-in;
}

::view-transition-old(hero-title),
::view-transition-old(post-title) {
    animation: slide-out-up 0.25s ease-out;
}

::view-transition-new(hero-title),
::view-transition-new(post-title) {
    animation: slide-in-up 0.3s ease-out;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-out-up {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes slide-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Luxury fashion-forward color system
   ============================================ */
:root {
    /* Primary Palette - Sophisticated neutrals */
    --primary-color: #161616;
    --secondary-color: #F15A29;
    --accent-color: #F15A29;          /* Halloween Orange - Stylix brand */
    --accent-hover: #FF6B3D;          /* Lighter orange for hover states */
    --accent-soft: #F8F8F8;  /* Orange with transparency */

    /* Text Colors */
    --text-color: #161616;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* Background Colors */
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-elevated: #ffffff;
    --bg-overlay: #161616;

    /* Border & Dividers */
    --border-color: #F8F8F8;
    --border-subtle: #f3f4f6;

    /* Typography */
    --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-primary: 'Montserrat', Arial, Helvetica, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Shadows - Layered for depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(241, 90, 41, 0.15);  /* Orange glow */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

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

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: 2rem; /* 32px */ }
h3 { font-size: 1.5rem; /* 24px */ }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Links - Luxury underline effect */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   Premium reading progress bar
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    z-index: var(--z-fixed);
    transition: width 50ms linear;
}

/* ============================================
   HEADER & NAVIGATION
   Sticky with scroll shadow effect
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-color);
    transition: box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    padding: var(--space-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: -0.02em;
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.navbar-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.navbar-brand .logo:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle - Alpine.js enhanced */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.navbar-toggle:hover {
    background: var(--bg-light);
}

.navbar-toggle-icon {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
    transform-origin: center;
}

/* Animated hamburger to X */
.navbar-toggle.active .navbar-toggle-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .navbar-toggle-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

/* Underline hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: var(--space-xs);
}

.lang-link {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-link:hover,
.lang-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   SEARCH COMPONENT (Pagefind)
   Command palette style search
   ============================================ */
.search-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-trigger:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.search-trigger kbd {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border-color);
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-modal.active {
    display: flex;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
}

.search-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    background: var(--bg-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: var(--space-sm);
    background: transparent;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-sm);
}

.search-result-item {
    display: block;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.search-result-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-result-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-xs);
}

.search-close-btn {
    background: none;
    border: none;
    padding: var(--space-xs);
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    color: var(--text-color);
    background: var(--bg-light);
}

/* ============================================
   LUXURY HERO SECTION (Vogue-style)
   Full-bleed featured story
   ============================================ */
.luxury-hero {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.hero-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.luxury-hero:hover .hero-image {
    transform: scale(1.03);
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-fallback {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
}

.luxury-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3xl) var(--space-2xl);
    color: white;
    text-align: left;
    max-width: 800px;
}

.hero-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: var(--space-xs);
}

.luxury-hero .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-excerpt {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 600px;
}

.hero-byline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   EDITORIAL GRID (SSENSE-style)
   Featured stories with dramatic photos
   ============================================ */
.editorial-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-color);
}

.container-wide {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: var(--space-md);
}

.editorial-card {
    position: relative;
    overflow: hidden;
}

.editorial-link {
    display: block;
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.editorial-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-light);
}

.editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.editorial-card:hover .editorial-image img {
    transform: scale(1.05);
}

.editorial-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.editorial-card:hover .editorial-content {
    transform: translateY(0);
    opacity: 1;
}

.editorial-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    margin-bottom: var(--space-xs);
}

.editorial-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.editorial-large .editorial-title {
    font-size: 1.75rem;
}

.editorial-excerpt {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   CATEGORY NAVIGATION (Typography-only)
   Minimal luxury style - no emojis
   ============================================ */
.categories-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-base);
}

.category-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color var(--transition-fast);
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.category-link:hover .category-name {
    color: var(--accent-color);
}

/* ============================================
   STORIES GRID (Magazine layout)
   Latest posts with large images
   ============================================ */
.stories-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-header .section-title::after {
    display: none;
}

.view-all {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding-bottom: var(--space-xs);
    transition: all var(--transition-fast);
}

.view-all:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.story-card {
    background: var(--bg-color);
    overflow: hidden;
}

.story-link {
    display: block;
}

.story-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-light);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
}

.story-content {
    padding: var(--space-lg) 0;
}

.story-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.story-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.story-card:hover .story-title {
    color: var(--accent-color);
}

.story-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.story-author {
    font-weight: 500;
}

/* ============================================
   NEWSLETTER - Minimal Design
   ============================================ */
.newsletter-section {
    padding: var(--space-3xl) 0;
    background: var(--primary-color);
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin-bottom: var(--space-sm);
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--space-md);
    border: none;
    background: white;
    font-size: 0.95rem;
}

.newsletter-form button {
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

/* ============================================
   LEGACY HERO SECTION (for other pages)
   Editorial magazine style
   ============================================ */
.hero-section {
    position: relative;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 50%, var(--bg-light) 100%);
    overflow: hidden;
}

/* Decorative background elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section .hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section .hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--accent-color);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 1200px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   Premium micro-interaction states
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Ripple effect container */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-soft);
}

/* Icon button */
.btn-icon {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
}

/* ============================================
   SECTION TITLES
   Editorial styling
   ============================================ */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

/* ============================================
   CONTAINER QUERIES
   Component-based responsive cards
   ============================================ */

/* Featured Section */
.featured-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    container-type: inline-size;
}

/* Featured Card with Container Query */
.featured-card {
    container-type: inline-size;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, var(--accent-color) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

/* Bookmark/Save button - Microinteraction */
.save-button {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-bounce);
    z-index: 10;
}

.save-button svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-color);
    fill: none;
    transition: all var(--transition-base);
}

.save-button:hover {
    transform: scale(1.1);
}

.save-button.saved svg {
    fill: var(--accent-color);
    stroke: var(--accent-color);
}

.save-button.saved {
    animation: heartbeat 0.4s ease;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

.featured-content {
    padding: var(--space-lg);
}

.featured-meta {
    margin-bottom: var(--space-sm);
}

.category-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.category-tag:hover {
    background: var(--accent-color);
    color: white;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.featured-title a {
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.featured-title a:hover {
    color: var(--accent-color);
}

.featured-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more svg,
.read-more::after {
    content: '\2192';
    transition: transform var(--transition-base);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Container Query: Wide card layout */
@container (min-width: 500px) {
    .featured-card {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
    }

    .featured-image {
        height: 100%;
        min-height: 300px;
    }

    .featured-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ============================================
   CATEGORIES SECTION
   Interactive card grid
   ============================================ */
.categories-section {
    padding: var(--space-3xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.category-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    transition: transform var(--transition-bounce);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   POSTS GRID
   Container query enabled
   ============================================ */
.recent-posts-section {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    container-type: inline-size;
}

.post-card {
    container-type: inline-size;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

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

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 0 12px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.post-meta time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.post-author {
    color: var(--text-light);
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.post-title a {
    color: var(--primary-color);
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--accent-color);
    color: white;
}

.more-posts {
    text-align: center;
}

/* Container Query: Horizontal card */
@container (min-width: 480px) {
    .post-card {
        display: grid;
        grid-template-columns: 200px 1fr;
    }

    .post-image {
        height: 100%;
        min-height: 200px;
    }
}

/* ============================================
   NEWSLETTER SECTION
   Modal-capable with Alpine.js
   ============================================ */
.newsletter-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-box {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h2 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: var(--space-md);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.newsletter-box p {
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-fast);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: var(--space-md) var(--space-xl);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.newsletter-note {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   TOAST NOTIFICATIONS
   Premium feedback system
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateX(120%);
    opacity: 0;
    transition: all var(--transition-bounce);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--space-xs);
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-color);
}

/* ============================================
   SINGLE POST
   Editorial magazine layout
   ============================================ */
.single-post {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.single-post .container {
    max-width: 760px;
}

.post-header {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.post-categories {
    margin-bottom: var(--space-md);
}

.category-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: var(--space-sm);
    transition: all var(--transition-fast);
}

.category-badge:hover {
    background: var(--accent-color);
    color: white;
}

.post-header .post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.post-header .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 0.95rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-meta .post-author a {
    color: var(--accent-color);
    font-weight: 500;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.image-credit {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: var(--space-sm);
    font-style: italic;
}

.image-credit a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.image-credit a:hover {
    color: var(--accent-color);
}

/* Post Content - Editorial typography */
.post-content {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.post-content > * + * {
    margin-top: var(--space-lg);
}

.post-content p {
    margin-bottom: 0;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 2rem; /* 32px */
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    line-height: 1.6;
}

.post-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem; /* 22px */
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    line-height: 1.6;
}

.post-content ul,
.post-content ol {
    padding-left: var(--space-xl);
}

.post-content li {
    margin-bottom: var(--space-sm);
}

.post-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.2rem;
}

.post-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.post-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-soft);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all var(--transition-fast);
}

.post-content a:hover {
    text-decoration-color: var(--accent-color);
}

/* App Download CTA */
.app-download-cta {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-muted, #f8f9fa) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .app-download-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.app-cta-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.app-cta-icon {
    flex-shrink: 0;
    color: var(--accent-color);
}

.app-cta-text h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-dark);
}

.app-cta-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.app-cta-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.app-store-btn,
.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.app-store-btn {
    background: #1a1a2e;
    color: #ffffff;
    border: 1px solid #1a1a2e;
}

.app-store-btn:hover {
    background: #2d2d44;
    transform: translateY(-2px);
}

.play-store-btn {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.play-store-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Post Footer */
.post-footer {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    margin-bottom: var(--space-2xl);
}

.post-footer > div {
    margin-bottom: var(--space-lg);
}

.post-footer h4 {
    display: inline;
    margin-right: var(--space-md);
    font-size: 0.95rem;
    color: var(--text-light);
    font-family: var(--font-primary);
    font-weight: 500;
}

/* Share Buttons */
.post-share {
    margin-top: var(--space-xl);
}

.share-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.share-buttons a {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.share-buttons a:hover {
    background: var(--accent-color);
    color: white;
}

/* Related Posts */
.related-posts {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-family: var(--font-display);
    margin-bottom: var(--space-xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.related-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

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

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--primary-color);
}

.related-content h4 a:hover {
    color: var(--accent-color);
}

.related-content time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   ARCHIVE/LIST PAGE
   ============================================ */
.archive-page {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.archive-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.archive-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   ACCORDION COMPONENT (Alpine.js)
   For FAQ, product details, etc.
   ============================================ */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.accordion-trigger:hover {
    background: var(--bg-light);
}

.accordion-trigger svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-base);
}

.accordion-content-inner {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
    margin-top: var(--space-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-display);
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.7;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: white;
    opacity: 0.85;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Footer Newsletter */
.footer-newsletter .newsletter-form {
    margin-top: var(--space-md);
    flex-direction: column;
}

.footer-newsletter input[type="email"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter button {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: var(--space-xs);
}

.footer-bottom a {
    color: white;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* ============================================
   SCROLL-DRIVEN ANIMATIONS
   Progressive enhancement - visible by default
   ============================================ */

/* Content visible by default (no-JS fallback) */
.reveal,
.stagger-reveal > * {
    opacity: 1;
    transform: translateY(0);
}

/* Only apply reveal animations when JS is ready */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children animation */
.js-ready .stagger-reveal > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-ready .stagger-reveal.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.js-ready .stagger-reveal.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.js-ready .stagger-reveal.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.js-ready .stagger-reveal.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.js-ready .stagger-reveal.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.js-ready .stagger-reveal.revealed > *:nth-child(6) { transition-delay: 0.6s; }

.js-ready .stagger-reveal.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE NAV DRAWER (Alpine.js)
   ============================================ */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--bg-overlay);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-color);
    z-index: var(--z-modal);
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transition: transform var(--transition-base);
    -webkit-transition: -webkit-transform var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header .logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-nav-header .logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.mobile-nav-close:hover {
    background: var(--bg-light);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-list a {
    display: block;
    padding: var(--space-md) 0;
    font-weight: 500;
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.mobile-nav-list a:hover {
    color: var(--accent-color);
}

/* ============================================
   ACCESSIBILITY
   prefers-reduced-motion support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .stagger-reveal > * {
        opacity: 1;
        transform: none;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--accent-color);
    color: white;
    border-radius: var(--radius-md);
    z-index: var(--z-fixed);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1200px) {
    .editorial-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 250px);
    }

    .editorial-link {
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .editorial-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 220px);
    }

    .editorial-link {
        height: 220px;
    }

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

    .luxury-hero {
        height: 70vh;
        min-height: 500px;
    }

    .luxury-hero .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
    }

    .hero-section {
        padding: var(--space-2xl) 0;
    }

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

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .featured-section,
    .categories-section,
    .recent-posts-section {
        padding: var(--space-2xl) 0;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .post-header .post-title {
        font-size: 1.75rem;
    }

    .post-header .post-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

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

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
    }

    .toast {
        max-width: 100%;
    }

    /* Luxury hero mobile */
    .luxury-hero {
        height: 80vh;
        min-height: 450px;
    }

    .luxury-hero .hero-content {
        padding: var(--space-xl) var(--space-md);
    }

    .luxury-hero .hero-title {
        font-size: 1.75rem;
    }

    .hero-excerpt {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Editorial grid mobile */
    .editorial-section {
        padding: var(--space-2xl) 0;
    }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 180px);
        gap: var(--space-sm);
    }

    .editorial-link {
        height: 180px;
    }

    .editorial-content {
        transform: translateY(0);
        opacity: 1;
    }

    /* Category nav mobile */
    .category-nav {
        gap: var(--space-lg);
    }

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

    /* Stories grid mobile */
    .stories-section {
        padding: var(--space-2xl) 0;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .story-image {
        aspect-ratio: 3/4;
    }

    .section-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .container-wide {
        padding: 0 var(--space-sm);
    }

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

    .category-card {
        padding: var(--space-lg);
    }

    .search-container {
        margin: var(--space-md);
        border-radius: var(--radius-lg);
    }

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

    .category-nav {
        gap: var(--space-md);
    }

    .category-name {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .newsletter-section,
    .share-buttons,
    .toast-container,
    .search-modal {
        display: none !important;
    }

    .single-post .container {
        max-width: 100%;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ============================================
   FASHION MAGAZINE ARCHIVE
   Vogue/SSENSE inspired editorial grid
   ============================================ */
.fashion-archive {
    padding: var(--space-xl) 0 var(--space-3xl);
    min-height: 100vh;
}

.fashion-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.fashion-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.fashion-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* Editorial Masonry Grid */
.editorial-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-sm);
    max-width: 1600px;
    margin: 0 auto;
}

/* Base Editorial Item */
.editorial-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.editorial-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image Container */
.editorial-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.editorial-item:hover .editorial-image img {
    transform: scale(1.05);
}

.editorial-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
}

/* Text Overlay */
.editorial-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0) 70%
    );
    padding: var(--space-lg);
    z-index: 2;
    transition: background 0.3s ease;
}

.editorial-item:hover .editorial-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.1) 80%
    );
}

.editorial-item .editorial-content {
    position: relative;
    color: white;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.editorial-item:hover .editorial-content {
    transform: translateY(-5px);
}

.editorial-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: white;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.editorial-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: white;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.editorial-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.editorial-author {
    font-weight: 500;
}

/* ============================================
   GRID ITEM SIZES - Editorial Layout
   ============================================ */

/* Hero - Full width, tall */
.editorial-hero {
    grid-column: span 12;
    aspect-ratio: 21/9;
}

.editorial-hero .editorial-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    max-width: 600px;
}

.editorial-hero .editorial-overlay {
    padding: var(--space-2xl);
}

/* Medium cards - Half width */
.editorial-medium {
    grid-column: span 6;
    aspect-ratio: 3/4;
}

.editorial-medium .editorial-title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* Large cards - 8 columns */
.editorial-large {
    grid-column: span 8;
    aspect-ratio: 16/9;
}

.editorial-large .editorial-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Standard cards - 4 columns */
.editorial-item:not(.editorial-hero):not(.editorial-medium):not(.editorial-large) {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.editorial-item:not(.editorial-hero):not(.editorial-medium):not(.editorial-large) .editorial-title {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

/* ============================================
   FASHION PAGINATION
   ============================================ */
.fashion-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.pagination-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Override for Previous/Next navigation buttons */
.pagination-link.pagination-prev,
.pagination-link.pagination-next {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.pagination-link.pagination-prev:hover,
.pagination-link.pagination-next:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.pagination-numbers {
    display: flex;
    gap: var(--space-xs);
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination-number:hover {
    color: var(--accent-color);
    font-weight: 600;
}

.pagination-number.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE - Fashion Archive
   ============================================ */
@media (max-width: 1200px) {
    .editorial-hero {
        aspect-ratio: 16/9;
    }

    .editorial-large {
        grid-column: span 6;
    }

    .editorial-item:not(.editorial-hero):not(.editorial-medium):not(.editorial-large) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .fashion-archive {
        padding: var(--space-md) 0 var(--space-2xl);
    }

    .fashion-header {
        margin-bottom: var(--space-lg);
        padding: var(--space-md) 0;
    }

    .fashion-title {
        letter-spacing: 0.05em;
    }

    .editorial-masonry {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-xs);
    }

    .editorial-hero {
        grid-column: span 6;
        aspect-ratio: 4/5;
    }

    .editorial-medium,
    .editorial-large,
    .editorial-item:not(.editorial-hero):not(.editorial-medium):not(.editorial-large) {
        grid-column: span 3;
        aspect-ratio: 3/4;
    }

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

    .editorial-medium .editorial-title,
    .editorial-large .editorial-title,
    .editorial-item:not(.editorial-hero) .editorial-title {
        font-size: 0.9rem;
    }

    .editorial-overlay {
        padding: var(--space-md);
    }

    .editorial-hero .editorial-overlay {
        padding: var(--space-lg);
    }

    .editorial-category {
        font-size: 0.55rem;
    }

    .editorial-meta {
        font-size: 0.65rem;
    }

    .fashion-pagination {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .editorial-masonry {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-hero,
    .editorial-medium,
    .editorial-large {
        grid-column: span 2;
    }

    .editorial-item:not(.editorial-hero):not(.editorial-medium):not(.editorial-large) {
        grid-column: span 1;
    }

    .editorial-hero {
        aspect-ratio: 3/4;
    }

    .editorial-hero .editorial-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   404 ERROR PAGE
   Friendly, on-brand error page
   ============================================ */
.error-page {
    min-height: 80vh;
    padding: var(--space-3xl) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    color: var(--bg-light);
    line-height: 1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--border-color) 0%, var(--bg-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.error-suggestions {
    max-width: 900px;
    margin: 0 auto;
}

.error-suggestions h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--primary-color);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.suggestion-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.suggestion-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.suggestion-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-light);
}

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

.suggestion-card:hover .suggestion-image img {
    transform: scale(1.05);
}

.suggestion-content {
    padding: var(--space-md);
}

.suggestion-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: var(--space-xs);
    color: var(--primary-color);
}

.suggestion-content time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .error-page {
        padding: var(--space-2xl) 0;
        min-height: 70vh;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 280px;
    }

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

/* ============================================
   INFINITE SCROLL
   Smooth loading for continuous browsing
   ============================================ */
.infinite-scroll-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl) 0;
    min-height: 80px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-sentinel {
    height: 1px;
    width: 100%;
}

/* Hide pagination when JS infinite scroll is active (fallback for no-JS) */
.js-infinite-scroll .fashion-pagination {
    display: none;
}
