/* ==========================================================================
   Tarnished Circle — Elden Ring fan hub theme
   ========================================================================== */

:root {
  --bg:            #0b0906;
  --bg-raised:     #14110c;
  --bg-card:       #17130d;
  --bg-input:      #100d09;
  --border-dim:    #3a3120;
  --border-gold:   #6b5a35;
  --gold:          #c9a86a;
  --gold-bright:   #e7cd8e;
  --gold-dim:      #8a7444;
  --text:          #d8cdb8;
  --text-dim:      #a99b83;
  --text-faint:    #7c7160;
  --danger:        #9c3b3b;
  --success:       #4f7a52;
  --link:          #d8b978;
  --shadow-glow:   0 0 18px rgba(201, 168, 106, 0.18);
  --radius:        4px;
  --font-display:  'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-head:     'Cinzel', Georgia, serif;
  --font-body:     'EB Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  position: relative;
}

.bg-fog {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 95, 45, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(80, 40, 20, 0.12), transparent 60%),
    linear-gradient(180deg, #0b0906 0%, #0d0a07 40%, #0b0906 100%);
}

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

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--gold-bright); font-weight: 600; letter-spacing: 0.5px; margin: 0 0 12px; }

.ornate-divider {
  height: 14px;
  background:
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) center / 14px 14px no-repeat,
    linear-gradient(90deg, transparent, var(--border-gold) 20%, var(--border-gold) 80%, transparent);
  background-size: 14px 14px, 100% 1px;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.85;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 6, 0.94);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-dim);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--gold); font-size: 20px; }
.brand-mark-svg { color: var(--gold); flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(201,168,106,0.25);
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.main-nav a {
  color: var(--text-dim);
  padding: 8px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-bright);
  background: rgba(201,168,106,0.08);
  text-decoration: none;
}
.account-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.search-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dim);
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.search-icon-link:hover { color: var(--gold-bright); border-color: var(--border-gold); text-decoration: none; }
.signin-btn, .new-thread-btn {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--gold-bright);
  background: linear-gradient(180deg, #1c1710, #120f0a);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.signin-btn:hover, .new-thread-btn:hover { border-color: var(--gold); box-shadow: var(--shadow-glow); text-decoration: none; }

.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--font-head); font-size: 14px; }
.user-chip:hover { text-decoration: none; color: var(--gold-bright); }
.avatar-sigil { display: block; border-radius: 6px; flex-shrink: 0; }
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 130%;
  min-width: 170px;
  background: var(--bg-raised);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  padding: 6px;
  z-index: 60;
}
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown { display: block; }
.user-dropdown a { display: block; padding: 8px 10px; border-radius: 3px; color: var(--text); font-size: 15px; }
.user-dropdown a:hover { background: rgba(201,168,106,0.1); text-decoration: none; }

/* ---- Layout / main ---- */
.page-main { padding: 32px 20px 60px; min-height: 60vh; }
.page-header { margin-bottom: 24px; }
.page-header p.lede { color: var(--text-dim); margin: 0; }
.breadcrumbs { font-size: 14px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-dim); }

/* ---- Flash messages ---- */
.flash { padding: 12px 16px; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid; font-size: 15px; }
.flash-success { background: rgba(79,122,82,0.12); border-color: var(--success); color: #bcd9be; }
.flash-error { background: rgba(156,59,59,0.12); border-color: var(--danger); color: #e3b6b6; }
.flash-info { background: rgba(201,168,106,0.08); border-color: var(--border-gold); color: var(--gold-bright); }

/* ---- Group / board index ---- */
.forum-group { margin-bottom: 34px; }
.forum-group-title {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.forum-group-desc { color: var(--text-faint); font-size: 14px; margin: 6px 0 14px; }

.board-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.board-row:hover { border-color: var(--border-gold); }
.board-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 18px;
  background: radial-gradient(circle, rgba(201,168,106,0.12), transparent 70%);
}
.board-info { flex: 1; min-width: 0; }
.board-info a.board-name { font-family: var(--font-head); font-size: 18px; color: var(--gold-bright); }
.board-desc { color: var(--text-dim); font-size: 14.5px; margin-top: 2px; }
.board-stats { display: flex; gap: 22px; font-size: 13px; color: var(--text-faint); text-align: center; flex-shrink: 0; }
.board-stats div span { display: block; color: var(--gold); font-size: 16px; font-family: var(--font-head); }
.board-last-post { width: 220px; flex-shrink: 0; font-size: 13px; color: var(--text-faint); text-align: right; }
.board-last-post a { color: var(--text-dim); }

@media (max-width: 720px) {
  .board-stats, .board-last-post { display: none; }
}

@media (max-width: 860px) {
  .header-inner { gap: 10px 18px; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 2px; border-top: 1px solid var(--border-dim); padding-top: 8px; }
  .main-nav a { padding: 6px 8px; font-size: 12px; }
}

/* ---- Thread list ---- */
.thread-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-dim);
}
.thread-row:hover { background: rgba(201,168,106,0.04); }
.thread-row .avatar-sigil { flex-shrink: 0; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-family: var(--font-head); font-size: 17px; color: var(--gold-bright); }
.thread-title .badge { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 2px 6px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.badge-pinned { background: rgba(201,168,106,0.18); color: var(--gold-bright); border: 1px solid var(--border-gold); }
.badge-locked { background: rgba(156,59,59,0.15); color: #e3b6b6; border: 1px solid var(--danger); }
.thread-meta { font-size: 13px; color: var(--text-faint); margin-top: 3px; }
.thread-stats { width: 130px; text-align: center; font-size: 13px; color: var(--text-faint); flex-shrink: 0; }
.thread-stats span { display: block; color: var(--gold); font-family: var(--font-head); font-size: 16px; }
.thread-lastpost { width: 200px; flex-shrink: 0; font-size: 13px; color: var(--text-faint); text-align: right; }
@media (max-width: 720px) {
  .thread-stats, .thread-lastpost { display: none; }
}

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }

/* ---- Posts (thread view) ---- */
.post-card {
  display: flex;
  gap: 18px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 16px;
  overflow: hidden;
}
.post-author {
  width: 150px;
  flex-shrink: 0;
  padding: 18px 14px;
  background: var(--bg-raised);
  border-right: 1px solid var(--border-dim);
  text-align: center;
}
.post-author .avatar-sigil { width: 56px; height: 56px; margin: 0 auto 10px; }
.post-author .author-name { font-family: var(--font-head); color: var(--gold-bright); font-size: 15px; word-break: break-word; }
.post-author .author-role { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dim); margin-top: 4px; }
.post-author .author-joined { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; }
.post-body-wrap { flex: 1; min-width: 0; padding: 18px 20px; }
.post-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-faint); margin-bottom: 10px; border-bottom: 1px dashed var(--border-dim); padding-bottom: 8px; }
.post-body { font-size: 17.5px; color: var(--text); word-wrap: break-word; }
.post-body blockquote { border-left: 3px solid var(--border-gold); margin: 10px 0; padding: 4px 14px; color: var(--text-dim); font-style: italic; }
.post-body .post-img { max-width: 100%; height: auto; display: block; margin: 10px 0; border-radius: 4px; border: 1px solid var(--border-dim); }
.text-faint { color: var(--text-faint); }

/* ---- Reported posts: banner shown to everyone, body faded out to a
   placeholder for regular members but left readable for moderators/admins
   so they can actually judge it (see report_post.php / moderate_post.php) ---- */
.post-card.post-under-review { border-color: rgba(190, 60, 40, 0.35); }
.moderation-banner {
  background: rgba(190, 60, 40, 0.12);
  border: 1px solid rgba(190, 60, 40, 0.4);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.post-body-hidden { font-style: italic; color: var(--text-faint); }
.post-actions { margin-top: 14px; display: flex; gap: 14px; font-size: 13px; }
.post-actions a, .post-actions button.linklike { color: var(--text-faint); background: none; border: none; padding: 0; font-family: var(--font-body); font-size: 13px; cursor: pointer; }
.post-actions a:hover, .post-actions button.linklike:hover { color: var(--gold-bright); }

@media (max-width: 620px) {
  .post-card { flex-direction: column; }
  .post-author { width: auto; display: flex; align-items: center; gap: 12px; text-align: left; border-right: none; border-bottom: 1px solid var(--border-dim); }
  .post-author .avatar-sigil { margin: 0; }
}

/* ---- Forms ---- */
.panel {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.panel-wide { max-width: 760px; }
.panel h1, .panel h2 { text-align: center; }
.panel .sub { text-align: center; color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }

label { display: block; font-family: var(--font-head); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,168,106,0.15); }
textarea { min-height: 160px; resize: vertical; }
.code-input { letter-spacing: 10px; font-size: 26px; text-align: center; font-family: var(--font-head); }
.field-hint { font-size: 13px; color: var(--text-faint); margin-top: -12px; margin-bottom: 18px; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, #2a2113, #16120b);
  color: var(--gold-bright);
  cursor: pointer;
  text-align: center;
}
.btn:hover { border-color: var(--gold); box-shadow: var(--shadow-glow); text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn-danger { border-color: var(--danger); color: #e3b6b6; }
.btn-small { padding: 7px 14px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #4a3a1c, #241c10); border-color: var(--gold); }
.btn-ghost { background: transparent; }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }

/* ---- Misc ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid var(--border-dim); border-radius: var(--radius); font-size: 14px; color: var(--text-dim); }
.pagination .current { border-color: var(--gold); color: var(--gold-bright); }

.footer-inner { padding: 28px 20px 40px; text-align: center; }
.footer-brand { font-family: var(--font-display); color: var(--gold-dim); letter-spacing: 2px; margin-bottom: 10px; }
.footer-disclaimer { max-width: 640px; margin: 0 auto 14px; color: var(--text-faint); font-size: 12.5px; line-height: 1.6; }
.footer-links { font-size: 13px; color: var(--text-faint); }
.footer-legal { margin-top: 8px; font-size: 12px; }

/* ---- Long-form prose (news, lore, legal pages) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 32px; margin-bottom: 6px; }
.prose h2 { font-size: 22px; margin-top: 34px; }
.prose h3 { font-size: 18px; margin-top: 24px; color: var(--gold); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 30px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.movie-banner {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 30px;
  background: linear-gradient(120deg, rgba(201,168,106,0.08), transparent 60%), var(--bg-card);
}
.movie-banner h2 { margin-bottom: 6px; }
.movie-banner p { color: var(--text-dim); margin: 0; }
.movie-banner .btn { margin-top: 14px; }

.stat-strip { display: flex; gap: 28px; margin: 4px 0 30px; flex-wrap: wrap; }
.stat-strip div { text-align: center; }
.stat-strip span { display: block; font-family: var(--font-head); color: var(--gold-bright); font-size: 22px; }
.stat-strip small { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- Homepage hero ---- */
.hero {
  text-align: center;
  padding: 60px 20px 46px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-dim);
  background:
    linear-gradient(180deg, rgba(11,9,6,0.55) 0%, rgba(11,9,6,0.8) 60%, var(--bg) 100%),
    url('/assets/images/hero-ruins.jpg') center 35% / cover no-repeat;
}
.hero-mark { color: var(--gold); margin-bottom: 18px; }
.hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(201,168,106,0.3);
  margin-bottom: 8px;
}
.hero-tagline {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 18px;
}
.hero-intro { max-width: 620px; margin: 0 auto 26px; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
}

/* ---- Section hub banner photos (movie.php, lore.php, etc.) ----
   Royalty-free stock photography, not game/movie screenshots or artwork -
   see README for sourcing/licensing notes. */
.page-banner {
  height: 190px;
  border-radius: 10px;
  border: 1px solid var(--border-dim);
  margin-bottom: 24px;
  background-size: cover, cover;
  background-position: center, center 40%;
  background-repeat: no-repeat, no-repeat;
}
.page-banner-movie {
  background-image:
    linear-gradient(180deg, rgba(11,9,6,0.1) 0%, rgba(11,9,6,0.7) 85%, var(--bg) 100%),
    url('/assets/images/movie-castle.jpg');
}
.page-banner-lore {
  background-image:
    linear-gradient(180deg, rgba(11,9,6,0.1) 0%, rgba(11,9,6,0.7) 85%, var(--bg) 100%),
    url('/assets/images/lore-forest.jpg');
}
@media (max-width: 480px) {
  .page-banner { height: 120px; }
}

/* ---- Generic badges (also used standalone, not just in thread titles) ---- */
.badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 3px; vertical-align: middle; font-family: var(--font-head); }
.badge-rumour, .badge-speculation { background: rgba(156,59,59,0.15); color: #e3b6b6; border: 1px solid var(--danger); }
.badge-confirmed { background: rgba(79,122,82,0.18); color: #b7d6b9; border: 1px solid var(--success); }
.badge-category { background: rgba(201,168,106,0.1); color: var(--gold-dim); border: 1px solid var(--border-dim); }
.badge-featured { background: rgba(201,168,106,0.18); color: var(--gold-bright); border: 1px solid var(--border-gold); }

/* ---- Section headers (homepage + hub pages) ---- */
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.section-header h2 { margin: 0; font-size: 20px; }
.section-header a.see-all { font-size: 13px; color: var(--text-faint); }

/* ---- Article cards (News / Lore listings) ---- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--border-gold); text-decoration: none; }
.article-card .article-hero { width: 100%; height: 140px; object-fit: cover; display: block; background: var(--bg-raised); }
.article-card .article-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.article-card .article-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.article-card .article-title { font-family: var(--font-head); font-size: 17px; color: var(--gold-bright); margin-bottom: 6px; display: block; }
.article-card:hover .article-title { color: var(--gold); }
.article-card .article-dek { color: var(--text-dim); font-size: 14px; flex: 1; }
.article-card .article-footer { margin-top: 12px; font-size: 12px; color: var(--text-faint); }
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.category-tabs a { padding: 7px 14px; border: 1px solid var(--border-dim); border-radius: 20px; font-size: 13px; color: var(--text-dim); }
.category-tabs a:hover { border-color: var(--border-gold); text-decoration: none; }
.category-tabs a.active { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,168,106,0.08); }

.article-header { margin-bottom: 24px; }
.article-header .article-meta { margin-bottom: 10px; }
.article-header h1 { font-size: 30px; margin-bottom: 8px; }
.article-header .article-dek { color: var(--text-dim); font-size: 17px; }
.article-hero-full { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid var(--border-dim); }
.article-source { margin-top: 30px; padding-top: 16px; border-top: 1px dashed var(--border-dim); font-size: 13px; color: var(--text-faint); }
.article-tags { margin-top: 10px; }
.article-tags .badge { margin-right: 6px; margin-bottom: 6px; }
.article-discuss { margin-top: 30px; padding: 18px 20px; border: 1px solid var(--border-gold); border-radius: var(--radius); background: rgba(201,168,106,0.05); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- The Movie Watch timeline ---- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 28px; border-left: 2px solid var(--border-dim); }
.timeline-entry { position: relative; padding-bottom: 34px; }
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
}
.timeline-entry.status-rumour::before, .timeline-entry.status-speculation::before { border-color: var(--danger); }
.timeline-date { font-family: var(--font-head); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.timeline-card { border: 1px solid var(--border-dim); border-radius: var(--radius); background: var(--bg-card); padding: 16px 20px; }
.timeline-card .article-meta { margin-bottom: 8px; }
.timeline-card h3 { font-size: 17px; margin-bottom: 8px; }
.timeline-card img { max-width: 100%; border-radius: var(--radius); margin-top: 10px; border: 1px solid var(--border-dim); }
.timeline-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; justify-content: center; }

/* ---- Homepage: trending + featured discussion ---- */
.trending-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.trending-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dim); margin-bottom: 12px; }
.trending-list { list-style: none; margin: 0 0 26px; padding: 0; }
.trending-list li { padding: 10px 0; border-bottom: 1px solid var(--border-dim); font-size: 14px; }
.trending-list li:last-child { border-bottom: none; }
.trending-list .trending-title { color: var(--gold-bright); display: block; }
.trending-list .trending-meta { color: var(--text-faint); font-size: 12px; margin-top: 3px; }
.featured-discussion {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
  background: linear-gradient(120deg, rgba(201,168,106,0.1), transparent 65%), var(--bg-card);
}
.featured-discussion .badge { margin-bottom: 10px; }
.featured-discussion h2 { margin-bottom: 8px; }
@media (max-width: 780px) {
  .trending-grid { grid-template-columns: 1fr; }
}
