/* ========================================
   ADET TAKVİMİ — Design System
   Premium, calm, feminine-neutral palette
   ======================================== */

:root {
  --bg: #FDFBF9;
  --bg-alt: #F5F0EB;
  --card: #FFFFFF;
  --card-hover: #FFFEFA;
  --text: #2C2C3A;
  --text-secondary: #6B6B80;
  --muted: #9494A8;
  --border: #E8E2DC;
  --border-light: #F0EBE5;
  --accent: #D4726A;
  --accent-light: #F2D0CC;
  --accent-lighter: #FBF0EE;
  --accent-dark: #B85450;
  --accent-gradient: linear-gradient(135deg, #D4726A 0%, #E8968F 100%);
  --success: #5B9A6F;
  --success-light: #E3F2E8;
  --warning: #D4A04A;
  --warning-light: #FFF5E0;
  --fertile: #7BAF5A;
  --fertile-light: #E8F5E1;
  --fertile-border: #A8D48A;
  --info: #5A8FBF;
  --info-light: #E1EEF8;
  --shadow-sm: 0 1px 3px rgba(44,44,58,0.06);
  --shadow-md: 0 4px 12px rgba(44,44,58,0.08);
  --shadow-lg: 0 8px 30px rgba(44,44,58,0.12);
  --shadow-xl: 0 20px 60px rgba(44,44,58,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", monospace;
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
  --header-height: 64px;
  --container-max: 1200px;
  --container-narrow: 800px;
}

[data-theme="dark"] {
  --bg: #1A1B2E;
  --bg-alt: #222340;
  --card: #2A2B45;
  --card-hover: #32335A;
  --text: #E8E8F0;
  --text-secondary: #A0A0B8;
  --muted: #6E6E88;
  --border: #3A3A55;
  --border-light: #333350;
  --accent: #E8968F;
  --accent-light: #4A3038;
  --accent-lighter: #352028;
  --accent-dark: #F2B0AA;
  --success: #6FBF88;
  --success-light: #1E3528;
  --warning: #E8B85A;
  --warning-light: #352D18;
  --fertile: #8FCF6A;
  --fertile-light: #1E3518;
  --fertile-border: #6FAF4A;
  --info: #7AB0DF;
  --info-light: #1A2A3A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-slow), color var(--transition-slow);
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,251,249,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: background var(--transition-slow);
}
[data-theme="dark"] .site-header {
  background: rgba(26,27,46,0.88);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.logo:hover { color: var(--accent); }
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: var(--accent-lighter);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--border); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
    gap: 4px;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .main-nav a {
    width: 100%;
    padding: 12px 16px;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, var(--accent-lighter) 0%, var(--bg) 50%, var(--fertile-light) 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, var(--accent-lighter) 0%, var(--bg) 50%, var(--fertile-light) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,114,106,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  margin-bottom: 16px;
  position: relative;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(212,114,106,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,114,106,0.4);
  color: #fff;
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-icon { padding: 10px; }

/* ========== CARDS ========== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.card-accent {
  border-left: 4px solid var(--accent);
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link:hover { color: inherit; }
.card-link:hover .card { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-lighter);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.card-tag.green { background: var(--fertile-light); color: var(--fertile); }
.card-tag.blue { background: var(--info-light); color: var(--info); }
.card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.card-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ========== SECTION PATTERNS ========== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

/* ========== GRID LAYOUTS ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========== TOOL / CALCULATOR ========== */
.tool-section {
  padding: 50px 0 60px;
}
.tool-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
}
.tool-header {
  text-align: center;
  margin-bottom: 32px;
}
.tool-header h2 { margin-bottom: 8px; }
.tool-header p { color: var(--text-secondary); font-size: 0.95rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 24px 18px; }
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lighter);
}
.form-group input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}
.form-error {
  font-size: 0.82rem;
  color: #e74c3c;
  display: none;
}
.form-error.show { display: block; }
.form-group.full-width { grid-column: 1 / -1; }

.toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.toggle-switch {
  position: relative;
  width: 48px;
  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: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.toggle-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.toggle-label strong { color: var(--text); }

.tool-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ========== RESULT CARDS ========== */
.results-area { display: none; margin-top: 36px; }
.results-area.show { display: block; }

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.summary-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.summary-card .label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.summary-card .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.summary-card.accent { background: var(--accent-lighter); }
.summary-card.accent .value { color: var(--accent); }
.summary-card.green { background: var(--fertile-light); }
.summary-card.green .value { color: var(--fertile); }

/* ========== TIMELINE ========== */
.timeline { margin-bottom: 36px; }
.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}
.timeline-item .cycle-num {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
  min-width: 30px;
}
.timeline-item .cycle-info { flex: 1; }
.timeline-item .period-dates {
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-item .fertile-dates {
  font-size: 0.85rem;
  color: var(--fertile);
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-item .fertile-dates::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--fertile);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== CALENDAR ========== */
.calendar-section { margin-top: 36px; }
.calendar-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.cal-month {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-light);
}
.cal-month-header {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
  text-transform: uppercase;
}
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  position: relative;
  color: var(--text);
  transition: all var(--transition);
}
.cal-day.empty { visibility: hidden; }
.cal-day.today {
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cal-day.period {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.cal-day.fertile {
  background: var(--fertile-light);
  border: 1.5px dashed var(--fertile-border);
  color: var(--fertile);
  font-weight: 500;
}
.cal-day.ovulation {
  background: var(--fertile);
  color: #fff;
  font-weight: 600;
}

/* ========== LEGEND ========== */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.legend-dot.period { background: var(--accent); }
.legend-dot.fertile { background: var(--fertile-light); border: 1.5px dashed var(--fertile-border); }
.legend-dot.ovulation { background: var(--fertile); }
.legend-dot.today { box-shadow: inset 0 0 0 2px var(--accent); background: transparent; }

/* ========== EXPORT ACTIONS ========== */
.export-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ========== DISCLAIMER BOX ========== */
.disclaimer-box {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}
.disclaimer-box strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.disclaimer-mini {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ========== FAQ / ACCORDION ========== */
.faq-section { padding: 60px 0; }
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--card);
  transition: all var(--transition);
}
.accordion-item:hover { border-color: var(--border); }
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  line-height: 1.4;
}
.accordion-btn::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-item.open .accordion-btn::after {
  content: '−';
  color: var(--accent);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.accordion-body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li::after { content: '›'; color: var(--muted); }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--text-secondary); }
.breadcrumb-list a:hover { color: var(--accent); }
.breadcrumb-list .current { color: var(--text); font-weight: 500; }

/* ========== GUIDE / ARTICLE PAGE ========== */
.article-page { padding: 30px 0 60px; }
.article-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.article-header h1 { margin-bottom: 16px; }
.article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
}
.article-content h2 {
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}
.article-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.2rem;
}
.article-content li {
  margin-bottom: 6px;
}

/* ========== INTERNAL LINKS BOX ========== */
.related-links {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
}
.related-links h3 { margin-bottom: 16px; }
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.related-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}
.related-link::before { content: '→'; color: var(--accent); }

/* ========== GUIDE INDEX ========== */
.guide-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.guide-category-title:first-of-type { margin-top: 0; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ========== SEARCH PAGE ========== */
.search-section { padding: 50px 0 60px; }
.search-box {
  max-width: 600px;
  margin: 0 auto 20px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: all var(--transition);
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-lighter);
}
.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
}
.filter-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--card);
  color: var(--text-secondary);
  transition: all var(--transition);
  font-family: var(--font);
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.search-results { max-width: 700px; margin: 0 auto; }
.search-result-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.search-result-item h3 a { color: var(--text); }
.search-result-item h3 a:hover { color: var(--accent); }
.search-result-item p { color: var(--text-secondary); font-size: 0.9rem; }
.search-no-result { text-align: center; color: var(--muted); padding: 40px 0; }

/* ========== HOME FEATURES ========== */
.features-section { padding: 60px 0; }
.feature-card {
  text-align: center;
  padding: 32px 24px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ========== HOME SSS PREVIEW ========== */
.home-faq { padding: 60px 0; }

/* ========== STATS ROW ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}
.stat-item {
  text-align: center;
  padding: 20px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== PRESET PAGE ========== */
.preset-hero {
  background: var(--bg-alt);
  padding: 40px 0;
  text-align: center;
}
.preset-hero h1 { margin-bottom: 12px; }
.preset-hero .desc { color: var(--text-secondary); max-width: 600px; margin: 0 auto 20px; }
.preset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.preset-link {
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.preset-link:hover, .preset-link.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========== CONTACT FORM ========== */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  min-height: 140px;
  resize: vertical;
  outline: none;
  transition: all var(--transition);
}
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lighter);
}

/* ========== INFO PAGES ========== */
.info-page { padding: 40px 0 60px; }
.info-page .lead { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 28px; }
.info-page .note { font-size: 0.9rem; color: var(--muted); margin-top: 20px; }
.info-page .container-narrow h1 {
  margin-bottom: 24px;
  text-align: center;
}
.info-page .container-narrow h2 { margin-top: 32px; margin-bottom: 12px; }
.info-page .container-narrow p { margin-bottom: 12px; }
.info-page .container-narrow ul { margin-bottom: 16px; }

/* ========== 404 PAGE ========== */
.error-page {
  text-align: center;
  padding: 100px 20px;
}
.error-content { max-width: 520px; margin: 0 auto; }
.error-code {
  display: block;
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.error-page h1 { font-size: 1.75rem; margin-bottom: 16px; }
.error-page p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 30px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== ADENSE BLOCKS ========== */
.ad-block {
  text-align: center;
  margin: 28px 0;
  min-height: 90px;
  overflow: hidden;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: all var(--transition-slow);
  pointer-events: none;
  opacity: 0;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========== COOKIE CONSENT ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 50px 0 30px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-col p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: all var(--transition);
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ========== HERO BADGES ========== */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}
.hero-badge {
  background: rgba(0,0,0,0.07);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #1a1a2e;
  border: 1px solid rgba(0,0,0,0.1);
  font-weight: 500;
}
[data-theme="dark"] .hero-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.15);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}
.btn-secondary {
  background: var(--accent-dark);
  color: #fff;
  border: 1px solid var(--accent-dark);
}
.btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,114,106,0.4);
}
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== STATS ROW ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ========== PRESET LINKS ========== */
.preset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.preset-link {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}
.preset-link:hover, .preset-link.current {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lighter);
}

/* ========== GUIDE GRID ========== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link .card {
  transition: all var(--transition);
  height: 100%;
}
.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent-lighter);
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.card-tag.green { background: var(--fertile-light); color: #3d7a1a; }
.card-tag.blue { background: var(--info-light); color: #2d6a9f; }
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========== GRID LAYOUTS ========== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ========== SECTION ========== */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FEATURE CARD ========== */
.feature-card {
  text-align: center;
  padding: 28px 20px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  background: var(--accent-lighter);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== ARTICLE PAGE ========== */
.article-page {
  padding: 40px 0 60px;
}
.article-header {
  margin-bottom: 32px;
}
.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text);
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text);
}
.article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ========== RELATED LINKS ========== */
.related-links {
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.related-links h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.related-link, .related-links-grid a {
  display: block;
  padding: 10px 14px;
  background: var(--card);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.related-link:hover, .related-links-grid a:hover {
  border-color: var(--accent);
  background: var(--accent-lighter);
  transform: translateX(4px);
}

/* ========== GUIDE CATEGORY ========== */
.guide-category-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
  color: var(--text);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ========== AD STYLING ========== */
.ad-block {
  margin: 24px 0;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
}
.ad-block-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4px 0;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}
.ad-block-sticky .ad-close {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 2;
}
.ad-block-inline {
  margin: 20px auto;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.ad-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-align: center;
}

/* ========== PRINT ========== */
@media print {
  .site-header, .site-footer, .cookie-banner, .ad-block, .ad-block-sticky,
  .export-actions, .tool-actions, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .tool-card { box-shadow: none; border: 1px solid #ddd; }
}
