/* assets/css/site.css — public site styles */

/* ── LOGO ── */
.cd-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.cd-logo svg { height: 44px; width: auto; flex-shrink: 0; }
.cd-logo-wordmark { display: flex; flex-direction: column; justify-content: center; gap: .05rem; }
.cd-logo-text { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; color: var(--tx); line-height: 1; }
.cd-logo-text em { color: #E8A020; font-style: normal; }
.cd-logo-tagline { font-family: 'Poppins', sans-serif; font-size: .58rem; font-weight: 500; letter-spacing: .04em; color: var(--tx3); line-height: 1; }

/* ── HEADER ── */
.site-hdr { background: var(--bg); border-bottom: 1px solid var(--bd); position: sticky; top: 0; z-index: 200; }
[data-theme="dark"]  .site-hdr { background: rgba(8,12,12,.97); }
[data-theme="light"] .site-hdr { background: rgba(250,247,242,.97); }
.site-hdr-in { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; height: 56px; gap: .5rem; }

/* Nav — shrinks to fit, never wraps */
.site-nav { display: flex; gap: 0; flex-shrink: 1; min-width: 0; overflow: hidden; }
.nav-tab {
  padding: .26rem .55rem;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tx3);
  border-radius: 4px;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-tab:hover { background: var(--bg3); color: var(--tx); }
.nav-tab.active { background: var(--ac); color: #fff; }

/* Right controls — never shrink */
.hdr-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Hamburger — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: .4rem;
  border-radius: 4px;
  border: 1px solid var(--bd);
  background: transparent;
  flex-shrink: 0;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--tx2); border-radius: 1px; transition: all .2s; }

/* Mobile nav drawer */
.mobile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--bd);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  z-index: 199;
  transition: max-height .25s ease, padding .25s ease;
}
.mobile-nav.open { max-height: 200px; padding: .75rem 1.25rem; }
.mobile-nav .nav-tab {
  font-size: .65rem;
  padding: .38rem .75rem;
  background: var(--bg2);
  color: var(--tx);
}
.mobile-nav .nav-tab.active { background: var(--ac); color: #fff; }
.live-badge { display: flex; align-items: center; gap: 5px; font-size: .6rem; font-weight: 600; letter-spacing: .06em; color: var(--gn); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gn); animation: livepulse 2s infinite; }
@keyframes livepulse { 0%,100%{opacity:1;} 50%{opacity:.2;} }
.btn-theme { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bd); background: var(--bg3); cursor: pointer; font-size: .85rem; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.btn-theme:hover { border-color: var(--ac); }
.btn-subscribe { font-size: .7rem; font-weight: 600; padding: .33rem .9rem; background: var(--am); color: #fff; border-radius: 4px; transition: background .15s; }
.btn-subscribe:hover { background: var(--am2); }
.btn-admin { font-size: .7rem; font-weight: 600; padding: .33rem .9rem; background: var(--bg3); color: var(--tx2); border-radius: 4px; border: 1px solid var(--bd); transition: all .15s; }

/* ── AD PLACEHOLDER ── */
.ad-placeholder { background: var(--bg3); border: 1px dashed var(--bd2); border-radius: 3px; padding: .35rem 3rem; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ad-placeholder span { font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.ad-placeholder small { font-size: .5rem; color: var(--bd2); font-family: monospace; }
.ad-strip { background: var(--bg2); border-bottom: 1px solid var(--bd); padding: .4rem; display: flex; justify-content: center; }

/* ── TICKER ── */
.breaking-ticker { background: var(--ac); padding: .3rem 1.5rem; display: flex; align-items: center; gap: 1rem; overflow: hidden; }
.ticker-label { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; background: rgba(0,0,0,.15); padding: .15rem .5rem; border-radius: 2px; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-items { display: flex; gap: 2.5rem; font-size: .7rem; color: rgba(255,255,255,.88); white-space: nowrap; animation: tickerscroll 38s linear infinite; }
@keyframes tickerscroll { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ── BADGES ── */
.bdg { display: inline-flex; align-items: center; gap: 4px; font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .18rem .48rem; border-radius: 2px; }
.bdg-cat  { background: var(--am); color: #fff; }
.bdg-feat { background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); }
.bdg-sub  { background: rgba(232,160,32,.15); color: var(--am); border: 1px solid rgba(232,160,32,.25); }
.bdg-prem { background: rgba(13,115,119,.15); color: var(--ac); border: 1px solid rgba(13,115,119,.25); }
.bdg-vid  { background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.bdg-vid::before { content:''; width:0; height:0; border-style:solid; border-width:3.5px 0 3.5px 6px; border-color:transparent transparent transparent #fff; }

/* ── ARTICLE CARDS ── */
.card { background: var(--bg); display: flex; flex-direction: column; cursor: pointer; overflow: hidden; transition: background .15s; }
.card:hover { background: var(--bg2); }
.card.wide { grid-column: span 2; flex-direction: row; }
.card-media { overflow: hidden; flex-shrink: 0; position: relative; }
.card:not(.wide) .card-media { aspect-ratio: 16/9; }
.card.wide .card-media { width: 40%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .no-img { display: flex; align-items: center; justify-content: center; background: var(--bg3); height: 100%; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 2rem; color: var(--bd2); }
.media-badges { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 4px; }
.card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: .55rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--am); margin-bottom: .35rem; }
.card-title { font-family: 'Playfair Display', Georgia, serif; font-size: .9rem; font-weight: 700; line-height: 1.28; color: var(--tx); margin-bottom: .4rem; flex: 1; }
.card.wide .card-title { font-size: 1.15rem; }
.card-excerpt { font-size: .72rem; color: var(--tx2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .6rem; }
.card.wide .card-excerpt { -webkit-line-clamp: 3; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; border-top: 1px solid var(--bd); }
.card-meta { font-size: .58rem; color: var(--tx3); }
.card-tags { display: flex; gap: .2rem; flex-wrap: wrap; }
.tag { font-size: .55rem; padding: .1rem .38rem; background: var(--tg); color: var(--tx2); border-radius: 2px; }

/* ── ARTICLE GRID ── */
.articles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--bd); border: 1px solid var(--bd); margin-bottom: 1.5rem; }
.infeed-ad { grid-column: span 2; background: var(--bg2); border: 1px dashed var(--bd2); padding: .65rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.infeed-ad span { font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.infeed-ad small { font-size: .5rem; color: var(--bd2); font-family: monospace; }

/* ── PAYWALL ── */
.paywall-gate { grid-column: span 2; background: var(--bg2); border: 1px solid var(--bd); padding: 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.pw-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(232,160,32,.1); border: 1px solid rgba(232,160,32,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; color: var(--am); }
.pw-text h3 { font-family: 'Playfair Display', Georgia, serif; font-size: .95rem; font-weight: 700; margin-bottom: .3rem; color: var(--tx); }
.pw-text p { font-size: .75rem; color: var(--tx2); line-height: 1.55; }
.pw-cta { margin-left: auto; flex-shrink: 0; padding: .42rem 1.1rem; background: var(--am); color: #fff; border-radius: 4px; font-size: .75rem; font-weight: 600; white-space: nowrap; transition: background .15s; }
.pw-cta:hover { background: var(--am2); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: .35rem; margin-top: 1.5rem; }
.page-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: .82rem; font-weight: 600; color: var(--tx2); border: 1px solid var(--bd); background: var(--bg2); transition: all .15s; }
.page-btn:hover { background: var(--bg3); color: var(--tx); }
.page-btn.active { background: var(--ac); color: #fff; border-color: var(--ac); }
.page-btn.disabled { opacity: .25; pointer-events: none; }

/* ── SITE BODY LAYOUT ── */
.site-body { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 272px; border-left: 1px solid var(--bd); border-right: 1px solid var(--bd); }
.main-col { padding: 1.5rem; border-right: 1px solid var(--bd); }
.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ac); }
.sec-label { font-family: 'Playfair Display', Georgia, serif; font-size: .92rem; font-weight: 700; color: var(--tx); }
.sec-more { font-size: .62rem; color: var(--ac); font-weight: 600; }

/* ── SIDEBAR ── */
.sidebar { padding: 1.25rem; background: var(--bg2); }
.sw { margin-bottom: 1.25rem; }
.widget-title { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); margin-bottom: .65rem; padding-bottom: .35rem; border-bottom: 2px solid var(--ac); }
.sb-ad { background: var(--bg3); border: 1px dashed var(--bd2); border-radius: 3px; padding: .85rem; text-align: center; margin-bottom: 1.25rem; }
.sb-ad span { font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); display: block; }
.sb-ad small { font-size: .5rem; color: var(--bd2); font-family: monospace; }
.sa { display: flex; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--bd); cursor: pointer; transition: opacity .15s; }
.sa:last-child { border-bottom: none; }
.sa:hover { opacity: .7; }
.sa-thumb { width: 48px; height: 48px; border-radius: 3px; object-fit: cover; flex-shrink: 0; background: var(--bg4); }
.sa-no-thumb { width: 48px; height: 48px; border-radius: 3px; flex-shrink: 0; background: var(--bg4); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: .65rem; color: var(--bd2); }
.sa-title { font-family: 'Playfair Display', Georgia, serif; font-size: .73rem; font-weight: 700; line-height: 1.22; color: var(--tx); margin-bottom: .18rem; }
.sa-meta { font-size: .58rem; color: var(--tx3); }

/* ── NEWSLETTER WIDGET ── */
.nl-widget { background: var(--ac); border-radius: 6px; padding: 1.25rem; margin-bottom: 1.25rem; }
.nl-widget h3 { font-family: 'Playfair Display', Georgia, serif; font-size: .92rem; font-weight: 900; color: #fff; margin-bottom: .28rem; }
.nl-widget p { font-size: .7rem; color: rgba(255,255,255,.75); line-height: 1.5; margin-bottom: .8rem; }
.nl-widget input { width: 100%; padding: .4rem .62rem; border: none; border-radius: 4px; font-size: .78rem; background: #fff; color: #0F1A1A; margin-bottom: .45rem; }
.nl-widget button { width: 100%; padding: .4rem; border: none; border-radius: 4px; font-size: .73rem; font-weight: 700; background: var(--am); color: #fff; cursor: pointer; font-family: 'Inter', system-ui, sans-serif; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--bd); background: var(--bg2); padding: 1.25rem 1.5rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 800; letter-spacing: -.04em; }
.footer-logo em { color: #E8A020; font-style: normal; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .68rem; color: var(--tx3); transition: color .15s; }
.footer-links a:hover { color: var(--tx); }
.footer-copy { font-size: .65rem; color: var(--tx3); }

/* ── RESPONSIVE ── */
/* ── 1200px: slightly tighter nav labels ── */
@media (max-width: 1200px) {
  .nav-tab { font-size: .54rem; padding: .24rem .45rem; letter-spacing: .03em; }
}

/* ── 1024px: hide nav, show burger ── */
@media (max-width: 1024px) {
  .site-body { grid-template-columns: 1fr; }
  .sidebar { border-top: 1px solid var(--bd); display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .site-nav { display: none; }
  .nav-burger { display: flex; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .hero-side { display: none; }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .site-hdr-in { padding: 0 .85rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .card.wide { flex-direction: column; }
  .card.wide .card-media { width: 100%; aspect-ratio: 16/9; }
  .infeed-ad, .paywall-gate { grid-column: span 1; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .hdr-right .btn-subscribe { display: none; } /* hide subscribe on very small screens */
  .hdr-right .live-badge { display: none; }
}