/*
Theme Name: First Date Questions
Theme URI: https://firstdatequestions.io
Author: firstdatequestions.io
Description: A clean, fast, mobile-first WordPress theme for firstdatequestions.io. Includes homepage, blog index, single post, and question generator page templates.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: firstdatequestions
*/

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

:root {
  --blue:       #2563EB;
  --blue-light: #EFF6FF;
  --blue-mid:   #BFDBFE;
  --blue-dark:  #1D4ED8;
  --ink:        #1a1a1a;
  --muted:      #555;
  --faint:      #888;
  --hint:       #aaa;
  --border:     #EBEBEB;
  --surface:    #FAFAFA;
  --surfblue:   #FAFBFF;
  --white:      #fff;
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  10px;
  --radius-xl:  12px;
  --shadow:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Accessibility */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; top: -100%; left: 0; z-index: 999; background: var(--blue); color: #fff; padding: 8px 16px; }
.skip-link:focus { top: 0; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5 { line-height: 1.3; color: var(--ink); }
h1 { font-size: clamp(20px, 4vw, 27px); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(16px, 3vw, 20px); font-weight: 700; letter-spacing: -0.3px; }
h3 { font-size: 14px; font-weight: 600; }
p  { font-size: 13.5px; color: #444; line-height: 1.8; margin-bottom: 14px; }

/* ============================================================
   LAYOUT
============================================================ */
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ============================================================
   TOPBAR / NAVIGATION
============================================================ */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 14px; height: 14px; fill: #fff; }

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.main-nav { display: flex; align-items: center; gap: 2px; }

.main-nav a {
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.main-nav a:hover { background: #F5F5F5; color: var(--ink); }
.main-nav a.current-menu-item,
.main-nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 500; }

.header-badge {
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 1px solid var(--blue-mid);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
}

/* ============================================================
   TAGS / BADGES
============================================================ */
.tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.tag-deep      { background: var(--blue-light); color: var(--blue-dark); }
.tag-fun       { background: #F0FDF4; color: #166534; }
.tag-romantic  { background: #FDF2F8; color: #9D174D; }
.tag-tips      { background: #FFFBEB; color: #92400E; }
.tag-spicy     { background: #FEF2F2; color: #991B1B; }
.tag-ice       { background: #F0F9FF; color: #0369A1; }
.tag-psychology{ background: #F5F3FF; color: #5B21B6; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue-mid); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.btn-full { width: 100%; justify-content: center; padding: 11px; font-size: 13.5px; }

/* ============================================================
   HOMEPAGE HERO
============================================================ */
.hero {
  background: var(--surfblue);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 40px;
  text-align: center;
}
.hero h1 { margin-bottom: 10px; }
.hero p { font-size: 13.5px; color: var(--faint); max-width: 440px; margin: 0 auto 24px; }
.hero-stats {
  display: flex; gap: 32px; justify-content: center;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-num { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-stat-lbl { font-size: 11px; color: var(--hint); margin-top: 3px; }

/* ============================================================
   TOOL / GENERATOR
============================================================ */
.tool-section { padding: 36px 20px 0; }

.input-tabs {
  display: flex; gap: 4px; justify-content: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
.input-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px;
  border: 1px solid var(--border);
  cursor: pointer; font-size: 12.5px; color: var(--muted);
  background: var(--white); transition: border-color .15s, color .15s;
}
.input-tab:hover { border-color: #ccc; }
.input-tab.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.tool-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  background: var(--surfblue);
  margin-bottom: 14px;
}
.tool-hint { font-size: 13px; color: var(--muted); margin-bottom: 4px; text-align: center; }
.tool-examples { font-size: 11.5px; color: var(--hint); text-align: center; margin-bottom: 18px; }

.tool-settings {
  display: flex; align-items: center;
  justify-content: center; gap: 14px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.setting-group { display: flex; align-items: center; gap: 6px; }
.setting-label { font-size: 12px; color: #666; }
.setting-select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 5px 10px; font-size: 12px; color: var(--ink);
  background: var(--white); cursor: pointer;
}

.examples-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 32px;
}
.example-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 12px; cursor: pointer; background: var(--white);
  transition: border-color .15s;
}
.example-card:hover { border-color: var(--blue); }
.example-card-title { font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 20px;
  display: flex; justify-content: center; gap: 48px;
  background: var(--surface); flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 11px; }
.stat-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; fill: var(--blue); }
.stat-num { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--hint); margin-top: 2px; }

/* ============================================================
   TRUSTED BAR
============================================================ */
.trusted-bar {
  padding: 18px 20px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.trusted-bar p { font-size: 12px; color: var(--hint); margin-bottom: 10px; }
.logos { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.logo-pill {
  background: #F5F5F5; border: 1px solid #E8E8E8; border-radius: 7px;
  padding: 5px 12px; font-size: 11.5px; font-weight: 600; color: #555;
}

/* ============================================================
   HOW-TO STEPS
============================================================ */
.how-section { padding: 32px 20px; border-bottom: 1px solid var(--border); }
.how-section h2 { text-align: center; margin-bottom: 6px; }
.how-section .sub { font-size: 13px; color: var(--hint); text-align: center; margin-bottom: 22px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 16px; background: var(--surface);
}
.step-icon {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.step-icon svg { width: 17px; height: 17px; fill: var(--blue); }
.step-num { font-size: 10px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 5px; }
.step-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.4; }
.step-desc { font-size: 12px; color: var(--faint); line-height: 1.6; }

/* ============================================================
   CTA BLOCK
============================================================ */
.cta-block {
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: var(--radius-xl); padding: 26px 24px; text-align: center;
}
.cta-block h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.cta-block p  { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.cta-wrap { padding: 24px 20px; border-bottom: 1px solid var(--border); }

/* ============================================================
   FAQ
============================================================ */
.faq-section { padding: 32px 20px; }
.faq-section h2 { text-align: center; margin-bottom: 22px; }
.faq-list { max-width: 620px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 13px; color: #333; }
.faq-arrow {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .2s;
}
.faq-arrow svg { width: 10px; height: 10px; fill: var(--hint); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { font-size: 12.5px; color: var(--muted); line-height: 1.7; padding: 8px 0 14px; display: none; }
.faq-item.open + .faq-answer { display: block; }

/* ============================================================
   BLOG INDEX
============================================================ */
.blog-hero {
  background: var(--surfblue); border-bottom: 1px solid var(--border);
  padding: 28px 20px; text-align: center;
}
.blog-hero p { font-size: 13px; color: var(--faint); max-width: 420px; margin: 0 auto; }

.cat-bar {
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cat-tab {
  padding: 12px 14px; font-size: 12.5px; color: #666;
  cursor: pointer; border-bottom: 2px solid transparent;
  white-space: nowrap; margin-bottom: -1px;
  text-decoration: none; display: block;
  transition: color .15s, border-color .15s;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 500; }

.blog-layout { display: grid; grid-template-columns: 1fr 268px; gap: 0; }

.posts-col { padding: 28px 28px; border-right: 1px solid var(--border); }

.featured-card { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 24px; }
.featured-img {
  background: var(--blue-light); height: 160px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.featured-img svg { width: 40px; height: 40px; fill: var(--blue-mid); }
.featured-body { padding: 18px 20px; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.post-date { font-size: 11px; color: #bbb; }
.post-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.2px; }
.post-excerpt { font-size: 12.5px; color: var(--faint); line-height: 1.6; margin-bottom: 14px; }
.read-more { font-size: 12px; color: var(--blue); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.read-more svg { width: 12px; height: 12px; fill: var(--blue); }

.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: border-color .15s; }
.post-card:hover { border-color: var(--blue); }
.post-card a { text-decoration: none; }
.post-img { height: 80px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.post-img svg { width: 24px; height: 24px; opacity: .5; }
.post-img-deep     { background: var(--blue-light); }
.post-img-fun      { background: #F0FDF4; }
.post-img-romantic { background: #FDF2F8; }
.post-img-tips     { background: #FFFBEB; }
.post-img-spicy    { background: #FEF2F2; }
.post-img-ice      { background: #F0F9FF; }
.post-body { padding: 12px 14px; }
.post-card .post-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; line-height: 1.4; color: var(--ink); }
.post-card .post-excerpt { font-size: 11.5px; color: var(--faint); line-height: 1.5; margin-bottom: 0; }
.post-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #F5F5F5; }
.read-time { font-size: 11px; color: #bbb; display: flex; align-items: center; gap: 3px; }
.read-time svg { width: 11px; height: 11px; fill: #ddd; }

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar { padding: 24px 22px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-title { font-size: 11px; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }

.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; background: var(--surface); }
.search-box svg { width: 14px; height: 14px; fill: #bbb; flex-shrink: 0; }
.search-box input { border: none; background: transparent; font-size: 12.5px; color: var(--ink); outline: none; width: 100%; }
.search-box input::placeholder { color: #bbb; }

.popular-list { display: flex; flex-direction: column; gap: 2px; }
.popular-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: background .15s; }
.popular-item:hover { background: #F5F5F5; }
.pop-num { font-size: 11px; font-weight: 700; color: var(--blue-mid); min-width: 16px; }
.pop-title { font-size: 12.5px; color: #333; line-height: 1.4; flex: 1; }

.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: background .15s; }
.cat-item:hover { background: #F5F5F5; }
.cat-item-left { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #444; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-count { font-size: 11px; color: #bbb; background: #F5F5F5; padding: 2px 7px; border-radius: 10px; }

.newsletter-widget { background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: var(--radius-lg); padding: 16px; }
.newsletter-widget h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.newsletter-widget p { font-size: 11.5px; color: #666; line-height: 1.5; margin-bottom: 12px; }
.newsletter-widget input { width: 100%; border: 1px solid var(--blue-mid); border-radius: 7px; padding: 8px 10px; font-size: 12px; background: var(--white); outline: none; margin-bottom: 8px; color: var(--ink); }
.newsletter-widget button { width: 100%; background: var(--blue); color: var(--white); border: none; border-radius: 7px; padding: 9px; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: opacity .15s; }
.newsletter-widget button:hover { opacity: .9; }

/* ============================================================
   SINGLE POST
============================================================ */
.breadcrumb {
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--hint); flex-wrap: wrap;
}
.breadcrumb a { color: var(--hint); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg { width: 10px; height: 10px; fill: #ccc; flex-shrink: 0; }

.post-layout { display: grid; grid-template-columns: 1fr 268px; gap: 0; }
.post-main { padding: 32px 32px; border-right: 1px solid var(--border); }

.post-header { margin-bottom: 24px; }
.post-meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.post-read { font-size: 11.5px; color: #bbb; display: flex; align-items: center; gap: 3px; }
.post-read svg { width: 11px; height: 11px; fill: #ccc; }
.meta-dot { color: #ddd; }
.post-h1 { font-size: clamp(18px, 3.5vw, 22px); font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.4px; margin-bottom: 14px; }
.post-intro {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  border-left: 3px solid var(--blue); padding: 12px 16px;
  background: var(--surfblue); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 20px;
}

.author-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 24px;
}
.author-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-mid); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--blue-dark); flex-shrink: 0;
}
.author-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.author-role { font-size: 11px; color: var(--hint); }
.share-btns { margin-left: auto; display: flex; gap: 6px; }
.share-btn {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: var(--white); transition: border-color .15s;
}
.share-btn:hover { border-color: var(--blue); }
.share-btn svg { width: 13px; height: 13px; fill: var(--faint); }

.post-hero-img {
  background: var(--blue-light); border: 1px solid #DBEAFE;
  border-radius: var(--radius-lg); height: 180px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.post-hero-img svg { width: 48px; height: 48px; fill: var(--blue-mid); }

/* Article body */
.article-body h2 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.article-body h3 { font-size: 14px; font-weight: 600; margin: 18px 0 8px; }
.article-body p  { font-size: 13.5px; color: #444; line-height: 1.8; margin-bottom: 14px; }
.article-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.article-body ul li { font-size: 13.5px; color: #444; line-height: 1.75; padding: 5px 0 5px 20px; position: relative; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.q-list { background: var(--surfblue); border: 1px solid #DBEAFE; border-radius: var(--radius-lg); padding: 16px 20px; margin: 16px 0 20px; }
.q-list-title { font-size: 11px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.q-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EFF6FF; }
.q-item:last-child { border-bottom: none; }
.q-num { font-size: 11px; font-weight: 700; color: #93C5FD; min-width: 20px; margin-top: 2px; }
.q-text { font-size: 13px; color: var(--ink); line-height: 1.5; flex: 1; }
.q-copy { font-size: 10.5px; color: #93C5FD; border: 1px solid #DBEAFE; border-radius: 5px; padding: 2px 8px; cursor: pointer; white-space: nowrap; background: var(--white); flex-shrink: 0; transition: color .15s, border-color .15s; }
.q-copy:hover { color: var(--blue); border-color: var(--blue); }

/* Article tables */
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 13px; }
.article-body table th { background: var(--surface); font-weight: 600; text-align: left; padding: 10px 14px; border: 1px solid var(--border); font-size: 12px; color: var(--ink); }
.article-body table td { padding: 10px 14px; border: 1px solid var(--border); color: #444; line-height: 1.6; }
.article-body table tr:nth-child(even) td { background: var(--surface); }
.article-body table caption { font-size: 12px; color: var(--hint); margin-bottom: 8px; text-align: left; }

/* Article ordered lists */
.article-body ol { margin: 0 0 14px; padding-left: 24px; }
.article-body ol li { font-size: 13.5px; color: #444; line-height: 1.75; padding: 4px 0; }

/* Article blockquote */
.article-body blockquote { border-left: 3px solid var(--blue); padding: 12px 16px; background: var(--surfblue); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 16px 0; font-style: italic; color: var(--muted); }
.article-body blockquote p { margin-bottom: 0; }

/* Article code */
.article-body code { background: #F5F5F5; padding: 2px 6px; border-radius: 4px; font-size: 12.5px; }
.article-body pre { background: #1a1a1a; color: #e0e0e0; padding: 16px; border-radius: var(--radius-md); overflow-x: auto; margin: 16px 0; font-size: 12.5px; line-height: 1.6; }

.callout { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius-md); padding: 14px 16px; margin: 16px 0; display: flex; gap: 10px; align-items: flex-start; }
.callout svg { width: 15px; height: 15px; fill: #F59E0B; flex-shrink: 0; margin-top: 1px; }
.callout p { font-size: 13px; color: #92400E; line-height: 1.6; margin: 0; }

.article-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; font-size: 11px; color: var(--muted); }
.article-tag { background: #F5F5F5; border: 1px solid var(--border); border-radius: 20px; font-size: 11.5px; color: #444; padding: 3px 11px; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s; }
.article-tag:hover { border-color: var(--blue); color: var(--blue); }

/* TOC */
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-md); cursor: pointer; font-size: 12.5px; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; }
.toc-item:hover { background: #F5F5F5; color: var(--blue); }
.toc-item.active { background: var(--blue-light); color: var(--blue); font-weight: 500; }
.toc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-mid); flex-shrink: 0; }
.toc-item.active .toc-dot { background: var(--blue); }

/* Related posts */
.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 11px 13px; cursor: pointer; text-decoration: none; display: block; transition: border-color .15s; }
.related-card:hover { border-color: var(--blue); }
.related-title { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.4; margin: 5px 0 4px; }
.related-meta { font-size: 11px; color: #bbb; }

/* ============================================================
   SITE FOOTER
============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px 18px;
  background: var(--surface);
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto 24px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col-title { font-size: 11px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.foot-col a { font-size: 12px; color: #888; text-decoration: none; line-height: 1.6; }
.foot-col a:hover { color: var(--blue); text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 16px; display: flex; align-items: center; justify-content: center; }
.foot-left { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.foot-icon { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.foot-icon svg { width: 11px; height: 11px; fill: #fff; }
.foot-brand { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.foot-tag { font-size: 11.5px; color: #bbb; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-links a { font-size: 11.5px; color: #999; text-decoration: none; }
.foot-links a:hover { color: var(--blue); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .blog-layout, .post-layout { grid-template-columns: 1fr; }
  .posts-col, .post-main { border-right: none; }
  .sidebar { border-top: 1px solid var(--border); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 50px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 16px; z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; border-radius: var(--radius-md); font-size: 14px; }
  .nav-toggle { display: flex; }
  .header-badge { display: none; }
  .site-header { position: relative; }
  .steps-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { gap: 24px; }
  .hero-stats { gap: 20px; }
  .tool-settings { justify-content: flex-start; }
  body { font-size: 15px; }
  p { font-size: 15px; }
  .article-body p { font-size: 15px; }
  .article-body ul li { font-size: 15px; }
  .share-btn { width: 44px; height: 44px; }
  .share-btn svg { width: 18px; height: 18px; }
  .faq-item { padding: 16px 0; }
  .faq-q { font-size: 14px; }
  .faq-arrow { width: 28px; height: 28px; }
  .foot-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .foot-left { flex-direction: column; align-items: center; gap: 6px; }
  .author-row { flex-wrap: wrap; }
  .share-btns { margin-left: 0; margin-top: 8px; }
  .q-copy { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .posts-col, .post-main { padding: 20px 14px; }
  .sidebar { padding: 20px 14px; }
  .examples-grid { grid-template-columns: 1fr; }
  .input-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .hero { padding: 32px 14px 28px; }
  .stats-bar { flex-direction: column; gap: 16px; align-items: center; }
  .post-intro { font-size: 13px; padding: 10px 12px; }
  .breadcrumb { font-size: 11px; padding: 10px 14px; }
  .tool-box { padding: 16px 14px; }
  .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }
  .btn-full { padding: 14px; font-size: 14px; }
}
