/* BetOnline Poker Bot — warm dark editorial theme, overrides Simple.css defaults */

:root,
:root[data-theme="light"] {
  /* Force warm-dark palette regardless of system pref */
  --bg: #14100b;
  --accent-bg: #1d1813;
  --text: #ece4d6;
  --text-light: #b7ab97;
  --border: #3a2f22;
  --accent: #d4af37;
  --accent-hover: #e7c25a;
  --accent-text: #14100b;
  --code: #e0a96d;
  --preformatted: #cdbfa6;
  --marked: #4a3a1c;
  --disabled: #2a2218;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100b;
    --accent-bg: #1d1813;
    --text: #ece4d6;
    --text-light: #b7ab97;
    --border: #3a2f22;
    --accent: #d4af37;
    --accent-hover: #e7c25a;
    --accent-text: #14100b;
    --code: #e0a96d;
    --preformatted: #cdbfa6;
    --marked: #4a3a1c;
    --disabled: #2a2218;
  }
}

html {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  scroll-behavior: smooth;
}

body {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background-image:
    radial-gradient(circle at 12% -8%, rgba(212, 175, 55, 0.07), transparent 42%),
    radial-gradient(circle at 95% 0%, rgba(224, 169, 109, 0.05), transparent 38%);
  background-attachment: fixed;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.18;
  color: var(--text);
}

h1 { font-size: 2.4rem; }
h2 {
  font-size: 1.6rem;
  margin-top: 2.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}
h3 { font-size: 1.2rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* ---- Header / nav ---- */
header {
  padding-top: 1rem;
  border-bottom: 1px solid var(--border);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  align-items: center;
  font-family: "Libre Franklin", system-ui, sans-serif;
}
header nav .brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
header nav .brand:hover { color: var(--accent); }
header nav .brand svg { width: 26px; height: 26px; }
header nav a.navlink {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
header nav a.navlink:hover { color: var(--accent); }
header nav .spacer { flex: 1 1 auto; min-width: 0.5rem; }

/* ---- Gold Telegram CTA button ---- */
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-text) !important;
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(231, 194, 90, 0.55);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.28);
  color: var(--accent-text) !important;
}

/* ---- News / changelog feed ---- */
.feed { list-style: none; padding: 0; margin: 2rem 0; }
.feed > li {
  border-left: 2px solid var(--border);
  padding: 0 0 1.8rem 1.4rem;
  margin: 0;
  position: relative;
}
.feed > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.feed time {
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.feed h3 { margin: 0.25rem 0 0.4rem; font-size: 1.25rem; }
.feed h3 a { text-decoration: none; }
.feed h3 a:hover { text-decoration: underline; }
.feed p { margin: 0; color: var(--text-light); }

/* ---- Post / article meta ---- */
.post-meta {
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.4rem;
}
.post-meta time { color: var(--accent); font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* ---- Key-points / callout block ---- */
.callout {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}
.callout h2, .callout h3 { border: 0; margin-top: 0; }

/* ---- Tables: ensure mobile overflow ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6rem 0; }
.table-wrap table { margin: 0; min-width: 34rem; }
table caption {
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: left;
  padding-bottom: 0.5rem;
}

/* ---- Timeline page ---- */
.timeline { list-style: none; padding: 0; margin: 2rem 0; }
.timeline > li {
  border-left: 2px solid var(--border);
  padding: 0 0 1.6rem 1.5rem;
  position: relative;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline .year {
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}
.timeline h3 { margin: 0.1rem 0 0.4rem; font-size: 1.1rem; }
.timeline p { margin: 0; }

/* ---- Reviewed-by author block ---- */
.reviewed-by {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 2.5rem 0 1rem;
}
.reviewed-by img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin: 0;
}
.reviewed-by .ra-name {
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
}
.reviewed-by .ra-role {
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reviewed-by p { margin: 0; }

/* ---- Inline CTA card ---- */
.cta-card {
  background: linear-gradient(135deg, var(--accent-bg), rgba(74, 58, 28, 0.35));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin: 2.2rem 0;
}
.cta-card h3 { margin-top: 0; }
.cta-card p { color: var(--text-light); margin-bottom: 1rem; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 0.85rem;
}
footer a { color: var(--text-light); }

/* ---- Code blocks readable on warm dark ---- */
pre {
  background: #0f0c08;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}

/* ---- Figures (hero photo + diagrams) ---- */
figure { margin: 1.8rem 0; }
figure img,
figure svg { max-width: 100%; height: auto; display: block; }
figure.hero { margin: 1.4rem 0 2rem; }
figure.hero img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}
figure.diagram svg {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}
figcaption {
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: left;
  margin-top: 0.55rem;
  line-height: 1.5;
}

/* ---- Responsive: never overflow ---- */
img { max-width: 100%; height: auto; }
@media (max-width: 720px) {
  body { padding: 0 0.9rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; }
  .reviewed-by { flex-direction: column; text-align: center; align-items: center; }
}
