/* ── Guides CSS — Unified with Blackjack 3000 design language ── */
:root {
  --bg: #0d0221;
  --panel: rgba(18, 4, 48, 0.88);
  --text: #f0e6ff;
  --text-dim: #9a8cbe;
  --accent: #00fff5;
  --accent-hover: #72fff8;
  --accent-2: #ff2a6d;
  --success: #39ff14;
  --gold: #f5a623;
  --border: rgba(180, 100, 255, 0.22);
  --glass: rgba(180, 100, 255, 0.04);
  --glass-border: rgba(180, 100, 255, 0.10);
  --font-head: 'Orbitron', sans-serif;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'VT323', monospace;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-main);
  color: var(--text);
  background: radial-gradient(ellipse at 20% 0%, rgba(255, 42, 109, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 100%, rgba(0, 255, 245, 0.06) 0%, transparent 50%),
              var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Topbar / Header ── */
.topbar {
  background: rgba(13, 2, 33, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 42, 109, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(255, 42, 109, 0.12);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.brand {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 255, 245, 0.6), 0 0 30px rgba(0, 255, 245, 0.3);
}

.site-tagline {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.6px;
}

.site-cta {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 245, 0.35);
  background: linear-gradient(135deg, rgba(0, 255, 245, 0.18), rgba(184, 41, 221, 0.2));
  color: #e9f2ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.site-cta:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 245, 0.18);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(18, 4, 48, 0.6);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.nav a:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 245, 0.08);
}

.nav a.active {
  border-color: var(--accent);
  background: rgba(0, 255, 245, 0.12);
  color: var(--accent);
}

/* ── Hero ── */
.hero {
  padding: 38px 0 22px;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: 1px;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 245, 0.3);
}

.hero p {
  margin: 0;
  max-width: 740px;
  color: var(--text-dim);
}

.cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #00ccaa);
  color: #0d0221;
  box-shadow: 0 2px 12px rgba(0, 255, 245, 0.25);
}

.button.primary:hover {
  box-shadow: 0 4px 20px rgba(0, 255, 245, 0.4);
}

.button.secondary {
  border: 1px solid var(--border);
  background: rgba(18, 4, 48, 0.6);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 245, 0.08);
}

/* ── Content Grid ── */
.content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
  padding: 8px 0 44px;
}

.main {
  display: grid;
  gap: 14px;
}

/* ── Cards ── */
.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(6px);
}

.card h2 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  color: var(--text);
}

.card p,
.card li {
  color: var(--text-dim);
}

.card ul,
.card ol {
  margin: 0;
  padding-left: 22px;
}

/* ── Guide Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.mini {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(18, 4, 48, 0.5);
  padding: 12px;
  transition: border-color 0.2s, transform 0.15s;
}

.mini:hover {
  border-color: rgba(0, 255, 245, 0.35);
  transform: translateY(-2px);
}

.mini h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.mini h3 a {
  text-decoration: none;
  color: var(--text);
}

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

.small {
  font-size: 14px;
  color: var(--text-dim);
}

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

th {
  background: rgba(18, 4, 48, 0.9);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Forms ── */
label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--text);
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 2, 33, 0.9);
  color: var(--text);
  padding: 10px;
  font-size: 14px;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 245, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.result {
  margin-top: 10px;
  border: 1px solid rgba(0, 255, 245, 0.35);
  background: rgba(0, 255, 245, 0.06);
  border-radius: 10px;
  padding: 10px;
  color: var(--accent);
}

/* ── Sidebar ── */
.sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 60px;
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.guide-list a {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 4, 48, 0.5);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.guide-list a:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 245, 0.06);
  color: var(--accent);
}

/* ── Sidebar CTA card ── */
.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-list-cta {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 255, 245, 0.15), rgba(255, 42, 109, 0.10));
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.guide-list-cta:hover {
  background: linear-gradient(135deg, rgba(0, 255, 245, 0.25), rgba(255, 42, 109, 0.18));
  transform: translateY(-1px);
}

.guide-list-back {
  display: block;
  text-align: center;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.guide-list-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Site Footer (unified with main site) ── */
.site-footer {
  background: rgba(13, 2, 33, 0.95);
  border-top: 2px solid var(--success);
  padding: 24px 20px 32px;
  text-align: center;
  color: #b0b0b0;
  font-size: 0.9em;
  margin-top: 20px;
}

.footer-content {
  max-width: 1060px;
  margin: 0 auto;
}

.footer-content p {
  margin: 8px 0;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-guides {
  margin-bottom: 12px;
}

.footer-guides strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Author byline */
.byline {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  opacity: 0.85;
}

.byline a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(165, 191, 220, 0.4);
}

/* Rich footer */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.8;
}

.footer-legal a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  opacity: 0.7;
}

/* Single-column layout (about, blog) */
.content.content-single {
  grid-template-columns: 1fr;
  max-width: 740px;
}

@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-tagline,
  .site-cta {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
}
