/*
Theme Name:  AITechSpark
Theme URI:   https://aitechspark.com
Author:      AITechSpark
Author URI:  https://aitechspark.com
Description: Premium AI & Tech news theme for AITechSpark — Igniting the Future of AI & Tech. Ultra-fast, SEO-optimised, AdSense-ready, dark/light mode, glassmorphism design system.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: aitechspark
Tags:        news, blog, technology, dark-mode, responsive, custom-colors, featured-images, sticky-post
*/

/* ═══════════════════════════════════════════════════════════════
   AITECHSPARK DESIGN SYSTEM
   Brand: AITechSpark · aitechspark.com
   Tagline: Igniting the Future of AI & Tech
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────── */
:root {
  /* Brand Colors */
  --spark-primary:      #FF6B2B;   /* Electric orange — the spark */
  --spark-primary-dark: #E55A1F;
  --spark-primary-glow: rgba(255, 107, 43, 0.25);
  --spark-secondary:    #0EA5E9;   /* Sky blue — tech/AI */
  --spark-accent:       #8B5CF6;   /* Purple — innovation */

  /* Dark Theme (default) */
  --bg-base:        #080B14;       /* Deep space black */
  --bg-surface:     #0D1117;       /* Card surface */
  --bg-elevated:    #131923;       /* Elevated surface */
  --bg-overlay:     #1A2030;       /* Overlay panels */
  --bg-glass:       rgba(13, 17, 23, 0.7);

  /* Text */
  --text-primary:   #F0F4FF;
  --text-secondary: #8892A4;
  --text-muted:     #4A5568;
  --text-inverse:   #080B14;

  /* Borders */
  --border-subtle:  rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.18);
  --border-spark:   rgba(255, 107, 43, 0.4);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width:       1280px;
  --content-width:   860px;
  --sidebar-width:   320px;
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       18px;
  --radius-xl:       24px;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
  --shadow-spark: 0 0 30px rgba(255,107,43,0.2), 0 4px 16px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 60px rgba(255,107,43,0.15);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
}

/* ── Light Mode ───────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-base:      #F7F8FC;
  --bg-surface:   #FFFFFF;
  --bg-elevated:  #EEF0F7;
  --bg-overlay:   #E4E8F2;
  --bg-glass:     rgba(255,255,255,0.8);
  --text-primary: #0A0E1A;
  --text-secondary:#4A5568;
  --text-muted:   #9AA0AE;
  --border-subtle: rgba(0,0,0,0.05);
  --border-default:rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.14);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease-out),
              color var(--duration-slow) var(--ease-out);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--spark-primary); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--spark-primary-dark); }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--spark-primary); border-radius: var(--radius-full); }

/* ── Typography Scale ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: var(--space-md); color: var(--text-secondary); }

/* ── Layout Containers ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow { max-width: var(--content-width); }
.container--wide   { max-width: 1440px; }

/* ── Grid System ──────────────────────────────────────────────── */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.grid--main { grid-template-columns: 1fr var(--sidebar-width); gap: var(--space-xl); }

@media (max-width: 1024px) { .grid--main { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .grid--2,.grid--3,.grid--4 { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Breaking News Ticker ─────────────────────────────────────── */
.ticker-bar {
  background: linear-gradient(90deg, #0D1117 0%, #131923 50%, #0D1117 100%);
  border-bottom: 1px solid var(--border-spark);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.ticker-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-base) 0%, transparent 80px, transparent calc(100% - 80px), var(--bg-base) 100%);
  z-index: 2; pointer-events: none;
}
.ticker-label {
  background: var(--spark-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: var(--space-md);
  z-index: 3;
  position: relative;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-left: var(--space-md);
  flex: 1;
  overflow: hidden;
}
.ticker-inner {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-size: 13px;
  color: #8892A4;
}
.ticker-inner span { color: var(--spark-primary); margin-right: 4px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Navbar ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--duration-base);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom-color: var(--border-spark);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--space-lg);
}

/* ── Logo ─────────────────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--spark-primary), #FF9A5C);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-spark);
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
}
.logo-spark-svg { width: 20px; height: 20px; fill: #fff; position: relative; z-index: 1; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo-text .ai    { color: var(--text-primary); }
.logo-text .tech  { color: var(--text-secondary); }
.logo-text .spark { color: var(--spark-primary); }
.logo-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  background: var(--spark-primary-glow);
  color: var(--spark-primary);
  border: 1px solid var(--border-spark);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: 2px;
}

/* ── Nav Menu ─────────────────────────────────────────────────── */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-default);
}
.nav-menu .cat-ai    a:hover { color: var(--spark-primary); border-color: var(--border-spark); background: var(--spark-primary-glow); }
.nav-menu .cat-saas  a:hover { color: var(--spark-secondary); border-color: rgba(14,165,233,0.3); background: rgba(14,165,233,0.1); }
.nav-menu .cat-marketing a:hover { color: var(--spark-accent); border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.1); }

/* ── Header Actions ───────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.btn-search, .btn-theme {
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: all var(--duration-fast);
}
.btn-search:hover, .btn-theme:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-subscribe {
  background: var(--spark-primary);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: 0 0 20px var(--spark-primary-glow);
  transition: all var(--duration-fast);
}
.btn-subscribe:hover {
  background: var(--spark-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255,107,43,0.4);
}

/* ── Search Overlay ───────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,11,20,0.95);
  backdrop-filter: blur(20px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 120px;
}
.search-overlay.active { display: flex; }
.search-box {
  width: 100%; max-width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg), 0 0 60px var(--spark-primary-glow);
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 18px;
  color: var(--text-primary);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-submit {
  background: var(--spark-primary);
  border: none; border-radius: var(--radius-lg);
  width: 44px; height: 44px; cursor: pointer;
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Hero Section ─────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,43,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-featured {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 420px;
  position: relative;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.hero-featured:hover {
  border-color: var(--border-spark);
  box-shadow: var(--shadow-spark);
}
.hero-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}
.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.hero-featured:hover .hero-image img { transform: scale(1.03); }
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to left, transparent 60%, var(--bg-surface));
}

/* ── Category Badge ───────────────────────────────────────────── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cat-badge--ai       { background: rgba(255,107,43,0.15); color: var(--spark-primary); border: 1px solid rgba(255,107,43,0.3); }
.cat-badge--marketing{ background: rgba(139,92,246,0.15); color: #A78BFA; border: 1px solid rgba(139,92,246,0.3); }
.cat-badge--saas     { background: rgba(14,165,233,0.15); color: #38BDF8; border: 1px solid rgba(14,165,233,0.3); }
.cat-badge--seo      { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }
.cat-badge--productivity { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }

/* ── News Cards ───────────────────────────────────────────────── */
.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}
.news-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--duration-base);
  pointer-events: none;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}
.news-card:hover::before { opacity: 1; }

.news-card--ai:hover      { border-color: rgba(255,107,43,0.3); box-shadow: 0 8px 30px rgba(255,107,43,0.12); }
.news-card--marketing:hover { border-color: rgba(139,92,246,0.3); box-shadow: 0 8px 30px rgba(139,92,246,0.12); }
.news-card--saas:hover    { border-color: rgba(14,165,233,0.3); box-shadow: 0 8px 30px rgba(14,165,233,0.12); }

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.news-card:hover .card-thumb img { transform: scale(1.06); }

.card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}
.card-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  transition: color var(--duration-fast);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .card-title { color: var(--spark-primary); }
.card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-sm);
  margin-top: auto;
}
.card-author { font-size: 12px; color: var(--text-muted); }
.card-read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--spark-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast);
}
.news-card:hover .card-read-more { gap: 8px; }

/* ── Section Headers ──────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--spark-primary), transparent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--spark-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trending list */
.trending-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover .trending-title { color: var(--spark-primary); }
.trending-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--border-default);
  min-width: 28px;
  line-height: 1;
  margin-top: 2px;
}
.trending-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--duration-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* Ad widget */
.ad-widget {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  margin-bottom: var(--space-lg);
}

/* ── Newsletter CTA ───────────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: var(--space-2xl) 0;
}
.newsletter-section::before {
  content: '';
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(255,107,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-icon { font-size: 40px; margin-bottom: var(--space-md); }
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
.newsletter-sub { color: var(--text-secondary); margin-bottom: var(--space-xl); }
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast);
}
.newsletter-input:focus { border-color: var(--spark-primary); }
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-btn {
  background: var(--spark-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px var(--spark-primary-glow);
  transition: all var(--duration-fast);
  white-space: nowrap;
}
.newsletter-btn:hover {
  background: var(--spark-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,107,43,0.5);
}
.newsletter-note { font-size: 12px; color: var(--text-muted); margin-top: var(--space-md); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: #050710;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: var(--space-md) 0; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
  transition: all var(--duration-fast);
}
.footer-social a:hover {
  background: var(--spark-primary-glow);
  border-color: var(--border-spark);
  color: var(--spark-primary);
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color var(--duration-fast); }
.footer-links a:hover { color: var(--spark-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: var(--space-lg); }
.footer-bottom-links a { color: var(--text-muted); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--spark-primary); }

/* ── Single Post ──────────────────────────────────────────────── */
.post-header { margin-bottom: var(--space-xl); }
.post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: var(--space-md) 0;
}
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: var(--space-lg) 0;
}
.post-content h2 { margin: var(--space-xl) 0 var(--space-md); }
.post-content h3 { margin: var(--space-lg) 0 var(--space-sm); }
.post-content p  { margin-bottom: var(--space-md); font-size: 16px; line-height: 1.8; }

/* AITechSpark Key Takeaways */
.aitechspark-takeaways {
  background: linear-gradient(135deg, rgba(255,107,43,0.08), rgba(255,107,43,0.03));
  border: 1px solid rgba(255,107,43,0.2);
  border-left: 4px solid var(--spark-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}
.aitechspark-takeaways h3 {
  color: var(--spark-primary);
  font-size: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}
.aitechspark-takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.aitechspark-takeaways li { font-size: 14px; color: var(--text-secondary); padding-left: 20px; position: relative; }
.aitechspark-takeaways li::before { content: '⚡'; position: absolute; left: 0; font-size: 12px; }

/* FAQ block */
.aitechspark-faq { margin: var(--space-xl) 0; }
.aitechspark-faq h2 { font-size: 22px; margin-bottom: var(--space-lg); }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
}
.faq-item p { padding: 0 var(--space-lg) var(--space-md); font-size: 14px; }

/* Breadcrumbs */
.aitechspark-breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.aitechspark-breadcrumbs a { color: var(--text-secondary); }
.aitechspark-breadcrumbs a:hover { color: var(--spark-primary); }

/* ── AdSense Placements ───────────────────────────────────────── */
.ad-banner { width: 100%; min-height: 90px; margin: var(--space-xl) 0; text-align: center; }
.ad-rectangle { width: 100%; min-height: 250px; margin: var(--space-lg) 0; }
.ad-in-article { margin: var(--space-xl) auto; max-width: 728px; text-align: center; }

/* ── Utilities ────────────────────────────────────────────────── */
.text-spark  { color: var(--spark-primary); }
.text-muted  { color: var(--text-muted); }
.font-mono   { font-family: var(--font-mono); }
.font-display{ font-family: var(--font-display); }

.fade-in { animation: fadeIn 0.5s var(--ease-out) both; }
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

.spark-glow { box-shadow: var(--shadow-spark); }

/* Responsive */
@media (max-width: 1024px) { .hero-featured { grid-template-columns: 1fr; } .hero-image { aspect-ratio: 16/7; } }
@media (max-width: 768px)  {
  .header-inner { height: 56px; }
  .nav-menu { display: none; }
  .logo-text { font-size: 17px; }
  .newsletter-section { padding: var(--space-xl) var(--space-lg); }
  .container { padding: 0 var(--space-md); }
}
@media (max-width: 480px)  { .header-actions .btn-subscribe { display: none; } }

/* ── Print ────────────────────────────────────────────────────── */
@media print {
  .site-header, .ticker-bar, .sidebar, .newsletter-section, .site-footer { display: none; }
  body { background: white; color: black; }
}
