/* Shared styles for content and tool pages (hand rankings, glossary, guides, calculators). */
:root {
  --bg: #030712; --bg-card: rgba(31, 41, 55, 0.4); --bg-input: rgba(0, 0, 0, 0.35);
  --primary: #10b981; --primary-glow: rgba(16, 185, 129, 0.35);
  --accent: #8b5cf6; --accent-glow: rgba(139, 92, 246, 0.25);
  --highlight: #f59e0b; --danger: #f87171;
  --text: #f9fafb; --text-muted: #9ca3af; --border: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #34d399; }
[hidden] { display: none !important; }

.ambient-glow { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.35; }
.glow-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%); }
.glow-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); }

/* Navigation (same as the other pages) */
.global-nav { position: sticky; top: 0; z-index: 1000; background: rgba(3, 7, 18, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.global-nav .nav-container { max-width: 1100px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.global-nav .logo { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; background: linear-gradient(to right, #fff, #9ca3af); -webkit-background-clip: text; background-clip: text; color: transparent; text-decoration: none; }
.global-nav .logo span { color: var(--primary); }
.global-nav .nav-links { display: flex; gap: 28px; list-style: none; }
.global-nav .nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.global-nav .nav-links a:hover { color: var(--text); }
.global-nav .mobile-menu-btn { display: none; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .global-nav .mobile-menu-btn { display: block; }
  .global-nav .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(3, 7, 18, 0.98); padding: 20px; text-align: center; border-bottom: 1px solid var(--border); gap: 15px; }
  .global-nav .nav-links.active { display: flex; }
}

/* Layout */
.container { max-width: 900px; width: 100%; margin: 0 auto; padding: 0 24px; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); padding-top: 24px; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.hero { text-align: center; padding: 40px 0 28px; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 20px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--primary); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 18px; text-transform: uppercase; }
.hero h1 { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 14px; letter-spacing: -1.5px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.08rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.section { padding: 32px 0 12px; }
.section h2 { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 12px; }
.section h3 { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 700; margin: 18px 0 6px; }
.section p, .section li { color: #d1d5db; }
.section p + p { margin-top: 12px; }
.section ul, .section ol { padding-left: 22px; margin: 10px 0; }
.section li { margin: 4px 0; }
.muted { color: var(--text-muted); }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin: 16px 0; }
.note { border-left: 3px solid var(--highlight); padding: 10px 16px; background: rgba(245, 158, 11, 0.07); border-radius: 0 12px 12px 0; margin: 16px 0; color: #e5e7eb; }

/* Data tables */
.table-scroll { overflow-x: auto; margin: 14px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* Mini playing cards */
.cards { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.pc { width: 36px; height: 50px; background: #fff; border-radius: 6px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 800; line-height: 1; color: #111827; box-shadow: 0 2px 6px rgba(0,0,0,0.45); font-size: 0.95rem; }
.pc i { font-style: normal; font-size: 0.95rem; }
.pc.r { color: #dc2626; }
.pc.dim { opacity: 0.35; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 14px; border: none; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.15s, filter 0.15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary { background: var(--primary); color: #022c22; box-shadow: 0 0 26px var(--primary-glow); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
input[type=text], input[type=number], select { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font: inherit; padding: 11px 13px; }
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.result { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; color: #6ee7b7; line-height: 1.1; }
.result small { display: block; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-top: 4px; }
.verdict { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.verdict.good { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.verdict.bad { background: rgba(239,68,68,0.12); color: #fca5a5; }
.err { color: #fca5a5; font-size: 0.9rem; margin-top: 8px; min-height: 1.2em; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; color: var(--primary); font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: '−'; }
details.faq p { color: #d1d5db; margin-top: 8px; }

/* Related links */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 40px; }
.related a { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; color: var(--text); text-decoration: none; font-weight: 700; transition: border-color 0.2s, transform 0.2s; }
.related a span { display: block; color: var(--text-muted); font-weight: 500; font-size: 0.86rem; margin-top: 2px; }
.related a:hover { border-color: rgba(16,185,129,0.45); transform: translateY(-2px); }

footer { text-align: center; padding: 32px 24px; color: var(--text-muted); border-top: 1px solid var(--border); font-size: 0.88rem; margin-top: auto; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .section h2 { font-size: 1.45rem; }
  .pc { width: 28px; height: 40px; font-size: 0.8rem; border-radius: 5px; }
  .pc i { font-size: 0.8rem; }
  /* Hand rankings table becomes one block per hand on phones. */
  table.ranks thead { display: none; }
  table.ranks tr { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  table.ranks td { border: none; padding: 0; }
  table.ranks td:nth-child(2) { grid-column: 2 / 4; }
  table.ranks td:nth-child(3) { grid-column: 2; }
  table.ranks td:nth-child(4) { grid-column: 3; align-self: center; font-weight: 700; color: #fde68a; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
}
details.faq summary::-webkit-details-marker { display: none; }
