/* ============================================
   finanz-junkie.de — Andy Warhol × Windows 8
   Pop Art meets Metro UI for Finance
   ============================================ */

/* --- Theme Variables --- */
:root {
  --hotpink: #FF1493;
  --cyan: #00CED1;
  --gold: #FFD700;
  --orange: #FF4500;
  --lime: #32CD32;
  --purple: #9370DB;
  --coral: #FF6B6B;
  --bg: #f5f0eb;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --font: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
}

.dark {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text: #f0f6fc;
  --text-muted: #8b949e;
  --border: #30363d;
  --shadow: 0 4px 24px rgba(0,0,0,.3);
  /* Pop colors stay vibrant in dark mode */
  --hotpink: #FF69B4;
  --cyan: #00FFFF;
  --gold: #FFD700;
  --orange: #FF6347;
  --lime: #00FF7F;
  --purple: #B388FF;
}

/* --- Reset & Base --- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background .3s, color .3s;
  min-height: 100vh;
}

/* Halftone dot background (Warhol signature) */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}
.dark body::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
}

a { color: inherit; text-decoration: none; }

/* ============================================
   MEGA-NAV (Windows 8 Style)
   ============================================ */
.mega-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-bottom: 3px solid var(--hotpink);
  backdrop-filter: blur(16px);
}
.dark .mega-nav {
  border-bottom: 3px solid var(--cyan);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 4px;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-right: 24px;
  white-space: nowrap;
}
.nav-logo span { color: var(--hotpink); }
.dark .nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,20,147,.08);
}
.dark .nav-link:hover {
  background: rgba(0,206,209,.1);
}

/* Mega-Menu Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 2px solid var(--hotpink);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 32px;
  min-width: 360px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  box-shadow: 0 8px 32px rgba(255,20,147,.15);
  z-index: 1001;
}
.dark .dropdown-panel {
  border-color: var(--cyan);
  box-shadow: 0 8px 32px rgba(0,255,255,.1);
}
.dropdown-panel.wide {
  min-width: 520px;
}
.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.dropdown-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hotpink);
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--hotpink);
}
.dark .dropdown-label { color: var(--cyan); border-bottom-color: var(--cyan); }
.dropdown-col a {
  padding: 6px 8px;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--text-muted);
  transition: all .15s;
}
.dropdown-col a:hover {
  background: rgba(255,20,147,.06);
  color: var(--text);
}
.dark .dropdown-col a:hover {
  background: rgba(0,206,209,.08);
}
.dropdown-viewall {
  position: absolute;
  bottom: 12px;
  right: 20px;
}
.dropdown-viewall a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--hotpink);
  transition: color .2s;
}
.dark .dropdown-viewall a { color: var(--cyan); }
.dropdown-viewall a:hover { opacity: .7; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all .2s;
}
.theme-toggle:hover {
  border-color: var(--hotpink);
  background: rgba(255,20,147,.06);
}
.dark .theme-toggle:hover {
  border-color: var(--cyan);
  background: rgba(0,206,209,.08);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  margin-left: auto;
}

/* ============================================
   METRO MASTHEAD — Brand + Category Pills
   ============================================ */
.metro-masthead {
  background: var(--bg-card);
  border-bottom: 3px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
  margin-bottom: 8px;
}
.mm-inner {
  max-width: 900px;
  margin: 0 auto;
}
.mm-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.mm-title span { color: var(--hotpink); }
.dark .mm-title span { color: var(--cyan); }
.mm-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.mm-cats {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.mm-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--mc) 14%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--mc) 30%, transparent);
  transition: all .2s;
}
.mm-cat:hover {
  background: color-mix(in srgb, var(--mc) 25%, transparent);
  border-color: var(--mc);
  transform: translateY(-2px);
}

/* ============================================
   METRO GRID — Windows 8 Style
   ============================================ */
.metro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Featured area: 1x mega, 2x wide */
.metro-featured-grid {
  padding-top: 24px;
  padding-bottom: 8px;
}

/* ============================================
   METRO CARD — Tile with hover preview
   ============================================ */
.metro-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 200px;
}

.metro-mega {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 420px;
}
.metro-wide {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 240px;
}
.metro-medium {
  min-height: 300px;
}
.metro-small {
  min-height: 200px;
}

.metro-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.metro-card:hover .metro-bg {
  transform: scale(1.08);
}

.metro-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.88) 100%);
  transition: opacity .3s;
}
.metro-card:hover .metro-overlay {
  opacity: .85;
}

.metro-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  pointer-events: none;
}
.metro-content a { pointer-events: auto; }

.metro-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.metro-content h2 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}
.metro-mega .metro-content h2 { font-size: 1.75rem; }
.metro-content h2 a {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.metro-content h2 a:hover { opacity: .85; }

.metro-date {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.metro-preview {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 20px 20px 16px;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(4px);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.metro-card:hover .metro-preview {
  transform: translateY(0);
}

.metro-preview p {
  color: #fff;
  font-size: .82rem;
  line-height: 1.5;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.mp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.mp-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .65rem;
  font-weight: 500;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}

.metro-card:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  border-color: var(--mc, var(--hotpink));
}
.dark .metro-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
}

/* Suppress old tile-card CSS from conflicting */
.tile-card, .tile-grid, .featured-card, .featured-section {
  /* old classes — kept for .dark fallback only */
}

/* ============================================
   METRO SECTIONS — Category blocks
   ============================================ */
.metro-section { padding: 36px 0; }
.metro-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  border-bottom: 4px solid var(--msc, var(--hotpink));
  padding-bottom: 12px;
}
.metro-section-header h2 {
  font-size: 1.55rem;
  font-weight: 900;
  flex: 1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.metro-viewall {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all .2s;
  white-space: nowrap;
}
.metro-viewall:hover {
  color: var(--text);
  border-color: var(--text);
  background: var(--bg-card);
}
.metro-section-desc {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 8px 0 20px;
}

.metro-count {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ============================================
   CATEGORY MASTHEAD
   ============================================ */
.cat-masthead {
  background: var(--bg-card);
  border-bottom: 4px solid var(--cm, var(--border));
  padding: 40px 24px 32px;
  text-align: center;
}
.cm-inner {
  max-width: 800px;
  margin: 0 auto;
}
.cm-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.cm-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.cm-stats {
  display: inline-block;
  font-size: .82rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--cm) 12%, transparent);
  padding: 4px 16px;
  border-radius: 20px;
}
.cm-stats strong { font-weight: 700; }

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.section-header .emoji-badge {
  font-size: 1.6rem;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: .95rem;
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--border);
}
.article-header .cat-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 800;
}
.article-meta {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 12px 0 18px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--hotpink);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(255,20,147,.04);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}
.dark .article-content blockquote {
  background: rgba(0,206,209,.06);
  border-left-color: var(--cyan);
}
.article-content strong { font-weight: 700; }

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 12px 0;
}
.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--hotpink);
}
.dark .faq-item h3 { color: var(--cyan); }
.faq-item p { margin: 0; font-size: .95rem; }

/* ============================================
   CATEGORY PAGE
   ============================================ */
.page-header {
  text-align: center;
  padding: 48px 24px 32px;
}
.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 3px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: 48px;
  background: var(--bg-card);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--hotpink); }
.dark .footer-logo span { color: var(--cyan); }
.footer-brand p { color: var(--text-muted); font-size: .88rem; }
.footer-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hotpink);
  margin-bottom: 10px;
}
.dark .footer-label { color: var(--cyan); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  color: var(--text-muted);
  font-size: .88rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ============================================
   IMPRESSUM / STATIC PAGES
   ============================================ */
.static-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
}
.static-page h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--border);
}
.static-page h2 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
}
.static-page h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
}
.static-page p {
  margin-bottom: 14px;
  line-height: 1.7;
}
.static-page ul { margin: 10px 0 16px; padding-left: 20px; }
.static-page li { margin-bottom: 6px; }

/* ============================================
   404
   ============================================ */
.error-page {
  text-align: center;
  padding: 80px 24px;
}
.error-page h1 {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--hotpink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.dark .error-page h1 {
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-page p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.error-page a {
  display: inline-block;
  padding: 12px 32px;
  background: var(--hotpink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  transition: transform .2s;
}
.dark .error-page a { background: var(--cyan); color: #000; }
.error-page a:hover { transform: scale(1.05); }

/* ============================================
   COOKIE BANNER (DSGVO)
   ============================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--text);
  color: var(--bg);
  padding: 14px 24px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
}
.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p {
  font-size: .85rem;
  margin: 0;
  color: rgba(255,255,255,.85);
}
.cookie-inner a { color: var(--gold); text-decoration: underline; }
.cookie-inner button {
  background: var(--gold);
  color: #1a1a2e;
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-size: .85rem;
  transition: transform .2s;
}
.cookie-inner button:hover { transform: scale(1.03); }

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 1024px) {
  .metro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metro-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metro-mega {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 320px;
  }
  .metro-wide {
    grid-column: span 2;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-dropdown { width: 100%; }
  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: auto;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 0;
    border: 1px solid var(--border);
    box-shadow: none;
    display: none;
  }
  .nav-dropdown:hover .dropdown-panel,
  .nav-dropdown.open .dropdown-panel { display: flex; }
  .dropdown-panel.wide { min-width: auto; }
  .dropdown-viewall { position: static; margin-top: 8px; }
  .nav-right { margin-left: 0; width: 100%; margin-top: 8px; }

  .mm-title { font-size: 1.8rem; }
  .mm-cats { gap: 6px; }
  .mm-cat { font-size: .75rem; padding: 6px 14px; }

  .metro-section-header { flex-wrap: wrap; gap: 8px; }
  .metro-section-header h2 { font-size: 1.1rem; }

  .cm-title { font-size: 1.6rem; }
  .metro-count { font-size: .7rem; padding: 2px 10px; }

  .hero h1 { font-size: 2rem; }
  .article-header h1 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 640px) {
  .metro-grid {
    grid-template-columns: 1fr;
  }
  .metro-featured-grid {
    grid-template-columns: 1fr;
  }
  .metro-mega,
  .metro-wide,
  .metro-medium,
  .metro-small {
    grid-column: span 1;
    min-height: 260px;
  }
  .metro-mega {
    min-height: 320px;
  }
  .metro-mega .metro-content h2 {
    font-size: 1.35rem;
  }
  .metro-content h2 {
    font-size: 1rem;
  }
}

/* Utility — category color stripes (set inline via JS) */
.cat-aktien { border-top-color: #FF1493; }
.cat-etf { border-top-color: #00CED1; }
.cat-depot { border-top-color: #FF4500; }
.cat-finanzbildung { border-top-color: #FFD700; }
.cat-markt { border-top-color: #32CD32; }
.cat-buchhaltung { border-top-color: #9370DB; }
.cat-allgemein { border-top-color: #FF6B6B; }

/* ===== Tags: Chips (article header) ===== */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--tc) 18%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
  text-decoration: none;
  transition: all .2s;
}
.tag-chip:hover {
  background: color-mix(in srgb, var(--tc) 30%, transparent);
  border-color: var(--tc);
  transform: translateY(-1px);
}

/* ===== Tag Cloud (overview page) ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
}
.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--tc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all .2s;
}
.tag-cloud-item:hover {
  background: color-mix(in srgb, var(--tc) 25%, transparent);
  border-color: var(--tc);
  transform: scale(1.05);
}
.tag-count {
  font-size: .78em;
  color: var(--text-muted);
  background: rgba(0,0,0,.08);
  padding: 1px 8px;
  border-radius: 10px;
}
.dark .tag-count {
  background: rgba(255,255,255,.1);
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.search-header {
  text-align: center;
  margin-bottom: 32px;
}
.search-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.search-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.search-box {
  position: relative;
  margin-bottom: 32px;
}
.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 1.15rem;
  border: 3px solid var(--hotpink);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: box-shadow .2s;
  box-sizing: border-box;
}
.search-input:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hotpink) 25%, transparent);
}
.dark .search-input {
  border-color: var(--cyan);
}
.dark .search-input:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  pointer-events: none;
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-hint {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
  font-size: .95rem;
}
.search-count {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.search-hit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-left: 4px solid var(--sc, var(--hotpink));
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.search-hit:hover {
  transform: translateX(4px);
  border-color: var(--sc, var(--hotpink));
  box-shadow: var(--shadow);
}
.sh-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sh-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.sh-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.sh-date {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ============================================
   NAV SEARCH LINK
   ============================================ */
.nav-search-link {
  font-size: 1.1rem;
  padding: 6px 10px !important;
  opacity: .7;
  transition: opacity .2s, transform .2s;
}
.nav-search-link:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumbs a:hover {
  color: var(--hotpink);
  text-decoration: underline;
}
.bc-sep {
  margin: 0 4px;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: .5;
}
.bc-current {
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   SIMILAR ARTICLES
   ============================================ */
.similar-articles {
  margin: 48px 0 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.sa-headline {
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: var(--text);
}
.sa-sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.similar-articles .metro-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ============================================
   COMMENT SECTION
   ============================================ */
.article-comments {
  margin: 40px 0 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.ac-headline {
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: var(--text);
}
.ac-sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Comment List */
.comment-list {
  margin-bottom: 32px;
}
.comment-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-style: italic;
}
.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.comment-item:hover {
  box-shadow: var(--shadow);
}
.comment-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.comment-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}
.comment-item-date {
  font-size: .78rem;
  color: var(--text-muted);
}
.comment-item-text {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}
.comment-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-style: italic;
}
.comment-error {
  text-align: center;
  color: #e74c3c;
  padding: 24px;
}

/* Comment Form */
.comment-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.comment-form h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--text);
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color .2s;
  box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--hotpink);
  box-shadow: 0 0 0 3px rgba(255,20,147,.1);
}
.comment-form textarea {
  min-height: 100px;
  resize: vertical;
}
.comment-legal {
  margin-bottom: 12px;
  font-size: .82rem;
  color: var(--text-muted);
}
.comment-legal label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.comment-legal input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0;
  cursor: pointer;
}
.comment-legal a {
  color: var(--hotpink);
  text-decoration: underline;
}
.comment-btn {
  background: var(--hotpink);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.comment-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.comment-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.comment-status {
  margin-top: 12px;
  font-size: .9rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}
.comment-status.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.comment-status.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   TAG PAGES Breadcrumbs
   ============================================ */
.tag-page .breadcrumbs {
  margin-bottom: 16px;
}

/* ============================================
   NEWSLETTER FORM (Footer)
   ============================================ */
.nl-footer-form {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.nl-footer-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: .88rem;
  font-family: var(--font);
  min-width: 0;
}
.nl-footer-input:focus {
  outline: none;
  border-color: var(--hotpink);
}
.nl-footer-btn {
  background: var(--hotpink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.nl-footer-btn:hover {
  opacity: .85;
}
.nl-footer-status {
  font-size: .8rem;
  padding: 4px 0;
  display: none;
  margin-bottom: 8px;
}
.nl-footer-status.success {
  display: block;
  color: #2ecc71;
}
.nl-footer-status.error {
  display: block;
  color: #e74c3c;
}

/* ============================================
   NEWSLETTER CTA (Homepage)
   ============================================ */
.nl-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin: 48px auto;
  max-width: 800px;
  text-align: center;
}
.nl-cta h2 {
  color: #f0f6fc;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.nl-cta p {
  color: #8b949e;
  font-size: .95rem;
  margin: 0 0 24px;
}
.nl-cta-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.nl-cta-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #f0f6fc;
  font-size: .95rem;
  font-family: var(--font);
}
.nl-cta-input::placeholder {
  color: rgba(240,246,252,.4);
}
.nl-cta-input:focus {
  outline: none;
  border-color: var(--hotpink);
  box-shadow: 0 0 0 3px rgba(255,20,147,.15);
}
.nl-cta-btn {
  background: var(--hotpink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.nl-cta-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}
.nl-cta-status {
  font-size: .88rem;
  padding: 8px 0;
  display: none;
  max-width: 480px;
  margin: 12px auto 0;
}
.nl-cta-status.success {
  display: block;
  color: #2ecc71;
}
.nl-cta-status.error {
  display: block;
  color: #e74c3c;
}
