/*
Theme Name: Science Feed Dark
Description: Science Feed Dark Theme - Child of GeneratePress
Template: generatepress
Version: 1.0.0
Author: Science Feed
*/

/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
  --bg:       #0B0F14;
  --surface:  #121821;
  --surface2: #1a2333;
  --surface3: #1f2d3d;
  --text:     #F5F7FA;
  --muted:    #9AA4B2;
  --accent:   #5EEAD4;
  --border:   rgba(255,255,255,0.07);
  --radius:   12px;

  /* Kategorie-Farben */
  --cat-biology:        #4ade80;
  --cat-physics:        #a78bfa;
  --cat-chemistry:      #22d3ee;
  --cat-medicine:       #fb923c;
  --cat-psychology:     #f472b6;
  --cat-interdisciplinary: #fbbf24;
  --cat-astronomy:      #60a5fa;
}

/* ============================================================
   BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: -apple-system, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }

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

::selection { background: rgba(94,234,212,.2); color: var(--text); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.sf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.sf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,20,.95);
  backdrop-filter: blur(12px);
  border-bottom: .5px solid var(--border);
}

.sf-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.sf-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.5px;
  color: var(--text);
  white-space: nowrap;
}

.sf-logo span { color: var(--accent); }

.sf-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  transition: color .15s;
}

.sf-nav-links a:hover,
.sf-nav-links .current-menu-item > a,
.sf-nav-links .current-page-ancestor > a {
  color: var(--accent);
  opacity: 1;
}

.sf-nav-search {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color .15s;
}

.sf-nav-search:hover { color: var(--accent); }

/* Mobile hamburger */
.sf-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

/* ============================================================
   HERO
   ============================================================ */
.sf-hero {
  padding: 5rem 0 4rem;
  border-bottom: .5px solid var(--border);
}

.sf-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.sf-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}

.sf-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 0 0 1.25rem;
  max-width: 700px;
}

.sf-hero-title em {
  color: var(--accent);
  font-style: normal;
}

.sf-hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

/* ============================================================
   DIGEST BAR
   ============================================================ */
.sf-digest-bar {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.sf-digest-bar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.sf-digest-bar-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.sf-digest-bar-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(94,234,212,.1);
  color: var(--accent);
  border: .5px solid rgba(94,234,212,.3);
  white-space: nowrap;
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.sf-bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .75rem;
  margin: 2rem 0;
}

.sf-bento-card {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.sf-bento-card:hover {
  border-color: rgba(94,234,212,.2);
  transform: translateY(-2px);
}

.sf-bento-card.featured {
  grid-row: 1 / 3;
  background: var(--surface2);
}

.sf-bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.sf-bento-card.cat-biology::before    { background: var(--cat-biology); }
.sf-bento-card.cat-physics::before    { background: var(--cat-physics); }
.sf-bento-card.cat-chemistry::before  { background: var(--cat-chemistry); }
.sf-bento-card.cat-medicine::before   { background: var(--cat-medicine); }
.sf-bento-card.cat-psychology::before { background: var(--cat-psychology); }
.sf-bento-card.cat-interdisciplinary::before { background: var(--cat-interdisciplinary); }
.sf-bento-card.cat-astronomy::before  { background: var(--cat-astronomy); }
.sf-bento-card.featured::before       { background: var(--accent); }

.sf-bento-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .6rem;
}

.sf-bento-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 auto;
}

.sf-bento-title.large {
  font-size: 20px;
  letter-spacing: -.3px;
  margin-bottom: .75rem;
}

.sf-bento-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: .5rem 0 .75rem;
}

.sf-bento-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: .75rem;
}

.sf-bento-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.sf-conf-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .75rem 0;
}

.sf-conf-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 1px;
  overflow: hidden;
}

.sf-conf-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
}

.sf-conf-txt { font-size: 11px; color: var(--muted); }

/* ============================================================
   SECTION LABEL
   ============================================================ */
.sf-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-section-label::after {
  content: '';
  flex: 1;
  height: .5px;
  background: var(--border);
}

/* ============================================================
   ARTIKEL-GRID (Latest + Kategorie-Seiten)
   ============================================================ */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
}

.sf-card {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.sf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.sf-card.cat-biology::before    { background: var(--cat-biology); }
.sf-card.cat-physics::before    { background: var(--cat-physics); }
.sf-card.cat-chemistry::before  { background: var(--cat-chemistry); }
.sf-card.cat-medicine::before   { background: var(--cat-medicine); }
.sf-card.cat-psychology::before { background: var(--cat-psychology); }
.sf-card.cat-interdisciplinary::before { background: var(--cat-interdisciplinary); }
.sf-card.cat-astronomy::before  { background: var(--cat-astronomy); }

.sf-card:hover {
  border-color: rgba(94,234,212,.2);
  transform: translateY(-2px);
}

.sf-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.sf-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin: 0 0 auto;
}

.sf-card-title a { color: inherit; }
.sf-card-title a:hover { color: var(--accent); opacity: 1; }

.sf-card-footer {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 12px;
  color: var(--muted);
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: .5px solid var(--border);
}

/* ============================================================
   KATEGORIE-HERO
   ============================================================ */
.sf-cat-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: .5px solid var(--border);
  margin-bottom: 2rem;
}

.sf-cat-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-cat-hero-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
}

.sf-cat-hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0 0 .75rem;
}

.sf-cat-hero-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* Kategorie-Akzentfarben für Hero */
.cat-page-biology    .sf-cat-hero-label::before,
.cat-page-biology    .sf-cat-hero-title em { color: var(--cat-biology); background: var(--cat-biology); }
.cat-page-physics    .sf-cat-hero-label::before { background: var(--cat-physics); }
.cat-page-physics    .sf-cat-hero-title em { color: var(--cat-physics); }
.cat-page-chemistry  .sf-cat-hero-label::before { background: var(--cat-chemistry); }
.cat-page-chemistry  .sf-cat-hero-title em { color: var(--cat-chemistry); }
.cat-page-medicine   .sf-cat-hero-label::before { background: var(--cat-medicine); }
.cat-page-medicine   .sf-cat-hero-title em { color: var(--cat-medicine); }
.cat-page-psychology .sf-cat-hero-label::before { background: var(--cat-psychology); }
.cat-page-psychology .sf-cat-hero-title em { color: var(--cat-psychology); }
.cat-page-interdisciplinary .sf-cat-hero-label::before { background: var(--cat-interdisciplinary); }
.cat-page-interdisciplinary .sf-cat-hero-title em { color: var(--cat-interdisciplinary); }
.cat-page-astronomy .sf-cat-hero-label::before { background: var(--cat-astronomy); }
.cat-page-astronomy .sf-cat-hero-title em { color: var(--cat-astronomy); }

/* ============================================================
   EINZELARTIKEL
   ============================================================ */
.sf-article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.sf-article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: .5px solid var(--border);
}

.sf-article-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.sf-article-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0 0 1rem;
}

.sf-article-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 13px;
  color: var(--muted);
}

.sf-article-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.sf-article-content {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(245,247,250,.85);
}

.sf-article-content p { margin: 0 0 1.5rem; }
.sf-article-content h2 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; color: var(--text); margin: 2.5rem 0 1rem; }
.sf-article-content h3 { font-size: 18px; font-weight: 600; color: var(--text); margin: 2rem 0 .75rem; }
.sf-article-content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(94,234,212,.3); }
.sf-article-content a:hover { text-decoration-color: var(--accent); }
.sf-article-content strong { color: var(--text); font-weight: 600; }

/* Source link */
.sf-source-link {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: .5px solid var(--border);
}

.sf-source-link a { color: var(--accent); }

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.sf-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: .5px solid;
  white-space: nowrap;
}

.sf-pill-biology    { background: rgba(74,222,128,.12); color: #4ade80; border-color: rgba(74,222,128,.3); }
.sf-pill-physics    { background: rgba(167,139,250,.12); color: #a78bfa; border-color: rgba(167,139,250,.3); }
.sf-pill-chemistry  { background: rgba(34,211,238,.12);  color: #22d3ee; border-color: rgba(34,211,238,.3); }
.sf-pill-medicine   { background: rgba(251,146,60,.12); color: #fb923c; border-color: rgba(251,146,60,.3); }
.sf-pill-psychology { background: rgba(244,114,182,.12); color: #f472b6; border-color: rgba(244,114,182,.3); }
.sf-pill-interdisciplinary { background: rgba(251,191,36,.12); color: #fbbf24; border-color: rgba(251,191,36,.3); }
.sf-pill-astronomy  { background: rgba(96,165,250,.12);  color: #60a5fa; border-color: rgba(96,165,250,.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.sf-footer {
  background: var(--surface);
  border-top: .5px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.sf-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sf-footer-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--text);
}

.sf-footer-logo span { color: var(--accent); }

.sf-footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sf-bento {
    grid-template-columns: 1fr 1fr;
  }
  .sf-bento-card.featured { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .sf-nav-links { display: none; }
  .sf-nav-toggle { display: block; }
  .sf-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--surface);
    padding: 1rem 2rem;
    border-bottom: .5px solid var(--border);
  }
  .sf-bento { grid-template-columns: 1fr; }
  .sf-bento-card.featured { grid-column: auto; }
  .sf-hero { padding: 3rem 0 2.5rem; }
  .sf-digest-bar { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .sf-footer-inner { flex-direction: column; text-align: center; }
  .sf-article-wrap { padding: 2rem 1rem; }
}

/* ============================================================
   GENERATEPRESS OVERRIDES — Remove default styles
   ============================================================ */
.site-header,
.main-navigation,
#site-navigation,
.site-footer,
.inside-header,
.inside-navigation,
.inside-site-footer {
  all: unset !important;
  display: none !important;
}

body.generate-sidebar-layout-no-sidebar .content-area {
  width: 100% !important;
  float: none !important;
}

.site-content { background: transparent !important; }
.entry-content { max-width: none !important; }

/* Force dark background on GeneratePress wrappers */
#page,
#content,
.site,
.hfeed { background: var(--bg) !important; }


/* ============================================
   Merged from category-header.css
   ============================================ */
/* ============================================
   Science Feed – Dark Category Header
   Datei: category-header.css
   Einbinden in: sciencefeed-theme/style.css
   oder per wp_enqueue_style() in functions.php
   ============================================ */

/* --- Basis-Header --- */
.sf-category-header {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: #111827;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin: 0 0 2.5rem 0;
    border-left: 4px solid var(--sf-cat-color, #7c3aed);
    position: relative;
    overflow: hidden;
}

/* Dezenter Hintergrund-Glow */
.sf-category-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--sf-cat-color, #7c3aed) 0%, transparent 70%);
    opacity: 0.06;
    pointer-events: none;
}

/* --- Icon Wrapper --- */
.sf-cat-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: var(--sf-cat-bg, rgba(124,58,237,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-cat-icon-wrap svg,
.sf-cat-icon-wrap i {
    width: 28px;
    height: 28px;
    color: var(--sf-cat-color, #a78bfa);
    stroke: var(--sf-cat-color, #a78bfa);
    fill: none;
}

/* --- Text --- */
.sf-cat-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sf-cat-color, #a78bfa);
    margin: 0 0 5px 0;
}

.sf-cat-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.sf-cat-desc {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.6;
    max-width: 560px;
}

/* ============================================
   Kategorie-Farben
   ============================================ */

/* Physics – Violett */
.sf-category-header.cat-physics {
    --sf-cat-color: #a78bfa;
    --sf-cat-bg: rgba(124,58,237,0.12);
    border-left-color: var(--cat-physics);
}

/* Biology – Grün */
.sf-category-header.cat-biology {
    --sf-cat-color: #4ade80;
    --sf-cat-bg: rgba(22,163,74,0.12);
    border-left-color: var(--cat-biology);
}

/* Chemistry – Cyan */
.sf-category-header.cat-chemistry {
    --sf-cat-color: #22d3ee;
    --sf-cat-bg: rgba(8,145,178,0.12);
    border-left-color: var(--cat-chemistry);
}

/* Medicine – Orange */
.sf-category-header.cat-medicine {
    --sf-cat-color: #fb923c;
    --sf-cat-bg: rgba(234,88,12,0.12);
    border-left-color: var(--cat-medicine);
}

/* Interdisciplinary – Gelb/Amber */
.sf-category-header.cat-interdisciplinary {
    --sf-cat-color: #fbbf24;
    --sf-cat-bg: rgba(217,119,6,0.12);
    border-left-color: var(--cat-interdisciplinary);
}

/* Spotlight – Pink */
.sf-category-header.cat-psychology {
    --sf-cat-color: #f472b6;
    --sf-cat-bg: rgba(244,114,182,0.12);
}

.sf-category-header.cat-astronomy {
    --sf-cat-color: #60a5fa;
    --sf-cat-bg: rgba(96,165,250,0.12);
}

.sf-category-header.cat-spotlight {
    --sf-cat-color: #f472b6;
    --sf-cat-bg: rgba(219,39,119,0.12);
    border-left-color: var(--cat-psychology);
}

/* Fallback für unbekannte Kategorien */
.sf-category-header.cat-default {
    --sf-cat-color: #60a5fa;
    --sf-cat-bg: rgba(37,99,235,0.12);
    border-left-color: var(--cat-astronomy);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
    .sf-category-header {
        padding: 1.25rem 1.25rem;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .sf-cat-title {
        font-size: 1.4rem;
    }
}

/* ============================================
   Static Pages: Mission, Legal, Privacy
   ============================================ */

.sf-static-page {
    padding: 2rem 0 4rem;
}

.sf-mission-body {
    max-width: 760px;
    margin: 0 auto;
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.8;
}

.sf-mission-body p {
    margin: 0 0 1.25rem;
}

.sf-mission-body strong {
    color: #ffffff;
}

.sf-mission-lead {
    font-size: 1.1rem;
    color: #e5e7eb;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 1.5rem !important;
}

.sf-mission-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.sf-mission-list li {
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    color: #d1d5db;
    border-bottom: 0.5px solid #1f2937;
}

.sf-mission-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f472b6;
}

.sf-mission-quote {
    background: #111827;
    border-left: 4px solid #f472b6;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-size: 1.15rem;
    color: #f9fafb;
    font-style: italic;
    line-height: 1.7;
}

.sf-mission-closing {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0 0;
    border-top: 0.5px solid #1f2937;
    margin-top: 2rem;
    line-height: 1.5;
}

/* Legal / Privacy body */
.sf-legal-body {
    max-width: 760px;
}

.sf-legal-body h2 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid #1f2937;
}

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

.sf-legal-body p,
.sf-legal-body li {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.75;
}

.sf-legal-body a {
    color: #60a5fa;
}

/* Default (cat-default) header accent */
.sf-category-header.cat-default {
    --sf-cat-color: #60a5fa;
    --sf-cat-bg: rgba(37,99,235,0.12);
    border-left-color: var(--cat-astronomy);
}

/* ============================================
   Footer Links
   ============================================ */
.sf-footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

.sf-footer-links a {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.sf-footer-links a:hover {
    color: #d1d5db;
}

/* ============================================
   Footer Links
   ============================================ */
.sf-footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}
.sf-footer-links a {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.sf-footer-links a:hover { color: #d1d5db; }

/* ============================================
   Live Search Overlay
   ============================================ */
.sf-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.sf-search-overlay.open { display: flex; }

.sf-search-box {
    background: #111827;
    border-radius: 14px;
    border: 0.5px solid #1f2937;
    width: 100%;
    max-width: 620px;
    margin: 0 1rem;
    overflow: hidden;
}

.sf-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-bottom: 0.5px solid #1f2937;
}
.sf-search-input-wrap svg { color: #6b7280; flex-shrink: 0; }
.sf-search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #f9fafb;
    font-size: 1rem;
    padding: 0;
}
.sf-search-input-wrap input::placeholder { color: #4b5563; }
.sf-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}
.sf-search-close:hover { color: #f9fafb; }

.sf-search-results { padding: 0.5rem 0; max-height: 400px; overflow-y: auto; }

.sf-search-result {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-bottom: 0.5px solid #1a2234;
    transition: background 0.15s;
}
.sf-search-result:last-child { border-bottom: none; }
.sf-search-result:hover { background: #1a2234; }

.sf-search-result-cat {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7280;
}
.sf-search-result-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f9fafb;
    line-height: 1.4;
}
.sf-search-result-meta {
    font-size: 12px;
    color: #4b5563;
}
.sf-search-loading,
.sf-search-empty {
    padding: 1rem 1.25rem;
    color: #6b7280;
    font-size: 0.9rem;
}


/* Psychology card label color */
.sf-card.cat-physics .sf-card-cat    { color: var(--cat-physics); }
.sf-card.cat-biology .sf-card-cat     { color: var(--cat-biology); }
.sf-card.cat-chemistry .sf-card-cat   { color: var(--cat-chemistry); }
.sf-card.cat-medicine .sf-card-cat    { color: var(--cat-medicine); }
.sf-card.cat-psychology .sf-card-cat  { color: var(--cat-psychology); }
.sf-card.cat-interdisciplinary .sf-card-cat { color: var(--cat-interdisciplinary); }
.sf-card.cat-astronomy .sf-card-cat   { color: var(--cat-astronomy); }

/* ============================================
   Key Concepts – interne vs. externe Links
   ============================================ */
.sf-wiki-pill--internal {
    border-color: var(--accent, #2dd4bf);
    color: var(--accent, #2dd4bf);
}
.sf-wiki-pill--internal svg {
    stroke: var(--accent, #2dd4bf);
}
.sf-wiki-pill--internal:hover {
    background: rgba(45, 212, 191, 0.1);
}

/* ============================================
   Evergreen Explainer Section
   ============================================ */

.sf-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sf-section-label::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--border);
}
.sf-section-explainers { color: var(--accent); }
.sf-section-news       { color: var(--muted); margin-top: 2rem; }

.sf-explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}

.sf-explainer-card {
    background: var(--surface);
    border: 0.5px solid rgba(74,222,128,0.2);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s;
}
.sf-explainer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.8;
}
.sf-explainer-card:hover {
    border-color: rgba(74,222,128,0.5);
}

/* Per-category accent colors on explainer cards – all via CSS variables */
.sf-explainer-card.cat-physics        { border-color: rgba(167,139,250,0.25); }
.sf-explainer-card.cat-physics::before        { background: var(--cat-physics); }
.sf-explainer-card.cat-biology        { border-color: rgba(74,222,128,0.25); }
.sf-explainer-card.cat-biology::before        { background: var(--cat-biology); }
.sf-explainer-card.cat-chemistry      { border-color: rgba(34,211,238,0.25); }
.sf-explainer-card.cat-chemistry::before      { background: var(--cat-chemistry); }
.sf-explainer-card.cat-medicine       { border-color: rgba(251,146,60,0.25); }
.sf-explainer-card.cat-medicine::before       { background: var(--cat-medicine); }
.sf-explainer-card.cat-psychology     { border-color: rgba(244,114,182,0.25); }
.sf-explainer-card.cat-psychology::before     { background: var(--cat-psychology); }
.sf-explainer-card.cat-interdisciplinary { border-color: rgba(251,191,36,0.25); }
.sf-explainer-card.cat-interdisciplinary::before { background: var(--cat-interdisciplinary); }
.sf-explainer-card.cat-astronomy      { border-color: rgba(96,165,250,0.25); }
.sf-explainer-card.cat-astronomy::before      { background: var(--cat-astronomy); }

.sf-explainer-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(74,222,128,0.08);
    border: 0.5px solid rgba(74,222,128,0.2);
    border-radius: 4px;
    padding: 2px 7px;
    width: fit-content;
}
.sf-explainer-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--fg);
    margin: 0;
    line-height: 1.4;
}
.sf-explainer-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.sf-explainer-footer {
    font-size: 11px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .sf-explainer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Newsletter Widget
   ============================================ */
.sf-newsletter-widget {
    background: #111827;
    border: 0.5px solid #1f2937;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.sf-newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
    margin: 0 0 4px;
}
.sf-newsletter-desc {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 1rem;
}
.sf-newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}
.sf-newsletter-form input[type=email] {
    flex: 1;
    background: #0b0f14;
    border: 0.5px solid #374151;
    border-radius: 8px;
    padding: 0 14px;
    height: 40px;
    color: #f9fafb;
    font-size: 14px;
    outline: none;
}
.sf-newsletter-form input[type=email]:focus {
    border-color: var(--accent, #2dd4bf);
}
.sf-newsletter-form button {
    background: var(--accent, #2dd4bf);
    color: #0b0f14;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.sf-newsletter-form button:hover { opacity: 0.85; }
.sf-newsletter-form button:disabled { opacity: 0.5; cursor: wait; }
.sf-newsletter-legal {
    font-size: 11px;
    color: #4b5563;
    margin: 8px 0 0;
}

@media (max-width: 500px) {
    .sf-newsletter-form { flex-direction: column; }
    .sf-newsletter-form button { width: 100%; }
}

/* ============================================
   TED Talk Block
   ============================================ */
.sf-ted-block {
    background: #1a1a2e;
    border-left: 4px solid #e62b1e;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0 16px;
}
.sf-ted-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e62b1e;
    margin-bottom: 8px;
}
.sf-ted-teaser {
    color: #aaa;
    font-size: 0.95rem;
    margin: 8px 0 12px;
}
.sf-ted-link {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #e62b1e;
    padding-bottom: 2px;
    transition: color 0.2s;
}
.sf-ted-link:hover { color: #e62b1e; }
.sf-ted-note {
    font-size: 0.7rem;
    color: #555;
    margin: 12px 0 0;
}

/* ============================================
   Internal Evergreen Link Block
   ============================================ */
.sf-internal-link-block {
    background: #0f1a2e;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 28px 0 12px;
}
.sf-internal-link-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.sf-internal-link-text {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 0 10px;
}
.sf-internal-link-btn {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.sf-internal-link-btn:hover { color: var(--accent); }

/* Cross-disciplinary link variant */
.sf-internal-link-cross {
  border-left-color: var(--cat-interdisciplinary);
  background: rgba(251,191,36,.06);
}
.sf-internal-link-cross .sf-internal-link-label {
  color: var(--cat-interdisciplinary);
}
.sf-internal-link-cross .sf-internal-link-btn {
  color: var(--cat-interdisciplinary);
  border-color: rgba(251,191,36,.3);
}
.sf-internal-link-cross .sf-internal-link-btn:hover {
  background: rgba(251,191,36,.12);
}

/* ============================================
   Featured Image + Photo Credit (Single Post)
   ============================================ */
.sf-post-hero-image {
    margin: 0 0 2rem;
    border-radius: 12px;
    overflow: hidden;
}
.sf-post-hero-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.sf-image-credit {
    font-size: 0.72rem;
    color: #555;
    margin: 6px 0 0;
    text-align: right;
    padding-right: 4px;
}
.sf-image-credit a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #555;
    transition: color 0.2s;
}
.sf-image-credit a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============================================
   FAQ Block – Evergreen Articles
   ============================================ */
.sf-faq-block {
  margin: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.sf-faq-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
.sf-faq-item {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.sf-faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .5rem;
}
.sf-faq-answer {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   Footer v2 – Full ecosystem footer
   ============================================ */
.sf-footer-v2 {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.sf-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.sf-footer-mission {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.sf-footer-mission-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.sf-footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.sf-footer-logo-text span { color: var(--accent); }
.sf-footer-tagline {
  font-size: .8rem;
  color: var(--muted);
  margin: .25rem 0 0;
}
.sf-footer-stats {
  display: flex;
  gap: 2rem;
}
.sf-footer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
}
.sf-footer-stat-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.sf-footer-stat-label {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.sf-footer-main { padding: 3rem 0 2rem; }
.sf-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1fr;
  gap: 3rem;
}
.sf-footer-col-title {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.sf-footer-col-desc {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.sf-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sf-footer-list li { margin-bottom: .5rem; }
.sf-footer-list a {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
  line-height: 1.4;
  display: block;
}
.sf-footer-list a:hover { color: var(--accent); }
.sf-footer-legal {
  font-size: .75rem;
  color: var(--muted);
  opacity: .6;
  margin: .5rem 0 0;
}
.sf-footer-science-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.sf-footer-science-note p {
  font-size: .78rem;
  color: var(--muted);
  opacity: .6;
  line-height: 1.6;
  margin: 0;
}
.sf-footer-newsletter-form {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}
.sf-footer-newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .85rem;
  color: var(--text);
  outline: none;
}
.sf-footer-newsletter-form input:focus { border-color: var(--accent); }
.sf-footer-newsletter-form button {
  background: var(--accent);
  color: #0B0F14;
  border: none;
  border-radius: 8px;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.sf-footer-newsletter-form button:hover { opacity: .85; }
.sf-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.sf-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--muted);
  opacity: .6;
  flex-wrap: wrap;
  gap: .5rem;
}
@media (max-width: 900px) {
  .sf-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .sf-footer-col-newsletter { grid-column: 1 / -1; }
  .sf-footer-stats { gap: 1.5rem; }
}
@media (max-width: 600px) {
  .sf-footer-grid { grid-template-columns: 1fr; }
  .sf-footer-mission-inner { flex-direction: column; align-items: flex-start; }
}
