/* Guyon Gayeng v3 — pola portal berita, murni CSS + ilustrasi orisinal */
:root {
  --ink: #1a1a1a;
  --muted: #666;
  --paper: #fdfbf7;
  --red: #b91c1c;
  --gold: #f59e0b;
  --line: #e5ddd0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Pita parodi — selalu terlihat */
.parodi-strip {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1rem; }

/* Bar atas ala portal berita */
.topbar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: Arial, sans-serif; font-size: 0.8rem; color: var(--muted);
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.topbar a { color: var(--ink); font-weight: bold; }

header.masthead { text-align: center; padding: 1.5rem 1rem 1rem; border-bottom: 6px solid var(--ink); }
header.masthead .logo { font-size: 3rem; font-weight: bold; letter-spacing: -0.02em; line-height: 1.1; }
header.masthead .logo a { color: var(--ink); }
header.masthead .logo a:hover { text-decoration: none; }
header.masthead .tagline { font-style: italic; color: var(--muted); margin-top: 0.25rem; font-size: 1.05rem; }

/* Bar kategori gelap */
nav.rubrik {
  display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center;
  padding: 0.7rem; margin-top: 1rem; border-radius: 8px; background: var(--ink);
}
nav.rubrik button {
  font-family: Arial, sans-serif; font-size: 0.85rem; font-weight: bold; cursor: pointer;
  color: #fff; border: 1px solid #444; border-radius: 999px;
  padding: 0.3rem 0.8rem; background: transparent;
}
nav.rubrik button:hover { background: var(--red); border-color: var(--red); }
nav.rubrik button.active { background: var(--red); border-color: var(--red); }
.filter-empty { text-align: center; color: var(--muted); font-style: italic; padding: 2rem 0; }

/* Ticker berita terkini */
.ticker {
  display: flex; align-items: stretch; margin-top: 1rem; border-radius: 8px; overflow: hidden;
  background: var(--ink); color: #fff; font-family: Arial, sans-serif;
}
.ticker-label {
  flex: 0 0 auto; background: var(--red); color: #fff; font-weight: bold; font-size: 0.8rem;
  letter-spacing: 0.1em; padding: 0.6rem 0.9rem; display: flex; align-items: center;
}
.ticker-viewport { overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker-scroll 45s linear infinite; }
.ticker-track span { font-size: 0.9rem; padding-right: 0.5rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Layout utama + sidebar */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; margin-top: 0.25rem; }

h2.section-title {
  font-size: 1.4rem; margin: 1.75rem 0 1rem; padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--red);
}

/* Berita utama */
.hero { position: relative; display: block; border-radius: 14px; overflow: hidden; margin-top: 1.25rem; color: #fff; }
.hero:hover { text-decoration: none; }
.hero-img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.88) 45%);
}
.hero-body h2 { font-size: 1.8rem; line-height: 1.25; margin: 0.5rem 0; }
.hero-body p { font-size: 1.02rem; color: #e5e5e5; }
.hero-rubrik {
  font-family: Arial, sans-serif; font-size: 0.8rem; font-weight: bold;
  color: #fca5a5; text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-byline { font-family: Arial, sans-serif; font-size: 0.85rem; color: #d4d4d4; margin-top: 0.6rem; }

/* Grid berita */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; color: var(--ink);
}
.card:hover { text-decoration: none; border-color: var(--red); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.badge {
  display: inline-block; font-family: Arial, sans-serif; font-size: 0.7rem;
  font-weight: bold; letter-spacing: 0.08em; color: #fff; background: var(--red);
  border-radius: 4px; padding: 0.15rem 0.5rem; text-transform: uppercase; vertical-align: middle;
}
.rubrik-label {
  font-family: Arial, sans-serif; font-size: 0.8rem; font-weight: bold;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.06em;
}
.card-body h3 { font-size: 1.15rem; line-height: 1.35; margin: 0.4rem 0; }
.card-body p { color: #444; font-size: 0.96rem; flex: 1; }
.byline {
  font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem;
}

/* Sidebar Terpopuler */
.sidebar { margin-top: 1.25rem; }
.popular-title {
  font-size: 1.4rem; margin: 0 0 1rem; padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--red);
}
.popular { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.25rem 1rem; }
.pop-row { display: flex; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); align-items: flex-start; }
.pop-row:last-child { border-bottom: none; }
.pop-row:hover { text-decoration: none; }
.pop-row:hover h4 { color: var(--red); }
.pop-num { font-size: 1.7rem; font-weight: bold; color: var(--red); line-height: 1; flex: 0 0 auto; }
.pop-row h4 { font-size: 0.98rem; line-height: 1.35; margin: 0.15rem 0; }
.pop-meta { font-family: Arial, sans-serif; font-size: 0.78rem; color: var(--muted); }

/* Halaman artikel */
article.page { padding: 1.5rem 0 2rem; }
article.page .rubrik-label { font-size: 0.9rem; }
article.page h1 { font-size: 2rem; line-height: 1.25; margin: 0.5rem 0 0.75rem; }
article.page .dek { font-size: 1.15rem; font-style: italic; color: #444; margin-bottom: 1rem; }
article.page .hero-img { width: 100%; height: 380px; object-fit: cover; display: block; border-radius: 12px; margin-bottom: 1.5rem; }
article.page .hero {
  font-size: 5rem; text-align: center; padding: 2rem 1rem; border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #fecaca); margin-bottom: 1.5rem;
}
article.page .hero.v4 { background: linear-gradient(135deg, #d1fae5, #e0f2fe); }
article.page .hero.v5 { background: linear-gradient(135deg, #ffedd5, #fef3c7); }
article.page p { margin-bottom: 1rem; font-size: 1.08rem; }
article.page blockquote {
  border-left: 4px solid var(--gold); margin: 1rem 0 1rem 0.5rem;
  padding: 0.5rem 1rem; font-style: italic; color: #444; background: #fff;
}
.backlink { font-family: Arial, sans-serif; font-size: 0.9rem; }

/* Halaman tentang */
.redaksi { list-style: none; margin: 1rem 0; }
.redaksi li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
.redaksi li strong { color: var(--red); }
.redaksi li span { color: var(--muted); }

footer {
  border-top: 4px double var(--ink); margin-top: 2rem; padding: 1.5rem 1rem 2.5rem;
  text-align: center; font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--muted);
}
footer .disclaimer { font-size: 0.95rem; color: var(--ink); font-weight: bold; margin-bottom: 0.5rem; }
footer nav { margin-top: 0.75rem; }
footer nav a { margin: 0 0.5rem; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  header.masthead .logo { font-size: 2.2rem; }
  .hero-img { height: 300px; }
  .hero-body h2 { font-size: 1.35rem; }
  .hero-body p { font-size: 0.95rem; }
  article.page .hero-img { height: 220px; }
  article.page h1 { font-size: 1.55rem; }
  .card-body h3 { font-size: 1.1rem; }
}
