@layer reset, base, theme, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
  }
  
  body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img, picture {
    max-width: 100%;
    display: block;
    height: auto;
  }
  
  input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
  }

  button {
    cursor: pointer;
  }
}

@layer base {
  :root {
    color-scheme: light dark;
    
    /* Literal Colors (Tier 1) */
    --color-navy-950: #050b1a;
    --color-navy-900: #0a1128;
    --color-navy-800: #101f42;
    --color-navy-700: #1b2e5c;
    --color-navy-600: #294480;
    
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    
    --color-teal-500: #0d9488;
    --color-teal-400: #2dd4bf;
    --color-teal-300: #5eead4;
    --color-teal-50: #f0fdfa;
    
    /* Typography */
    --font-sans: 'Inter', 'Noto Sans KR', sans-serif;
    --font-heading: 'Outfit', 'Inter', 'Noto Sans KR', sans-serif;
    
    /* Semantic Design Tokens (Tier 2 & 3) */
    --bg-primary: light-dark(var(--color-slate-50), var(--color-navy-950));
    --bg-secondary: light-dark(#ffffff, var(--color-navy-900));
    --bg-tertiary: light-dark(var(--color-slate-100), var(--color-navy-800));
    --bg-nav: light-dark(rgba(248, 250, 252, 0.8), rgba(5, 11, 26, 0.8));
    
    --text-primary: light-dark(var(--color-slate-900), #f8fafc);
    --text-secondary: light-dark(var(--color-slate-700), #cbd5e1);
    --text-muted: light-dark(var(--color-slate-400), var(--color-slate-400));
    
    --color-accent: light-dark(var(--color-teal-500), var(--color-teal-400));
    --color-accent-hover: light-dark(#0f766e, var(--color-teal-300));
    --color-accent-subtle: light-dark(rgba(13, 148, 136, 0.1), rgba(45, 212, 191, 0.1));
    
    --border-color: light-dark(var(--color-slate-200), var(--color-navy-800));
    --border-color-hover: light-dark(var(--color-slate-400), var(--color-navy-700));
    
    /* Shadows & Radii */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 16px 36px rgba(0,0,0,0.08);
    --shadow-accent: 0 8px 20px rgba(13, 148, 136, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    /* Layout Sizes */
    --max-width-main: 1280px;
    --max-width-content: 800px;
    --header-height: 72px;
  }
  
  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
  }
  
  /* Accessibility: Focus Ring */
  *:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
  }
  
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer components {
  /* --- Initial Loader --- */
  .initial-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-primary);
  }
  
  .loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* --- Layout Shell --- */
  .layout-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color 0.3s, border-color 0.3s;
  }
  
  .header-container {
    max-width: var(--max-width-main);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  
  .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
    padding: 8px 0;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--text-primary);
  }
  
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
  }
  
  .theme-toggle-btn {
    padding: 8px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background-color 0.2s, color 0.2s;
  }
  
  .theme-toggle-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
  }

  .menu-toggle-btn {
    display: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }
  
  .menu-toggle-btn:hover {
    background-color: var(--bg-tertiary);
  }
  
  .menu-toggle-btn.active .menu-icon {
    display: none;
  }
  
  .menu-toggle-btn.active .close-icon {
    display: block !important;
  }

  /* --- Responsive Header --- */
  @media (max-width: 768px) {
    .header-container {
      padding: 0 16px;
    }
    
    .logo {
      font-size: 21px;
    }
    
    .menu-toggle-btn {
      display: flex;
    }
    
    .nav-menu {
      display: none;
      position: absolute;
      top: var(--header-height);
      left: 0;
      width: 100%;
      background-color: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      padding: 24px 20px;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      box-shadow: var(--shadow-lg);
      z-index: 99;
    }
    
    .nav-menu.active {
      display: flex;
      animation: slideDown 0.2s ease-out forwards;
    }
    
    .nav-link {
      width: 100%;
      font-size: 15px;
      padding: 12px 4px;
      border-bottom: 1px solid var(--border-color);
      display: block;
    }
    
    .nav-link.active::after {
      display: none;
    }
    
    .nav-link.active {
      color: var(--color-accent);
      border-bottom-color: var(--color-accent);
    }
    
    .nav-menu .theme-toggle-btn {
      margin-top: 12px;
      align-self: flex-start;
    }
  }

  @media (max-width: 480px) {
    .header-container {
      padding: 0 16px;
    }
    
    .logo {
      font-size: 19px;
    }
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .layout-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 300px);
  }
  
  .layout-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 24px 32px;
    margin-top: 80px;
  }
  
  .footer-container {
    max-width: var(--max-width-main);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }
  
  @media (max-width: 768px) {
    .footer-container {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  }
  
  .footer-info-col .logo {
    margin-bottom: 16px;
  }
  
  .footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
  }
  
  .footer-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
  }
  
  .footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
  }
  
  .footer-link:hover {
    color: var(--color-accent);
  }
  
  .footer-bottom {
    max-width: var(--max-width-main);
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
  }
  
  @media (max-width: 600px) {
    .footer-bottom {
      flex-direction: column;
      gap: 16px;
      text-align: center;
    }
  }

  /* --- Buttons & UI elements --- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
  }
  
  .btn-primary {
    background-color: var(--color-accent);
    color: light-dark(#ffffff, var(--color-navy-950));
    box-shadow: var(--shadow-sm);
  }
  
  .btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
  }
  
  .btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
  }

  /* --- Hero Section --- */
  .hero-section {
    position: relative;
    padding: 96px 24px 80px;
    background: radial-gradient(circle at 80% 20%, var(--bg-tertiary) 0%, transparent 50%), var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/hero_illustration.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
  }
  
  .hero-container {
    max-width: var(--max-width-main);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
  }
  
  @media (max-width: 992px) {
    .hero-section::before {
      opacity: 0.06;
    }
    
    .hero-container {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .hero-illustration {
      display: none;
    }
    
    .hero-title .desktop-title {
      display: none;
    }
    
    .hero-title .mobile-title {
      display: inline;
    }
  }
  
  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    background-color: var(--color-accent-subtle);
    color: var(--color-accent);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
  }
  
  .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 1rem + 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-wrap: balance;
  }
  
  .hero-title .mobile-title {
    display: none;
  }
  
  .hero-desc {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 40px;
    max-width: 640px;
    text-wrap: pretty;
  }
  
  @media (max-width: 992px) {
    .hero-desc {
      margin-inline: auto;
    }
  }
  
  .hero-actions {
    display: flex;
    gap: 16px;
  }
  
  @media (max-width: 992px) {
    .hero-actions {
      justify-content: center;
    }
  }
  
  .hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
  }
  
  .hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-navy-700) 100%);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }
  
  .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    opacity: 0.85;
  }

  /* --- Section Header --- */
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
  }
  
  .section-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }
  
  .section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
  }
  
  .section-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
  }
  
  .section-link:hover {
    color: var(--color-accent-hover);
    gap: 10px;
  }

  /* --- Post Grid & Cards --- */
  .content-section {
    max-width: var(--max-width-main);
    margin: 80px auto;
    padding: 0 24px;
  }
  
  .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
  }
  
  .post-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .post-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
  }
  
  .post-card-image {
    aspect-ratio: 16/10;
    width: 100%;
    background-color: var(--bg-tertiary);
    overflow: hidden;
    position: relative;
  }
  
  .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .post-card:hover .post-card-image img {
    transform: scale(1.05);
  }
  
  .post-card-meta-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
  }
  
  .post-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .post-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  
  .post-card-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .post-card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .post-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .post-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .post-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 4px;
  }

  /* --- Featured Post Card --- */
  .featured-post-hero {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
  }
  
  @media (max-width: 992px) {
    .featured-post-hero {
      grid-template-columns: 1fr;
    }
  }
  
  .featured-image-container {
    background-color: var(--bg-tertiary);
    aspect-ratio: 16/9;
  }
  
  .featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .featured-content-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  @media (max-width: 600px) {
    .featured-content-container {
      padding: 24px;
    }
  }
  
  .featured-badge {
    align-self: flex-start;
    background-color: var(--color-accent-subtle);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }
  
  .featured-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1rem + 2vw, 24px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
  }
  
  .featured-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    text-wrap: pretty;
  }
  
  .featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
  }

  /* --- Category Card Grid --- */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .category-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
  }
  
  .category-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
  }
  
  .category-card-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--color-accent);
  }
  
  .category-card-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
  }
  
  .category-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- Brand Ecosystem Section --- */
  .ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  @media (max-width: 768px) {
    .ecosystem-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .ecosystem-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .ecosystem-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
  }
  
  .ecosystem-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .ecosystem-logo-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
  }
  
  .ecosystem-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
  }
  
  .ecosystem-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
  }
  
  .ecosystem-card:hover .ecosystem-link {
    gap: 8px;
  }

  /* --- Category Page Header --- */
  .category-header-section {
    padding: 64px 24px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
  }
  
  .category-header-container {
    max-width: var(--max-width-main);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }
  
  @media (max-width: 768px) {
    .category-header-container {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
  .category-header-info {
    max-width: 680px;
  }
  
  .category-header-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
  }
  
  .category-header-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  .category-header-brands {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    min-width: 240px;
  }
  
  .category-brands-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
  }
  
  .category-brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .category-brand-tag {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
  }

  /* --- Category Filter Menu (Posts list page) --- */
  .filter-menu-container {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
  }
  
  .filter-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
  }
  
  .filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--text-primary);
  }
  
  .filter-btn.active {
    background-color: var(--color-accent);
    color: light-dark(#ffffff, var(--color-navy-950));
    border-color: var(--color-accent);
  }

  /* --- Post Detail Page --- */
  .detail-header-section {
    padding: 80px 24px 48px;
    background: radial-gradient(circle at 50% 0%, var(--bg-tertiary) 0%, transparent 80%), var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }
  
  .detail-header-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
  }
  
  .detail-category-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    background-color: var(--color-accent-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
  }
  
  .detail-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 1.2rem + 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-wrap: balance;
  }
  
  .detail-subtitle {
    font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    text-wrap: balance;
  }
  
  .detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
  }
  
  .detail-meta-dot {
    width: 4px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 50%;
  }
  
  /* Article Content */
  .detail-main-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 48px 24px;
  }
  
  .detail-main-image {
    aspect-ratio: 16/9;
    width: 100%;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
  }
  
  .detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
  }
  
  .detail-body p {
    margin-bottom: 24px;
    text-wrap: pretty;
  }
  
  .detail-body h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
  }
  
  /* Inline Image */
  .detail-inline-image-box {
    margin: 40px 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  
  .detail-inline-image {
    aspect-ratio: 16/10;
    background-color: var(--bg-tertiary);
  }
  
  .detail-inline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .detail-inline-caption {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
  }
  
  /* Checklist */
  .detail-checklist-box {
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--color-accent);
    padding: 32px 32px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 40px 0;
  }
  
  .detail-checklist-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
  }
  
  .detail-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .detail-checklist-item {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--text-secondary);
  }
  
  .detail-checklist-item::before {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--color-accent);
    font-weight: 900;
    font-size: 16px;
  }
  
  /* Closing block */
  .detail-closing {
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 24px 0;
    margin: 48px 0;
    font-style: italic;
    color: var(--text-secondary);
  }
  
  /* Brand CTA Box Component */
  .brand-cta-box {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 64px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    box-shadow: var(--shadow-md);
  }
  
  @media (max-width: 768px) {
    .brand-cta-box {
      flex-direction: column;
      text-align: center;
      padding: 32px 24px;
    }
  }
  
  .brand-cta-info {
    max-width: 520px;
  }
  
  .brand-cta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    background-color: var(--color-accent-subtle);
    color: var(--color-accent);
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
  }
  
  .brand-cta-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
  }
  
  .brand-cta-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  .brand-cta-btn {
    min-width: 140px;
    flex-shrink: 0;
  }

  /* --- Contact Page Form --- */
  .contact-section {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 24px;
  }
  
  .contact-header {
    text-align: center;
    margin-bottom: 48px;
  }
  
  .contact-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
  }
  
  .contact-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  .contact-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  @media (max-width: 480px) {
    .contact-form {
      padding: 24px;
    }
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  .form-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
  }
}

@layer utilities {
  .text-center { text-align: center; }
  .mt-20 { margin-top: 20px; }
  .mb-40 { margin-bottom: 40px; }
  
  .shadow-soft-card {
    box-shadow: var(--shadow-soft);
  }
}
