/*
Theme Name: HoverNews
Theme URI: https://hovernews.com
Description: Dark editorial blog theme for personal air mobility and EV drone news.
Version: 1.0.0
Author: CMB Marketing Digital
Text Domain: hovernews
*/

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg-base:        #0a0b0e;
  --bg-card:        #14171c;
  --bg-card-alt:    #101318;
  --bg-newsletter:  #101820;
  --text-primary:   #eef0f2;
  --text-secondary: #9aa3ab;
  --text-tertiary:  #6b7379;
  --border-subtle:  rgba(255,255,255,0.08);
  --border-input:   rgba(255,255,255,0.14);
  --border-cyan:    rgba(0,200,255,0.18);
  --cyan:           #00c8ff;
  --cyan-hover:     #5cdcff;
  --radius-card:    10px;
  --radius-badge:   4px;
  --radius-btn:     6px;
  --font-head:      'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --nav-height:     76px;
  --content-max:    1200px;
  --article-max:    760px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text-primary);
  line-height: 1.2;
}

/* ─── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ─── Navbar ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10,11,14,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--cyan);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon-inner {
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border-radius: 2px;
}

.site-logo .logo-text {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Nav CTA */
.btn-subscribe-nav {
  background: var(--cyan);
  color: #0a0b0e;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-subscribe-nav:hover {
  background: var(--cyan-hover);
  color: #0a0b0e;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan);
  color: #0a0b0e;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--cyan-hover); color: #0a0b0e; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(0,200,255,0.35);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(0,200,255,0.08);
  border-color: var(--cyan);
}

/* ─── Category Badge ─────────────────────────────────────────── */
.category-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,200,255,0.35);
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  background: rgba(0,200,255,0.06);
}

/* ─── Article Card ───────────────────────────────────────────── */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: rgba(0,200,255,0.22);
  transform: translateY(-2px);
}

.card-image-wrap {
  aspect-ratio: 4 / 2.6;
  overflow: hidden;
  background: var(--bg-card-alt);
  position: relative;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.article-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-card-alt);
}

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-date-read {
  font-size: 12px;
  color: var(--text-tertiary);
}

.card-date-read span::before {
  content: '·';
  margin: 0 5px;
}

.card-headline {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.2s;
}

.article-card:hover .card-headline {
  color: var(--cyan-hover);
}

/* ─── Cards Grid ─────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero-section {
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { display: flex; flex-direction: column; gap: 22px; }

.hero-title {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.hero-excerpt {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-image-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── Section Spacing ────────────────────────────────────────── */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--border-subtle); }

/* ─── Newsletter Banner ──────────────────────────────────────── */
.newsletter-section {
  padding: 64px 0;
}

.newsletter-panel {
  background: var(--bg-newsletter);
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  padding: 52px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.newsletter-headline {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 520px;
}

.newsletter-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 440px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(0,200,255,0.5);
}

.newsletter-form button {
  background: var(--cyan);
  color: #0a0b0e;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--cyan-hover); }

.newsletter-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-form input[type="email"] {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.footer-form input[type="email"]::placeholder {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-form input[type="email"]:focus {
  border-color: rgba(0,200,255,0.45);
}

.footer-form button {
  background: var(--cyan);
  color: #0a0b0e;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.footer-form button:hover { background: var(--cyan-hover); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ─── Category Archive ───────────────────────────────────────── */
.archive-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
  max-width: 720px;
}

.archive-header .category-badge {
  font-size: 11px;
  margin-bottom: 16px;
}

.archive-title {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.archive-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.filter-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.filter-pill:hover {
  border-color: rgba(0,200,255,0.35);
  color: var(--text-primary);
}

.filter-pill.active {
  background: rgba(0,200,255,0.08);
  border-color: rgba(0,200,255,0.4);
  color: var(--cyan);
}

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 56px 0 16px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.page-btn:hover {
  border-color: rgba(0,200,255,0.35);
  color: var(--text-primary);
}

.page-btn.current {
  background: rgba(0,200,255,0.1);
  border-color: rgba(0,200,255,0.4);
  color: var(--cyan);
}

/* ─── Single Article ─────────────────────────────────────────── */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 32px 0 0;
  transition: color 0.2s;
}

.article-back:hover { color: var(--cyan); }

.article-header {
  padding: 32px 0 40px;
  max-width: var(--article-max);
  margin: 0 auto;
}

.article-title {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin: 20px 0 24px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  flex-shrink: 0;
}

.byline-author {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.byline-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

.article-hero-img {
  aspect-ratio: 16 / 8;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 48px;
  max-width: var(--article-max);
  background: var(--bg-card);
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  max-width: var(--article-max);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #c4cad0;
}

.article-body p { margin-bottom: 24px; }

.article-body h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.article-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--cyan-hover); }

.pull-quote {
  border-left: 3px solid var(--cyan);
  padding: 6px 0 6px 24px;
  margin: 40px 0;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.related-section {
  padding: 64px 0 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 64px;
}

/* ─── About Page ─────────────────────────────────────────────── */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.75;
  color: #c4cad0;
  margin-bottom: 22px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 20px;
}

.value-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.value-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Subscribe Page ─────────────────────────────────────────── */
.subscribe-page {
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.subscribe-panel {
  background: var(--bg-newsletter);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 64px;
  max-width: 580px;
  width: 100%;
  text-align: center;
}

.subscribe-headline {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.subscribe-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 18px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.subscribe-form input::placeholder {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
}

.subscribe-form input:focus {
  border-color: rgba(0,200,255,0.5);
}

.subscribe-form button {
  background: var(--cyan);
  color: #0a0b0e;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: background 0.2s;
}

.subscribe-form button:hover { background: var(--cyan-hover); }

.subscribe-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  text-align: left;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { font-size: 34px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .newsletter-panel { padding: 36px 24px; }
  .newsletter-headline { font-size: 22px; }
  .newsletter-form { flex-direction: column; }
  .archive-title { font-size: 30px; }
  .article-title { font-size: 28px; }
  .subscribe-panel { padding: 40px 24px; }
}

/* ─── Search Toggle Button ───────────────────────────────────── */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.search-toggle:hover {
  border-color: rgba(0,200,255,0.35);
  color: var(--cyan);
}

/* ─── Search Overlay ─────────────────────────────────────────── */
#hovernews-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,11,14,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#hovernews-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  position: relative;
}

.search-overlay-inner form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-overlay-inner form:focus-within {
  border-color: rgba(0,200,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}

.search-overlay-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  padding: 18px 22px;
}

.search-overlay-input::placeholder {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 16px;
}

.search-overlay-btn {
  background: var(--cyan);
  color: #0a0b0e;
  border: none;
  font-size: 20px;
  font-weight: 700;
  padding: 0 22px;
  height: 60px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-overlay-btn:hover { background: var(--cyan-hover); }

.search-overlay-close {
  position: absolute;
  top: -56px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-overlay-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Light mode overrides for search */
body.light-mode #hovernews-search-overlay {
  background: rgba(255,255,255,0.92);
}

body.light-mode .search-overlay-inner form {
  background: #ffffff;
  border-color: rgba(0,0,0,0.14);
}

body.light-mode .search-overlay-input {
  color: #0d0f12;
}

body.light-mode .search-toggle {
  border-color: rgba(0,0,0,0.1);
  color: var(--text-secondary);
}

body.light-mode .search-toggle:hover {
  border-color: rgba(0,153,204,0.35);
  color: var(--cyan);
}

/* ─── Search Results Page ────────────────────────────────────── */
.search-results-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 48px;
}

.search-results-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.search-results-title span {
  color: var(--cyan);
}

.search-results-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.search-no-results {
  text-align: center;
  padding: 80px 0;
}

.search-no-results p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ─── About Page (redesigned) ────────────────────────────────── */
.about-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 96px;
}

.about-header {
  text-align: center;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.about-header .category-badge {
  margin-bottom: 20px;
  display: inline-block;
}

.about-title {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 16px 0 20px;
  line-height: 1.15;
}

.about-lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

.about-body {
  margin-bottom: 56px;
}

.about-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #c4cad0;
  margin-bottom: 22px;
}

/* Light mode about */
body.light-mode .about-title { color: #0d0f12; }
body.light-mode .about-lead  { color: var(--text-secondary); }
body.light-mode .about-body p { color: #2d3748; }
body.light-mode .about-header { border-bottom-color: rgba(0,0,0,0.08); }

/* ─── Mobile Menu ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10,11,14,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
  display: block;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--cyan); }

.mobile-nav .mobile-subscribe {
  margin-top: 16px;
  background: var(--cyan);
  color: #0a0b0e;
  font-weight: 600;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-btn);
  text-align: center;
  border-bottom: none;
}

.mobile-nav .mobile-subscribe:hover {
  background: var(--cyan-hover);
  color: #0a0b0e;
}

/* Light mode mobile nav */
body.light-mode .mobile-nav {
  background: rgba(255,255,255,0.97);
}

body.light-mode .mobile-nav a {
  color: var(--text-secondary);
  border-bottom-color: rgba(0,0,0,0.07);
}

body.light-mode .mobile-nav a:hover,
body.light-mode .mobile-nav a.active { color: var(--cyan); }

body.light-mode .hamburger {
  border-color: rgba(0,0,0,0.1);
}

body.light-mode .hamburger span {
  background: var(--text-secondary);
}

/* Show hamburger, hide desktop nav on mobile */
@media (max-width: 640px) {
  .nav-links { display: none !important; }
  .btn-subscribe-nav { display: none; }
  .hamburger { display: flex; }
}

/* ─── Mobile Fixes (override) ───────────────────────────────── */
@media (max-width: 640px) {

  /* Nav drawer below header, not above */
  .mobile-nav {
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 99;
  }

  /* Show hamburger, hide desktop elements */
  .hamburger { display: flex !important; }
  .btn-subscribe-nav { display: none !important; }
  .nav-links { display: none !important; }

  /* Hero: smaller title, stack columns */
  .hero-section { padding: 40px 0 48px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-title { font-size: 28px !important; letter-spacing: -0.3px; }
  .hero-excerpt { font-size: 15px; }

  /* Hero image below content on mobile */
  .hero-image-wrap { order: -1; aspect-ratio: 16/9; }

  /* Category badge: never full width */
  .category-badge {
    display: inline-block !important;
    width: auto !important;
    max-width: fit-content;
  }

  /* Buttons: auto width, not stretched */
  .btn-primary {
    display: inline-flex !important;
    width: auto !important;
  }

  /* Cards: single column */
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Newsletter panel: less padding */
  .newsletter-panel { padding: 32px 20px; }
  .newsletter-headline { font-size: 20px; }
  .newsletter-form { flex-direction: column; gap: 8px; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Archive header */
  .archive-header { max-width: 100%; }
  .archive-title { font-size: 26px; }

  /* Article */
  .article-title { font-size: 24px; }
  .article-header { padding: 20px 0 28px; }
  .article-hero-img { aspect-ratio: 16/9; border-radius: 8px; }

  /* About */
  .about-title { font-size: 30px; }
  .about-lead { font-size: 16px; }
  .values-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Subscribe page */
  .subscribe-panel { padding: 36px 20px; }
  .subscribe-headline { font-size: 24px; }

  /* Section spacing */
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
}
