/* ==========================================================================
   OmniPulse Modern Blog Design System
   Professional, Simple, Responsive HTML/CSS Blog Theme
   ========================================================================== */

:root {
  /* Color Palette - Light Theme */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-highlight: #e2e8f0;
  --bg-header: rgba(255, 255, 255, 0.92);

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-invert: #ffffff;

  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #3b82f6;

  /* Accent Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.15);

  /* Category Specific Accents */
  --cat-tech: #6366f1;
  --cat-tech-bg: #eef2ff;
  --cat-tv: #0284c7;
  --cat-tv-bg: #f0f9ff;
  --cat-travel: #0d9488;
  --cat-travel-bg: #f0fdfa;
  --cat-food: #ea580c;
  --cat-food-bg: #fff7ed;
  --cat-life: #e11d48;
  --cat-life-bg: #fff1f2;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1240px;
  --reading-width: 760px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-body: #0b0f17;
  --bg-surface: #111827;
  --bg-card: #151d2f;
  --bg-muted: #1e293b;
  --bg-highlight: #334155;
  --bg-header: rgba(17, 24, 39, 0.92);

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-invert: #0b0f17;

  --border-light: #1e293b;
  --border-hover: #334155;
  --border-focus: #60a5fa;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-glow: rgba(59, 130, 246, 0.25);

  --cat-tech: #818cf8;
  --cat-tech-bg: rgba(99, 102, 241, 0.15);
  --cat-tv: #38bdf8;
  --cat-tv-bg: rgba(2, 132, 199, 0.15);
  --cat-travel: #2dd4bf;
  --cat-travel-bg: rgba(13, 148, 136, 0.15);
  --cat-food: #fb923c;
  --cat-food-bg: rgba(234, 88, 12, 0.15);
  --cat-life: #fb7185;
  --cat-life-bg: rgba(225, 29, 72, 0.15);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.reading-container {
  width: 100%;
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-text span {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background-color: var(--bg-muted);
}

.nav-link i {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn, .mobile-toggle-btn {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover, .mobile-toggle-btn:hover {
  color: var(--text-main);
  background: var(--bg-highlight);
  border-color: var(--border-hover);
}

.mobile-toggle-btn {
  display: none;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem 1.75rem;
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links .nav-link {
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

/* ==========================================================================
   Hero & Featured Section
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 1.5rem;
}

.featured-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: var(--transition);
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.featured-visual {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #06b6d4);
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  color: #ffffff;
  overflow: hidden;
}

.featured-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
}

.visual-graphic {
  text-align: center;
  z-index: 2;
}

.visual-graphic i {
  font-size: 5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.visual-graphic .badge-featured {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.featured-tag {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.featured-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}

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

.featured-excerpt {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border-light);
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Filter & Search Toolbar
   ========================================================================== */
.filter-toolbar {
  padding: 1.5rem 0 2rem;
}

.toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.pill-btn:hover {
  background: var(--bg-muted);
  color: var(--text-main);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.pill-btn.active {
  background: var(--text-main);
  color: var(--bg-surface);
  border-color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  min-width: 260px;
  flex-grow: 1;
  max-width: 360px;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: 0.85rem;
  padding: 0.25rem;
}

.search-clear.visible {
  display: block;
}

/* Results Status Bar */
.results-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: none;
}

.results-status.active {
  display: block;
}

/* ==========================================================================
   Category Badges
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-tech {
  background-color: var(--cat-tech-bg);
  color: var(--cat-tech);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-tv {
  background-color: var(--cat-tv-bg);
  color: var(--cat-tv);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-travel {
  background-color: var(--cat-travel-bg);
  color: var(--cat-travel);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.badge-food {
  background-color: var(--cat-food-bg);
  color: var(--cat-food);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.badge-life {
  background-color: var(--cat-life-bg);
  color: var(--cat-life);
  border: 1px solid rgba(225, 29, 72, 0.25);
}

/* ==========================================================================
   Blog Posts Grid
   ========================================================================== */
.posts-grid-section {
  padding-bottom: 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i {
  color: var(--primary);
  font-size: 1.2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

/* Post Card */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.card-banner {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-tech {
  background: linear-gradient(135deg, #312e81, #4f46e5, #818cf8);
}

.banner-tv {
  background: linear-gradient(135deg, #0c4a6e, #0284c7, #38bdf8);
}

.banner-travel {
  background: linear-gradient(135deg, #134e4a, #0d9488, #2dd4bf);
}

.banner-food {
  background: linear-gradient(135deg, #7c2d12, #ea580c, #fb923c);
}

.banner-life {
  background: linear-gradient(135deg, #881337, #e11d48, #fb7185);
}

.card-banner i {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease;
}

.post-card:hover .card-banner i {
  transform: scale(1.1);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.card-read-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.card-title a {
  color: inherit;
}

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

.card-excerpt {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.read-btn {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.post-card:hover .read-btn {
  gap: 0.6rem;
}

/* No results card */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: block;
}

/* ==========================================================================
   Newsletter & Community Section
   ========================================================================== */
.newsletter-section {
  margin-bottom: 4rem;
}

.newsletter-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.newsletter-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-info h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.newsletter-info p {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.newsletter-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Article Detail Page Layout
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 200;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #8b5cf6);
  transition: width 0.1s ease-out;
}

.article-hero {
  padding: 2.5rem 0 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .sep {
  color: var(--text-light);
  font-size: 0.7rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.article-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.article-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-large-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-highlight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  border: 1px solid var(--border-hover);
}

.author-names strong {
  color: var(--text-main);
  display: block;
}

.author-names span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.share-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Article Content Layout */
.article-main-layout {
  padding: 3rem 0 4rem;
}

.article-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3.5rem;
  align-items: start;
}

/* Prose Typography */
.article-prose {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-body);
}

.article-prose p {
  margin-bottom: 1.5rem;
}

.article-prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  scroll-margin-top: 90px;
}

.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 90px;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose strong {
  color: var(--text-main);
  font-weight: 600;
}

.article-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: var(--primary-hover);
}

/* Key Takeaways Box */
.takeaways-box {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0 2.5rem;
}

.takeaways-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.takeaways-box ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.takeaways-box li {
  color: var(--text-body);
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

/* Callout Boxes */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.98rem;
}

.callout-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.2rem;
}

.callout-tip {
  background: var(--cat-travel-bg);
  border-left: 4px solid var(--cat-travel);
  color: var(--text-body);
}
.callout-tip .callout-icon { color: var(--cat-travel); }

.callout-warning {
  background: var(--cat-food-bg);
  border-left: 4px solid var(--cat-food);
  color: var(--text-body);
}
.callout-warning .callout-icon { color: var(--cat-food); }

.callout-info {
  background: var(--cat-tv-bg);
  border-left: 4px solid var(--cat-tv);
  color: var(--text-body);
}
.callout-info .callout-icon { color: var(--cat-tv); }

/* Steps Box */
.step-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.step-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

/* Tables */
.spec-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.spec-table th {
  background: var(--bg-muted);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.spec-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: var(--bg-muted);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  font-size: 0.88rem;
}

.toc-list li {
  margin-bottom: 0.6rem;
}

.toc-link {
  color: var(--text-muted);
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.toc-link:hover, .toc-link.active {
  color: var(--primary);
  transform: translateX(4px);
}

/* Related Posts Section */
.related-posts-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
}

/* Comments Section */
.comments-section {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--border-light);
}

.comments-header {
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
}

.comment-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.comment-form h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-body);
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   Static Pages (About, Contact, Privacy, Terms, Disclaimer)
   ========================================================================== */
.static-page-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.static-page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.static-page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.static-content {
  padding: 3rem 0 5rem;
}

.static-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0b111e;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: #1e293b;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-disclaimer-note {
  max-width: 650px;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: var(--bg-surface);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-visual {
    min-height: 220px;
  }
  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .article-sidebar {
    position: static;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .header-actions .btn-primary {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .form-row {
    flex-direction: column;
  }
  .article-title {
    font-size: 2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 1.7rem;
  }
  .featured-title {
    font-size: 1.4rem;
  }
  .featured-content {
    padding: 1.5rem;
  }
  .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
}
