/* =============================================
   Hamilelik Haftası Hesaplayıcı — Design System v2
   Premium · Calm · Accessible · Senior-Level
   ============================================= */

/* --- Custom Properties --- */
:root {
  /* Base palette — warm, calm, maternal */
  --bg: #faf8f5;
  --bg-alt: #f2efe9;
  --bg-glass: rgba(255,255,255,.72);
  --card: #ffffff;
  --card-hover: #fefefe;
  --text: #2b2724;
  --text-secondary: #635d56;
  --muted: #9a9389;
  --border: #e8e4dd;
  --border-light: #f0ede7;

  /* Accent — soft violet / lilac */
  --accent: #8b6fb0;
  --accent-rgb: 139,111,176;
  --accent-light: #f0ebf7;
  --accent-dark: #6b5290;
  --accent-gradient: linear-gradient(135deg, #8b6fb0 0%, #a78bca 50%, #c4a8e0 100%);

  /* Status colors */
  --success: #5b9a6f;
  --success-light: #eaf5ed;
  --warning: #c9953c;
  --warning-light: #fdf5e6;
  --danger: #c45c5c;
  --danger-light: #fceaea;
  --info: #5a8fb5;
  --info-light: #eaf2f8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.09);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.12);
  --shadow-glow: 0 0 32px rgba(var(--accent-rgb),.15);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

  /* Timing */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .15s;
  --t-normal: .25s;
  --t-slow: .4s;

  /* Layout */
  --max-w: 1160px;
  --max-w-narrow: 760px;
  --header-h: 68px;
  --section-gap: 4rem;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg: #121215;
  --bg-alt: #1a1a1f;
  --bg-glass: rgba(26,26,31,.78);
  --card: #222228;
  --card-hover: #2a2a32;
  --text: #ece9e3;
  --text-secondary: #b5b0a8;
  --muted: #807b74;
  --border: #333338;
  --border-light: #28282e;
  --accent: #b09cd4;
  --accent-rgb: 176,156,212;
  --accent-light: #2a2540;
  --accent-dark: #d0c0ea;
  --accent-gradient: linear-gradient(135deg, #9a82c0 0%, #b09cd4 50%, #c8b8e6 100%);
  --success: #6dba82;
  --success-light: #1a2d20;
  --warning: #d9a94e;
  --warning-light: #2d2518;
  --danger: #d47272;
  --danger-light: #2d1a1a;
  --info: #6da4cb;
  --info-light: #1a252d;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.35);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.4);
  --shadow-glow: 0 0 40px rgba(var(--accent-rgb),.2);
}

/* --- Reset --- */
*, *::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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.72;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); margin-bottom: 1rem; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.95rem); margin: 2.5rem 0 .85rem; }
h3 { font-size: clamp(1.12rem, 2.5vw, 1.42rem); margin: 1.75rem 0 .6rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 600; }

/* --- Container --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { width: 100%; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: box-shadow var(--t-normal) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}
.site-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--accent-dark); text-decoration: none; }
.site-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: .15rem; }
.header-nav a {
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 550;
  color: var(--text-secondary);
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.theme-toggle {
  width: 40px; height: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.mobile-toggle:hover { background: var(--bg-alt); }

@media (max-width: 800px) {
  .mobile-toggle { display: flex; }
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: .75rem 1rem;
    gap: .15rem;
    transform: translateY(-120%);
    transition: transform .3s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .header-nav.open { transform: translateY(0); }
  .header-nav a { width: 100%; text-align: center; padding: .85rem; border-radius: var(--r-sm); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}
.hero h1 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 700px;
  margin: 0 auto .75rem;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.hero-stat .lbl {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ============================================
   DISCLAIMER
   ============================================ */
.disclaimer {
  background: var(--warning-light);
  border: 1px solid rgba(201,149,60,.3);
  border-left: 4px solid var(--warning);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text);
}
.disclaimer strong { color: var(--warning); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ============================================
   CALCULATOR FORM
   ============================================ */
.calc-section { padding: 0 0 var(--section-gap); }
.calc-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
}
.calc-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-gradient);
}
.calc-form-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--text);
}
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--text);
}
.form-group label .label-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
}
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: all var(--t-fast) var(--ease);
  appearance: none;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.12);
}
.range-group { display: flex; align-items: center; gap: .85rem; }
.range-group input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 6px;
  outline: none;
}
.range-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(var(--accent-rgb),.3);
  transition: transform var(--t-fast) var(--ease-bounce);
}
.range-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.range-group input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.range-value {
  font-weight: 700;
  font-size: .95rem;
  min-width: 3.5rem;
  text-align: center;
  color: var(--accent);
  background: var(--accent-light);
  padding: .3rem .5rem;
  border-radius: var(--r-xs);
}

/* Toggle switches */
.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border-light);
}
.toggle-group:last-of-type { border-bottom: none; }
.toggle-group label:first-child { font-size: .87rem; font-weight: 500; margin-bottom: 0; cursor: pointer; }
.toggle-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 26px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--t-fast) var(--ease-bounce);
  box-shadow: var(--shadow-xs);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:focus-visible + .toggle-slider { box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.25); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border: none;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb),.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb),.4);
  color: #fff;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================
   RESULT CARD
   ============================================ */
.result-card {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  margin: 0 auto 2rem;
  max-width: 540px;
  box-shadow: var(--shadow-glow);
  display: none;
  animation: slideUp .4s var(--ease-bounce);
}
.result-card.visible { display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-week {
  font-size: 2.6rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-week small {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--muted);
  margin-top: .3rem;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin: 1.5rem 0;
}
.result-item {
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 1rem;
  text-align: center;
}
.result-item .label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: .3rem;
}
.result-item .value { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.result-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.result-links a { font-size: .9rem; font-weight: 600; }

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-container { margin: 1.5rem 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: .45rem;
}
.progress-bar {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  transition: width .6s var(--ease);
  position: relative;
}

/* ============================================
   TRIMESTER BADGE
   ============================================ */
.trimester-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .85rem;
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 600;
}
.trimester-1 { background: var(--info-light); color: var(--info); }
.trimester-2 { background: var(--success-light); color: var(--success); }
.trimester-3 { background: var(--warning-light); color: var(--warning); }

/* ============================================
   PLANNING NOTES
   ============================================ */
.planning-notes {
  background: var(--info-light);
  border: 1px solid rgba(90,143,181,.25);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin: 1.5rem 0 0;
}
.planning-notes h3 { font-size: .95rem; color: var(--info); margin: 0 0 .6rem; }
.planning-notes ul { margin: 0; padding-left: 1.25rem; }
.planning-notes li { font-size: .88rem; color: var(--text-secondary); margin-bottom: .35rem; }

/* ============================================
   FORM ERRORS / VALIDATION
   ============================================ */
.form-error {
  color: var(--danger);
  font-size: .82rem;
  margin-top: .35rem;
  display: none;
  font-weight: 500;
}
.form-error.visible { display: block; animation: shake .35s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.form-group.has-error input, .form-group.has-error select { border-color: var(--danger); }

/* ============================================
   SECTION LAYOUTS
   ============================================ */
.content-section { padding: var(--section-gap) 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.section-header h2 { margin: 0; }
.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .35rem;
}

/* ============================================
   WEEK GRID
   ============================================ */
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .7rem;
}
.week-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem .75rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-normal) var(--ease);
  display: block;
  position: relative;
  overflow: hidden;
}
.week-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: height var(--t-fast) var(--ease);
}
.week-card.t1::before { background: var(--info); }
.week-card.t2::before { background: var(--success); }
.week-card.t3::before { background: var(--warning); }
.week-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}
.week-card:hover::before { height: 4px; }
.week-card .week-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}
.week-card .week-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.week-card .week-desc {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: .3rem;
  line-height: 1.35;
}

/* ============================================
   FILTER CHIPS
   ============================================ */

/* ============================================
   LINK CARDS
   ============================================ */
.link-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-normal) var(--ease);
  position: relative;
  overflow: hidden;
}
.link-card::after {
  content: "→";
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all var(--t-fast) var(--ease);
}
.link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}
.link-card:hover::after { color: var(--accent); transform: translateX(4px); }
.link-card h3 { font-size: .98rem; color: var(--accent); margin: 0 0 .4rem; padding-right: 2rem; }
.link-card p { font-size: .86rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--muted);
  padding: 1.25rem 0 .75rem;
}
.breadcrumb a { color: var(--accent); font-weight: 500; }
.breadcrumb span { color: var(--muted); }

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.article-content { max-width: var(--max-w-narrow); margin: 0 auto; }
.article-content p { font-size: 1.02rem; line-height: 1.78; }
.article-content h2 { padding-top: 1.25rem; border-top: 1px solid var(--border-light); }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; }
.article-content li { font-size: 1rem; margin-bottom: .5rem; line-height: 1.7; }
.lead { font-size: 1.12rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.75rem; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .7rem;
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
  width: 100%;
  background: var(--card);
  border: none;
  padding: 1.1rem 1.35rem;
  font-size: .97rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background var(--t-fast);
  gap: 1rem;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform var(--t-fast) var(--ease);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.faq-item.open .faq-question::after { content: "−"; color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-answer-inner {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-secondary);
  font-size: .93rem;
  line-height: 1.7;
}

/* ============================================
   SEARCH
   ============================================ */
.search-box { position: relative; max-width: 520px; margin: 0 auto 1.5rem; }
.search-box input {
  width: 100%;
  padding: .85rem 1.1rem .85rem 3rem;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--card);
  color: var(--text);
  transition: all var(--t-fast) var(--ease);
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.1); }
.search-box .search-icon {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.05rem;
}
.search-results { margin-top: 1rem; }
.search-result-item {
  display: block;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .7rem;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-fast) var(--ease);
}
.search-result-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; }
.search-result-item h3 { font-size: .97rem; margin: 0 0 .25rem; color: var(--accent); }
.search-result-item p { font-size: .86rem; margin: 0; color: var(--text-secondary); }
.search-result-item .search-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: var(--r-full);
  margin-top: .4rem;
}

/* ============================================
   WEEK NAVIGATION
   ============================================ */
.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  padding: 1.35rem;
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.week-nav a { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }

/* ============================================
   RELATED LINKS
   ============================================ */
.related-links {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  border: 1px solid var(--border-light);
}
.related-links h3 { margin: 0 0 .85rem; font-size: 1rem; }
.related-links ul { margin: 0; padding-left: 1.25rem; }
.related-links li { margin-bottom: .45rem; }
.related-links a { font-size: .92rem; font-weight: 500; }

/* ============================================
   CHECKLIST
   ============================================ */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .93rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.checklist li::before { content: "☐"; color: var(--accent); flex-shrink: 0; margin-top: .1rem; font-size: 1rem; }

/* ============================================
   EMERGENCY NOTE
   ============================================ */
.emergency-note {
  background: var(--danger-light);
  border: 1px solid rgba(196,92,92,.25);
  border-left: 4px solid var(--danger);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  margin: 2rem 0;
  font-size: .88rem;
  line-height: 1.65;
}
.emergency-note strong { color: var(--danger); }

/* ============================================
   TRIMESTER CARDS
   ============================================ */
.trimester-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all var(--t-normal) var(--ease);
  position: relative;
  overflow: hidden;
}
.trimester-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}
.trimester-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.trimester-card p { font-size: .9rem; color: var(--text-secondary); margin: 0; }

/* ============================================
   FEATURES GRID (Homepage)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--t-normal) var(--ease);
  text-align: center;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
}
.feature-card h3 { font-size: 1rem; margin: 0 0 .45rem; }
.feature-card p { font-size: .86rem; color: var(--text-secondary); margin: 0; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--accent-light);
  border-radius: var(--r-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section h2 { margin: 0 0 .75rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot { text-align: center; margin: 2rem 0; min-height: 90px; overflow: hidden; }
.ad-slot ins { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: var(--section-gap);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { font-size: .87rem; color: var(--text-secondary); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.footer-disclaimer {
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { margin: 0; font-size: .86rem; color: var(--text-secondary); }
.cookie-banner a { color: var(--accent); font-weight: 500; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-normal) var(--ease);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb),.35);
  z-index: 50;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(var(--accent-rgb),.45); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.divider {
  width: 60px; height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  margin: 1rem auto;
}

/* ============================================
   ARTICLE CONTENT (Blog pages)
   ============================================ */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.article-content h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; color: var(--text); }
.article-content h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.article-content p { line-height: 1.8; margin-bottom: 1rem; color: var(--text); }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .4rem; line-height: 1.7; }
.article-content strong { color: var(--text); }

.related-articles { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { margin-bottom: .5rem; }
.related-articles a { color: var(--accent); text-decoration: none; }
.related-articles a:hover { text-decoration: underline; }

/* ============================================
   WEEK FILTER CHIPS (Homepage)
   ============================================ */
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  padding: .45rem 1rem; border-radius: var(--r-full);
  background: var(--bg-alt); color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
  font-size: .85rem; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ============================================
   GRID-2 for guides/link cards
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .site-footer, .header-nav, .ad-slot,
  .mobile-toggle, .theme-toggle, .header-actions,
  .btn-group, .filter-chips, .week-nav, .related-links,
  .search-box, nav, .cookie-banner, .scroll-top,
  .cta-section { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .calc-form, .result-card { border: 1px solid #ccc; box-shadow: none; }
  .result-card { display: block !important; }
  .disclaimer { border: 2px solid #999; background: #f5f5f5; }
  .result-week { -webkit-text-fill-color: #333; }
  .hero h1 { -webkit-text-fill-color: #333; }
  a { color: #333; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (forced-colors: active) {
  .btn-primary { border: 2px solid ButtonText; }
  .card, .week-card { border: 2px solid CanvasText; }
  .progress-fill { background: Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; }
  .calc-form { padding: 1.5rem; border-radius: var(--r-lg); }
  .result-card { padding: 1.5rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-stats { gap: 1.5rem; }
  .content-section { padding: 2.5rem 0; }
  .features-grid { grid-template-columns: 1fr; }
}
