/*
Theme Name: The Block Child
Template: twentytwentyfive
Description: Dark crypto news theme inspired by The Block
Version: 2.0
Author: PolyScope
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1a1a1a;
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --text-faint:  #555555;
  --blue:        #2563eb;
  --green:       #16a34a;
  --red:         #dc2626;
  --line:        #222222;
  --line-strong: #333333;
}

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

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================
   CRYPTO TICKER
   ============================================ */
.crypto-ticker {
  position: sticky;
  top: 0;
  z-index: 1001;
  height: 30px;
  background: #000;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.crypto-ticker-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  height: 100%;
  padding: 0 20px;
  white-space: nowrap;
}
.crypto-coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.crypto-coin-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.crypto-coin-price {
  font-size: 10px;
  font-weight: 500;
  color: var(--text);
}
.crypto-coin-change {
  font-size: 10px;
  font-weight: 600;
}
.crypto-coin-change.positive { color: var(--green); }
.crypto-coin-change.negative { color: var(--red); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 30px;
  z-index: 999;
  height: 46px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
}
.site-logo a {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.site-logo .accent { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.main-nav a {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

.pro-access-btn {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--blue);
  color: #fff !important;
  border: none;
  padding: 7px 16px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.pro-access-btn:hover { opacity: 0.85; }

/* ============================================
   PAGE WRAPPER
   ============================================ */
.site-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 0 0;
}
.section-divider::before { display: none; }
.section-divider span {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  background: none;
  padding: 0;
}
.section-divider span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================
   ARTICLE META ATOMS
   ============================================ */
.article-category {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 8px;
}
.article-category:hover { opacity: 0.8; }

.article-date {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}
.article-title a { color: inherit; text-decoration: none; }
.article-title a:hover { color: var(--blue); }

/* ============================================
   FEATURED GRID
   ============================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: none;
}

.featured-main {
  border-right: 1px solid var(--line);
  padding: 36px 36px 36px 0;
}
.featured-main img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--bg-3);
}
.featured-main .article-title { font-size: 35px; line-height: 1.2; }

.featured-sidebar {
  display: flex;
  flex-direction: column;
}
.featured-sidebar-item {
  flex: 1;
  padding: 26px 0 26px 32px;
}
.featured-sidebar-item:not(:last-child) {
  border-bottom: 1px solid var(--line);
}
.featured-sidebar-item .article-title { font-size: 22px; }

/* ============================================
   NEWS GRID
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
}
.news-card {
  padding: 26px 26px 26px 0;
  background: none;
  border-right: 1px solid var(--line);
}
.news-card:last-child,
.news-card:nth-child(3n) { border-right: none; padding-right: 0; }
.news-card:not(:first-child) { padding-left: 26px; padding-right: 26px; }
.news-card:nth-child(3n) { padding-left: 26px; padding-right: 0; }
.news-card .article-title { font-size: 20px; }

/* ============================================
   HORIZONTAL LIST
   ============================================ */
.horizontal-list {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
}
.horizontal-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  background: none;
}
.horizontal-item img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  background: var(--bg-3);
}
.horizontal-item .article-title { font-size: 15px; }

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.ps-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
}
.ps-card:nth-child(3n) { border-right: none; }
.ps-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--bg-3);
}
.ps-card__img--placeholder {
  width: 100%;
  height: 180px;
  background: var(--bg-3);
}
.ps-card__body { padding: 16px 20px 20px; }
.ps-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ps-cat {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
}
.ps-cat a { color: inherit; }
.ps-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.ps-date {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
}
.ps-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.ps-card__title a { color: inherit; text-decoration: none; }
.ps-card__title a:hover { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 4px;
  padding: 24px 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}
.page-numbers {
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: 2px;
}
.page-numbers.current,
.page-numbers:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single .site-content { padding-top: 0; }

.single-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.post-eyebrow {
  margin-bottom: 14px;
}

.post-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: var(--text) !important;
  letter-spacing: -0.5px;
  margin: 0 0 20px !important;
}

.post-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.post-byline .author-name {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
}
.post-byline .sep { color: var(--line-strong); }

.post-featured-image {
  margin: 0 -24px 36px;
}
.post-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.post-featured-image figcaption {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 24px 0;
  font-style: italic;
}

.single .entry-content p {
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #d0d0d0;
  margin-bottom: 24px;
}
.single .entry-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 400;
}
.single .entry-content h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 14px;
}
.single .entry-content h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}
.single .entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single .entry-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 6px 0 6px 22px;
  margin: 32px 0;
  color: var(--text-muted);
  font-style: italic;
}
.single .entry-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.single .entry-content ul,
.single .entry-content ol {
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #d0d0d0;
  padding-left: 24px;
  margin-bottom: 24px;
}

.related-section {
  border-top: 2px solid var(--text);
  margin-top: 60px;
  padding-top: 20px;
}
.related-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.related-item {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}
.related-item:last-child { border-right: none; padding-right: 0; }
.related-item + .related-item { padding-left: 20px; }
.related-item .article-category { margin-bottom: 6px; }
.related-item .article-title { font-size: 15px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.footer-logo .accent { color: var(--blue); }
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-faint);
}

/* ============================================
   WORDPRESS OVERRIDES
   ============================================ */
.wp-block-post-title,
.entry-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
}
.wp-block-separator { border-color: var(--line) !important; }
.wp-block-post-featured-image img { border-radius: 0 !important; }
.wp-block-post-date { font-size: 11px !important; color: var(--text-muted) !important; }

.wp-theme-twentytwentyfive header.wp-block-template-part { display: none !important; }
.wp-theme-twentytwentyfive footer.wp-block-template-part { display: none !important; }

/* ============================================
   VISUALLY HIDDEN
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 8px; }
  .main-nav { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); }
  .featured-sidebar-item { padding-left: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:nth-child(2n) { border-right: none; }
  .news-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .ps-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .related-item { border-right: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card { border-right: none !important; border-bottom: 1px solid var(--line); }
  .ps-grid { grid-template-columns: 1fr; }
  .ps-card { border-right: none !important; }
  .post-title { font-size: 28px !important; }
  .horizontal-item { grid-template-columns: 80px 1fr; }
  .footer-top { flex-direction: column; gap: 20px; align-items: flex-start; }
}
