/* =========================================
   GOLDENFISH NEWS — style.css
   news.goldenfish.one
   ========================================= */

:root {
  --bg:       #060d06;
  --bg2:      #0c180c;
  --bg3:      #111f11;
  --surface:  #162016;
  --border:   #1e2e1e;
  --border2:  #2a3e2a;
  --accent:   #c8f044;
  --accent2:  #8bc34a;
  --accent3:  #e8ff80;
  --gold:     #f0c040;
  --red:      #ff4444;
  --orange:   #ff8c00;
  --blue:     #44aaff;
  --text:     #d8e8d0;
  --text2:    #8aab80;
  --text3:    #506050;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius:   8px;
  --shadow:   0 4px 24px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent3); }

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

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,13,6,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.logo-icon { width: 40px; height: 40px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-title {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1;
}
.logo-title span { color: var(--accent); }
.logo-sub {
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,240,68,0.08);
  border: 1px solid rgba(200,240,68,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
}
.pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseAnim 1.5s infinite;
}
@keyframes pulseAnim {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}
.clock {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
}

/* ---- TICKER ---- */
.ticker-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerMove 60s linear infinite;
  font-size: 12px;
  color: var(--text2);
  padding-left: 24px;
  gap: 0;
}
.ticker-track span { margin-right: 60px; }
@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,240,68,0.04) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 20% 80%, rgba(139,195,74,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 16px;
  opacity: 0.8;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 24px;
}
.hero-headline .accent { color: var(--accent); }
.hero-desc {
  color: var(--text2);
  font-size: 15px;
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat span {
  display: block;
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
}
.stat label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* Globe / Monitor visual */
.hero-visual {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#monitorCanvas {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: block;
}
.monitor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  text-align: center;
  opacity: 0.8;
  animation: monitorPulse 2s ease-in-out infinite;
  position: absolute;
  bottom: -4px;
  white-space: nowrap;
}
@keyframes monitorPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ---- CATEGORIES ---- */
.categories-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 65px;
  z-index: 90;
}
.categories {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text3);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.cat-btn:hover { color: var(--text); border-bottom-color: var(--border2); }
.cat-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.cat-icon { font-size: 15px; }

/* ---- MAIN LAYOUT ---- */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ---- NEWS SECTION ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--text);
}
.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
  font-family: var(--font-mono);
}
.sort-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.sort-btn.active, .sort-btn:hover {
  background: rgba(200,240,68,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- NEWS GRID ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: cardIn .4s ease forwards;
  opacity: 0;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,240,68,0.06);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg3);
  display: block;
}
.card-img-placeholder {
  width: 100%;
  height: 160px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}
.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.cat-environment { background: rgba(139,195,74,0.15); color: #8bc34a; }
.cat-food        { background: rgba(255,140,0,0.15);  color: #ff8c00; }
.cat-health      { background: rgba(68,170,255,0.15); color: #44aaff; }
.cat-all         { background: rgba(200,240,68,0.15); color: #c8f044; }

.card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
}
.card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
  padding-top: 4px;
  transition: gap .2s;
}
.card-link:hover { gap: 10px; }

/* ---- SKELETON ---- */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 320px;
  animation: shimmer 1.6s ease infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, var(--surface) 0%, var(--bg3) 50%, var(--surface) 100%);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- ERROR ---- */
.error-msg {
  text-align: center;
  padding: 48px;
  color: var(--orange);
  font-family: var(--font-mono);
  background: rgba(255,140,0,0.04);
  border: 1px solid rgba(255,140,0,0.15);
  border-radius: var(--radius);
}

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 38px; height: 38px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 700; }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-card-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--text);
}
.sidebar-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
.sidebar-card-body strong { color: var(--text); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  text-align: center;
  transition: all .2s;
  align-self: flex-start;
}
.btn-outline:hover { background: rgba(200,240,68,0.1); color: var(--accent3); }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  text-align: center;
  transition: all .2s;
  font-family: var(--font-body);
}
.btn-gold:hover { background: #ffe070; color: var(--bg); transform: translateY(-1px); }

.token-addr { display: flex; flex-direction: column; gap: 4px; }
.token-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; }
.token-code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--accent2);
  cursor: pointer;
  transition: border-color .2s;
}
.token-code:hover { border-color: var(--accent); }
.token-network { font-size: 11px; color: var(--text3); font-family: var(--font-mono); }

.coverage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
}
.cov-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cov-dot.env   { background: #8bc34a; }
.cov-dot.food  { background: #ff8c00; }
.cov-dot.health{ background: #44aaff; }

.sources-list {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px !important;
}
.source-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text2);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1400px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s;
  pointer-events: none;
  z-index: 999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- TOKEN BUY WIDGET (sidebar) ---- */
.token-widget-body {
  gap: 10px !important;
}
.tw-token-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.tw-token-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(200,240,68,.25);
}
.tw-token-name {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}
.tw-token-symbol {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  margin-top: 3px;
  letter-spacing: 1px;
}
.tw-stage-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tw-stages {
  display: flex;
  gap: 6px;
}
.tw-stage-btn {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
  transition: all .2s;
}
.tw-stage-btn span { display: block; color: var(--text3); font-size: 9px; }
.tw-stage-btn:hover { border-color: var(--border2); color: var(--text); }
.tw-stage-btn.active { background: rgba(200,240,68,.08); border-color: var(--accent); color: var(--accent); }
.tw-stage-btn.active span { color: var(--accent2); }

.tw-calc { display: flex; flex-direction: column; gap: 6px; }
.tw-calc-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; }
.tw-calc-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
}
.tw-calc-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 10px 12px;
  outline: none;
  width: 0;
}
.tw-calc-unit {
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
.tw-calc-arrow { text-align: center; font-size: 16px; color: var(--text3); line-height: 1; }
.tw-calc-result-wrap {
  background: rgba(200,240,68,.05);
  border: 1px solid rgba(200,240,68,.15);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}
.tw-calc-result-label { font-family: var(--font-mono); font-size: 9px; color: var(--text3); letter-spacing: 1px; margin-bottom: 2px; }
.tw-calc-result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tw-result-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(200,240,68,.3);
  flex-shrink: 0;
}
.tw-calc-result {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
}
.tw-wallet-label { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.tw-wallet-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color .2s;
}
.tw-wallet-addr:hover { border-color: var(--accent); }
.tw-wallet-addr code { font-family: var(--font-mono); font-size: 9px; color: var(--accent2); flex: 1; word-break: break-all; line-height: 1.5; }

/* ---- ARTICLE MODAL (RSS summary version) ---- */
.article-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
}
.article-modal.open { display: flex; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  animation: backdropIn .25s ease;
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 5vh 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  animation: modalIn .3s cubic-bezier(.2,.8,.4,1);
  scroll-behavior: smooth;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.modal-panel::-webkit-scrollbar { width: 4px; }
.modal-panel::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Top bar */
.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12,24,12,0.97);
  backdrop-filter: blur(8px);
  z-index: 10;
  gap: 12px;
}
.modal-source-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.modal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.modal-ext-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid rgba(200,240,68,.25);
  border-radius: 4px;
  transition: all .2s;
  white-space: nowrap;
}
.modal-ext-btn:hover { background: rgba(200,240,68,.08); color: var(--accent3); }
.modal-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 30px; height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,80,80,.1); border-color: rgba(255,80,80,.3); color: #ff5555; }

/* Hero image */
.modal-img-wrap { width: 100%; max-height: 320px; overflow: hidden; }
.modal-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* Body */
.modal-body { padding: 28px 32px 32px; }

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.modal-date, .modal-src, .modal-author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
}

.modal-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(18px, 3vw, 26px);
  color: #fff;
  line-height: 1.35;
  margin-bottom: 24px;
}

.modal-content {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
}
.modal-content p {
  margin-bottom: 16px;
}
.modal-content p:last-child { margin-bottom: 0; }

.modal-description {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 4px;
}
.modal-description p {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(200,240,68,.04);
  border-radius: 0 6px 6px 0;
  margin: 0;
}
.modal-no-desc {
  color: var(--text3) !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  border-left-color: var(--border2) !important;
  background: transparent !important;
}
.modal-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.modal-footer-link {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.modal-read-full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all .2s;
}
.modal-read-full:hover { background: var(--accent3); color: var(--bg); transform: translateY(-1px); }

/* Card hover effect for clickability cue */
.news-card:hover .card-link { color: var(--accent3); }
.news-card .card-link { cursor: pointer; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; text-align: center; gap: 32px; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 40px; }
}
@media (max-width: 640px) {
  .header-inner { padding: 10px 16px; gap: 12px; }
  .back-link { display: none; }
  .hero { padding: 48px 16px 40px; }
  .hero-visual { display: none; }
  .main-layout { padding: 24px 16px 40px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
