/*
Theme Name: 90Predict Blog
Theme URI: https://www.90predict.com
Author: 90Predict
Description: Minimal, mobile-friendly blog theme for the 90Predict Articles section. Deliberately has no sidebar and no internal menu/footer links beyond Home and Articles. Posts show no author byline and no featured image.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ninetypredict-blog
*/

/* ================================================================
   DESIGN TOKENS — matches 90predict.com main site
================================================================ */
:root {
  --bg:       #050a12;
  --bg2:      #070d1a;
  --surface:  #0c1628;
  --surface2: #101f38;
  --border:   rgba(255,255,255,0.06);
  --border2:  rgba(255,255,255,0.12);
  --text:     #eef2ff;
  --muted:    #8a9fc0;
  --dim:      #4a5f7a;
  --green:    #00e87a;
  --cyan:     #17d4ff;
  --gold:     #f5c842;
  --grad-g:    linear-gradient(135deg, #00e87a 0%, #17d4ff 100%);
  --r:    18px;
  --r-sm: 12px;
  --r-xs: 8px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max: 900px;
  --nav-h: 66px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--r-sm); }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); color: var(--text); letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
  display: block; margin-bottom: 10px;
}
.lead { font-size: 1rem; color: var(--muted); line-height: 1.75; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  transition: all 0.2s ease; cursor: pointer;
}
.btn-outline { border: 1px solid var(--border2); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--surface); border-color: rgba(0,232,122,0.35); color: var(--green); }

/* ================================================================
   HEADER / NAV
================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(5,10,18,0.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad-g);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-mark svg circle, .logo-mark svg path { stroke: #021a0c; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); }
.logo-sub { font-family: var(--font-mono); font-size: 0.6rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 16px; border-radius: var(--r-xs); font-size: 0.88rem; font-weight: 600;
  color: var(--muted); transition: all 0.18s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link-active { color: var(--green); background: rgba(0,232,122,0.08); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: var(--r-xs);
  border: 1px solid var(--border); align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; border-top: 1px solid var(--border); background: var(--bg2);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-link {
  padding: 15px 20px; font-size: 0.95rem; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--border); transition: color 0.15s, background 0.15s;
}
.mobile-nav-link:hover { color: var(--text); background: var(--surface); }
.mobile-nav-link-active { color: var(--green); }

@media (max-width: 640px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
}

/* ================================================================
   BLOG HERO (Articles index)
================================================================ */
.blog-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.blog-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.blog-hero .lead { max-width: 560px; }

/* ================================================================
   POST GRID (no featured images, no author byline)
================================================================ */
.post-list-section { padding: 48px 0 72px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.post-card-date {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); display: block; margin-bottom: 10px;
}
.post-card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.post-card-title a { transition: color 0.18s; }
.post-card-title a:hover { color: var(--green); }
.post-card-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.post-card-link {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); transition: opacity 0.18s; align-self: flex-start;
}
.post-card-link:hover { opacity: 0.7; }

.no-posts { color: var(--muted); padding: 40px 0; text-align: center; }

.pagination-row { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.pagination-row .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-xs);
  border: 1px solid var(--border2); color: var(--muted); font-size: 0.85rem; font-weight: 600;
  transition: all 0.18s;
}
.pagination-row .page-numbers:hover,
.pagination-row .page-numbers.current { border-color: var(--green); color: var(--green); }

/* ================================================================
   SINGLE POST (no featured image, no author byline)
================================================================ */
.single-post { padding: 56px 0 72px; }
.single-post-wrap { max-width: 720px; }
.single-post-header { margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.single-post-title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.15; margin: 8px 0 12px; }
.single-post-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.06em; }

.single-post-content { font-size: 1.02rem; color: #d4dcef; line-height: 1.85; }
.single-post-content p { margin-bottom: 20px; }
.single-post-content h2 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 14px; }
.single-post-content h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 12px; }
.single-post-content ul, .single-post-content ol { margin: 0 0 20px 22px; color: #d4dcef; }
.single-post-content li { margin-bottom: 8px; }
.single-post-content a { color: var(--green); border-bottom: 1px solid rgba(0,232,122,0.3); }
.single-post-content a:hover { border-color: var(--green); }
.single-post-content blockquote {
  border-left: 3px solid var(--green); padding: 4px 0 4px 18px; margin: 24px 0;
  color: var(--muted); font-style: italic;
}
.single-post-content img { margin: 24px 0; }
.single-post-content figure { margin: 24px 0; }
.single-post-content pre, .single-post-content code {
  font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 2px 6px; font-size: 0.85em;
}
.single-post-content pre { padding: 16px; overflow-x: auto; }

.single-post-back { margin-top: 40px; }

/* ================================================================
   FOOTER — no internal links besides gambling policy text, no nav columns
================================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 20px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.footer-brand .logo-name { display: block; margin-bottom: 8px; }
.footer-tagline { font-size: 0.85rem; color: var(--muted); max-width: 420px; }
.footer-awareness {
  background: rgba(245,200,66,0.04); border: 1px solid rgba(245,200,66,0.12);
  border-radius: var(--r-sm); padding: 18px 20px;
}
.footer-awareness strong { display: block; font-size: 0.85rem; color: var(--gold); margin-bottom: 8px; }
.footer-awareness p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.footer-awareness-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-awareness-links a {
  font-size: 0.78rem; font-weight: 600; color: var(--gold);
  border-bottom: 1px solid rgba(245,200,66,0.3);
}
.footer-awareness-links a:hover { border-color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; }
.footer-copy { font-family: var(--font-mono); font-size: 0.74rem; color: var(--dim); letter-spacing: 0.03em; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 48px 0 32px; }
  .post-list-section { padding: 36px 0 56px; }
  .single-post { padding: 40px 0 56px; }
}
