/* ═══════════════════════════════════════════════════════════════
   ZOTH STUDIO — ARTICLES & MANIFESTO EDITORIAL POSTER SYSTEM
   Complies with zoth-poster-page & zoth-theme-system specifications
   ═══════════════════════════════════════════════════════════════ */

:root {
  --zoth-header-h: 54px;
  --poster-pad: clamp(20px, 4vw, 48px);
}

/* Base Body Reset for Article Posters */
body {
  background: var(--bg, #050508) !important;
  color: var(--text, #f1f5f9) !important;
  font-family: var(--font-body, 'Figtree', sans-serif);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Full-Viewport Editorial Header Stage */
.article-poster-hero {
  position: relative;
  min-height: calc(75svh - var(--zoth-header-h, 54px));
  display: grid;
  grid-template-columns: minmax(20rem, 42rem) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 80px) var(--poster-pad) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.07) 0%, rgba(217, 70, 239, 0.04) 40%, transparent 70%);
  box-sizing: border-box;
}

@media (max-width: 880px) {
  .article-poster-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
  }
}

.poster-kicker {
  font-family: var(--font-theme-mono, var(--mono, monospace));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan, #00f0ff);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.poster-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  color: var(--text-primary, #ffffff);
}

.poster-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-theme-mono, var(--mono, monospace));
  font-size: 0.82rem;
  color: var(--text-subhead, #94a3b8);
  flex-wrap: wrap;
}

.poster-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary, #ffffff);
  font-weight: 600;
}

.poster-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--cyan, #00f0ff);
}

/* Main Long-Form Article Content */
.article-poster-body {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--poster-pad) clamp(60px, 8vw, 120px);
}

.article-poster-body h2 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--text-primary, #ffffff);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-poster-body h3 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--cyan, #00f0ff);
}

.article-poster-body p {
  font-size: 1.1rem;
  color: var(--text-subhead, #cbd5e1);
  margin-bottom: 26px;
  line-height: 1.85;
}

.article-poster-body blockquote {
  border-left: 3px solid var(--cyan, #00f0ff);
  background: rgba(0, 240, 255, 0.04);
  padding: 20px 28px;
  margin: 36px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary, #ffffff);
}

.article-poster-body pre {
  background: var(--surface-card, #090c16) !important;
  border: 1px solid var(--card-border, rgba(0, 240, 255, 0.2)) !important;
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-theme-mono, var(--mono, monospace));
  font-size: 0.88rem;
  color: #38bdf8;
  line-height: 1.55;
  margin: 28px 0;
}

.article-poster-body code {
  font-family: var(--font-theme-mono, var(--mono, monospace));
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--cyan, #00f0ff);
}

/* Feature Cards & Grid */
.poster-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.poster-feature-card {
  background: var(--surface-card, rgba(13, 18, 34, 0.7));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan, #00f0ff);
}

.poster-feature-card h4 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--text-primary, #ffffff);
}

.poster-feature-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-subhead, #94a3b8);
  line-height: 1.6;
}

/* Sticky Theme-Aware Navigation */
.poster-nav {
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  padding: 12px var(--poster-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.poster-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary, #ffffff);
  font-family: var(--font-display, 'Syne', sans-serif);
  font-weight: 800;
  font-size: 1.15rem;
}

.poster-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-theme-mono, var(--mono, monospace));
  font-size: 0.85rem;
}

.poster-nav-links a {
  color: var(--text-subhead, #94a3b8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.poster-nav-links a:hover {
  color: var(--cyan, #00f0ff);
}

/* ═══════════════════════════════════════════════════════════════
   THEME ADAPTATION SYSTEM (LIGHT / MATRIX / GOLD / DARK)
   ═══════════════════════════════════════════════════════════════ */

/* Light Mode Overrides */
html[data-theme="light"] body {
  background: #f7f9fc !important;
  color: #111827 !important;
}

html[data-theme="light"] .poster-nav {
  background: rgba(247, 249, 252, 0.92) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .article-poster-hero {
  background: radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.06) 0%, rgba(147, 51, 234, 0.04) 40%, transparent 70%) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .poster-title,
html[data-theme="light"] .article-poster-body h2,
html[data-theme="light"] .poster-feature-card h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .article-poster-body p,
html[data-theme="light"] .poster-meta,
html[data-theme="light"] .poster-feature-card p {
  color: #334155 !important;
}

html[data-theme="light"] .article-poster-body blockquote {
  background: rgba(37, 99, 235, 0.06) !important;
  border-left-color: #2563eb !important;
  color: #1e293b !important;
}

html[data-theme="light"] .article-poster-body pre {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .article-poster-body code {
  background: #e2e8f0 !important;
  color: #2563eb !important;
}

html[data-theme="light"] .poster-feature-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

/* Matrix Theme */
html[data-theme="matrix"] .poster-title {
  color: #00ff66 !important;
  text-shadow: 0 0 14px rgba(0, 255, 102, 0.5) !important;
}

html[data-theme="matrix"] .poster-kicker,
html[data-theme="matrix"] .article-poster-body h3,
html[data-theme="matrix"] .article-poster-body code {
  color: #00ff66 !important;
}

html[data-theme="matrix"] .article-poster-body blockquote {
  border-left-color: #00ff66 !important;
  background: rgba(0, 255, 102, 0.05) !important;
}

/* Gold Theme */
html[data-theme="gold"] .poster-title {
  color: #fbbf24 !important;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.4) !important;
}

html[data-theme="gold"] .poster-kicker,
html[data-theme="gold"] .article-poster-body h3,
html[data-theme="gold"] .article-poster-body code {
  color: #fbbf24 !important;
}

html[data-theme="gold"] .article-poster-body blockquote {
  border-left-color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.06) !important;
}
