/* ============================================================
   MyBlog101 — Main Stylesheet
   Modern, clean, trustworthy affiliate blog design
   ============================================================ */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Brand Colors */
  --color-primary:       #1e40af;   /* deep blue — trust & authority */
  --color-primary-dark:  #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-secondary:     #059669;   /* emerald green */
  --color-accent:        #f59e0b;   /* amber — highlights */
  --color-cta:           #dc2626;   /* red — strong CTAs */
  --color-cta-hover:     #b91c1c;

  /* Category Colors */
  --cat-health:     #10b981;
  --cat-money:      #059669;
  --cat-love:       #ec4899;
  --cat-tech:       #6366f1;
  --cat-fashion:    #f43f5e;
  --cat-misc:       #8b5cf6;

  /* Neutrals */
  --color-bg:        #ffffff;
  --color-bg-soft:   #f8fafc;
  --color-bg-muted:  #f1f5f9;
  --color-border:    #e2e8f0;
  --color-text:      #0f172a;
  --color-text-muted:#64748b;
  --color-text-light:#94a3b8;
  --color-white:     #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

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

  /* Layout */
  --container-max: 1200px;
  --sidebar-width: 300px;
  --header-height: 70px;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

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

.btn-cta {
  background: var(--color-cta);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}
.btn-cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.45);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ---- Badge / Tag ---- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-health     { background: #d1fae5; color: #065f46; }
.badge-money      { background: #dcfce7; color: #14532d; }
.badge-love       { background: #fce7f3; color: #831843; }
.badge-tech       { background: #ede9fe; color: #3730a3; }
.badge-fashion    { background: #ffe4e6; color: #881337; }
.badge-misc       { background: #ede9fe; color: #4c1d95; }
.badge-primary    { background: #dbeafe; color: #1e40af; }

/* ============================================================
   DISCLOSURE BANNER
   ============================================================ */
.disclosure-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #92400e;
}

.disclosure-banner a {
  color: #92400e;
  text-decoration: underline;
  font-weight: 500;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-md);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 800;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

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

/* Main Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
  white-space: nowrap;
}

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

.nav-link.nav-home {
  font-weight: 600;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--color-bg-muted);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: var(--space-md) var(--space-lg);
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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.03'%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");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bfdbfe;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: normal;
  color: #fbbf24;
}

.hero-desc {
  font-size: 1.1rem;
  color: #bfdbfe;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.hero-btn-primary:hover {
  background: #f1f5f9;
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--color-white);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: #93c5fd;
  margin-top: 4px;
}

/* Hero Image Side */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(8px);
}

.hero-card:nth-child(1) { margin-top: var(--space-xl); }
.hero-card:nth-child(4) { margin-top: calc(-1 * var(--space-xl)); }

.hero-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.hero-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.hero-card-desc {
  font-size: 0.75rem;
  color: #93c5fd;
}

/* ============================================================
   SECTION PADDING
   ============================================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--color-bg-soft);
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.category-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
  position: relative;
}

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

.category-card-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.category-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
}

.cat-health-bg   { background: linear-gradient(135deg, #059669, #10b981); }
.cat-money-bg    { background: linear-gradient(135deg, #047857, #059669); }
.cat-love-bg     { background: linear-gradient(135deg, #db2777, #ec4899); }
.cat-tech-bg     { background: linear-gradient(135deg, #4338ca, #6366f1); }
.cat-fashion-bg  { background: linear-gradient(135deg, #be185d, #f43f5e); }
.cat-misc-bg     { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }

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

.category-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.category-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-card-count {
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.category-card-arrow {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-bg-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.category-card:hover .category-card-arrow {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   FEATURED ARTICLES + SIDEBAR LAYOUT
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
}

/* ---- Article Cards Grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.article-card-image {
  aspect-ratio: 16/9;
  background: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.article-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.article-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.article-card-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  flex: 1;
}

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

.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-readmore {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card-readmore:hover {
  gap: 8px;
}

/* ---- Featured Article (large card) ---- */
.article-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.article-card.featured .article-card-image {
  width: 45%;
  flex-shrink: 0;
  aspect-ratio: unset;
  min-height: 220px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-widget-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.sidebar-widget-body {
  padding: var(--space-lg);
}

/* Product Recommendation Widget */
.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  transition: box-shadow var(--transition);
}
.product-card:last-child { margin-bottom: 0; }
.product-card:hover { box-shadow: var(--shadow-md); }

.product-card-image {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--color-bg-muted), var(--color-bg-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text-muted);
}

.product-card-body {
  padding: var(--space-md);
}

.product-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.product-card-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.product-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.product-card .btn-cta {
  width: 100%;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Stars Rating */
.star-rating {
  color: #f59e0b;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

/* Sidebar Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.65rem var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.newsletter-form .btn {
  width: 100%;
  justify-content: center;
}

/* Sidebar Category List */
.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--color-text);
  transition: all var(--transition);
}
.sidebar-category-list li a:hover {
  background: var(--color-bg-muted);
  color: var(--color-primary);
}

.sidebar-category-list .count {
  background: var(--color-bg-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ============================================================
   AFFILIATE DISCLOSURE INLINE
   ============================================================ */
.affiliate-disclosure {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.82rem;
  color: #78350f;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  line-height: 1.55;
}

.affiliate-disclosure .icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}

/* ============================================================
   ARTICLE TEMPLATE PAGE
   ============================================================ */
.article-layout {
  padding: var(--space-2xl) 0;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.article-breadcrumb a {
  color: var(--color-text-muted);
}
.article-breadcrumb a:hover { color: var(--color-primary); }
.article-breadcrumb .sep { color: var(--color-border); }

.article-header {
  margin-bottom: var(--space-xl);
}

.article-category-badge {
  margin-bottom: var(--space-md);
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.article-meta-item .icon { font-size: 0.9rem; }

.article-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Article Body Typography ---- */
.article-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
  max-width: 720px;
}

.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body strong {
  font-weight: 700;
  color: var(--color-text);
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #f8fafc;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

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

.article-body img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* ---- Product Recommendation Box ---- */
.product-recommendation-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.product-recommendation-box .box-label {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.product-recommendation-box .product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.product-recommendation-box .product-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.product-recommendation-box .product-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-highlight-tag {
  background: white;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 500;
}

.cta-section {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

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

/* ---- FAQ Section ---- */
.faq-section {
  margin: var(--space-2xl) 0;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: background var(--transition);
}

.faq-question:hover { background: var(--color-bg-soft); }

.faq-question.open { background: var(--color-bg-muted); }

.faq-chevron {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-question.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
}

.faq-answer.open { display: block; }

/* ---- Related Articles ---- */
.related-articles {
  margin: var(--space-2xl) 0;
}

.related-articles h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

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

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-hero {
  padding: var(--space-2xl) 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.category-hero-inner {
  position: relative;
  z-index: 1;
}

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

.category-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.category-hero-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   LEGAL PAGES (Privacy, Terms)
   ============================================================ */
.legal-page {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.legal-header {
  background: var(--color-bg-muted);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2xl);
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-child { border-top: none; padding-top: 0; }

.legal-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.5rem;
  list-style: disc;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.legal-toc h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.legal-toc ol {
  margin-left: 1.25rem;
  list-style: decimal;
}

.legal-toc li {
  margin-bottom: 0.35rem;
}

.legal-toc a {
  font-size: 0.88rem;
  color: var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: var(--space-md) 0 var(--space-lg);
  color: #64748b;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px; height: 36px;
  background: #1e293b;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #64748b;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: white;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e2e8f0;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #64748b;
  transition: color var(--transition);
}

.footer-links a:hover { color: #94a3b8; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #475569;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: #475569;
  transition: color var(--transition);
}

.footer-legal-links a:hover { color: #94a3b8; }

.footer-disclosure {
  font-size: 0.78rem;
  color: #334155;
  text-align: center;
  padding-bottom: var(--space-md);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

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

/* Empty State (for category pages) */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.empty-state-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Tag List */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  padding: 0.3rem 0.75rem;
  background: var(--color-bg-muted);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: all var(--transition);
}
.tag:hover {
  background: var(--color-primary);
  color: white;
}

/* Separator */
.section-sep {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

/* Info Box */
.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  color: #1e40af;
  margin: var(--space-lg) 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { display: none; }

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

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

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

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

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

  .article-card.featured {
    flex-direction: column;
    grid-column: span 1;
  }

  .article-card.featured .article-card-image {
    width: 100%;
    min-height: 180px;
    aspect-ratio: 16/9;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

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

  .article-meta {
    gap: var(--space-md);
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-btn-primary,
  .hero-btn-outline {
    text-align: center;
    justify-content: center;
  }

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

  .legal-header h1 {
    font-size: 1.5rem;
  }

  .product-recommendation-box {
    padding: var(--space-lg);
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

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

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

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

  .footer-social a {
    width: 32px;
    height: 32px;
  }
}
