@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #53fc18;
  --green-dim: #3db810;
  --bg: #020101;
  --surface: #111111;
  --surface2: #181818;
  --border: #222222;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-faint: #555555;
  --red: #ff4444;
  --orange: #ff8c00;
  --blue: #00b4ff;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

/* ── NAV ── */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
.nav-wordmark {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.nav-wordmark span {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--green); }
.nav-satire-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-faint);
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  line-height: 1.6;
}
.badge-breaking { background: var(--red); color: #fff; }
.badge-live     { background: var(--red); color: #fff; position: relative; padding-left: 20px; }
.badge-live::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.badge-exclusive { background: var(--green); color: #000; }
.badge-analysis  { background: var(--blue); color: #fff; }
.badge-opinion   { background: var(--orange); color: #fff; }
.badge-satire    { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }

/* ── MASTHEAD ── */
.site-masthead {
  text-align: center;
  padding: 40px 24px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.masthead-logo {
  height: 220px;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* ── HERO FEATURED ── */
.hero-featured {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.hero-featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s;
}
.hero-featured-inner:hover { border-color: var(--green-dim); }
.hero-img {
  aspect-ratio: 16/9;
  background: var(--surface2);
  overflow: hidden;
  position: relative;
}
.hero-img-tweet {
  aspect-ratio: unset;
  min-height: 300px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--surface);
}
.hero-img-tweet .twitter-tweet {
  margin: 0 auto !important;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  font-size: 4rem;
  color: var(--text-faint);
}
.hero-content {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}
.hero-content:hover .hero-title { color: var(--green); transition: color 0.15s; }

/* ── ARTICLE TWEET ── */
.article-tweet {
  margin: 24px 0 8px;
  display: flex;
  justify-content: center;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-category {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.hero-title a:hover { color: var(--green); transition: color 0.15s; }
.hero-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero-byline {
  font-size: 0.75rem;
  color: var(--text-faint);
}
.hero-byline strong { color: var(--text-muted); }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 4px;
}
.read-more::after { content: '→'; }
.read-more:hover { color: var(--green-dim); }

/* ── SECTION HEADER ── */
.section-header {
  max-width: 1200px;
  margin: 48px auto 20px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ARTICLE GRID ── */
.article-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.article-card {
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s;
  cursor: pointer;
}
.article-card:hover { background: var(--surface2); }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-category {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}
.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  flex: 1;
}
.article-card:hover .card-title { color: var(--green); transition: color 0.15s; }
.card-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-footer strong { color: var(--text-muted); }

/* ── LOAD MORE ── */
.load-more-wrap {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px;
  text-align: center;
}
.btn-load-more {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 10px 32px;
  border-radius: 2px;
  transition: all 0.15s;
}
.btn-load-more:hover { border-color: var(--green); color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { height: 32px; width: auto; opacity: 0.7; }
.footer-wordmark {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-faint);
  max-width: 560px;
  line-height: 1.6;
}
.footer-disclaimer strong { color: var(--text-muted); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── ARTICLE PAGE ── */
.article-page {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px;
}
.article-header { margin-bottom: 32px; }
.article-header .badge { margin-bottom: 12px; }
.article-h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-dek {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.article-byline-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.article-byline-bar strong { color: var(--text-muted); }
.article-body {
  margin-top: 32px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-body blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--surface);
  font-style: italic;
  color: var(--text-muted);
}
.satire-note {
  margin: 32px 0;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-faint);
  font-size: 0.78rem;
  color: var(--text-faint);
  border-radius: 0 4px 4px 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--green); }

/* ── EDITOR PAGE ── */
.editor-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.editor-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}
.editor-subtitle {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* login gate */
.login-gate {
  max-width: 400px;
  margin: 120px auto;
  padding: 0 24px;
  text-align: center;
}
.login-gate .nav-logo { justify-content: center; margin-bottom: 32px; }
.login-gate-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.login-gate-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; }

/* forms */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 32px;
}
.form-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }
label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
input[type="text"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; min-height: 200px; line-height: 1.6; }
select option { background: var(--surface); }
.form-hint { font-size: 0.72rem; color: var(--text-faint); }

/* buttons */
.btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 3px;
  border: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green-dim); }
.btn-secondary { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid #441111; }
.btn-danger:hover { background: #1a0606; border-color: var(--red); }
.btn-sm { font-size: 0.72rem; padding: 6px 14px; }

/* posts list */
.posts-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 4px; overflow: hidden; }
.post-row {
  background: var(--surface);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-row:hover { background: var(--surface2); }
.post-row-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  min-width: 200px;
  color: var(--text);
}
.post-row-meta {
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.post-row-actions { display: flex; gap: 8px; flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-faint);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--text-faint); opacity: 0.4; }

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  color: var(--text);
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-featured-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .article-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .article-h1 { font-size: 1.8rem; }
}
