/* ============================================================
   MultiVideoPoker.com — IGT Game King Theme
   ============================================================ */

/* --- Variables --- */
:root {
  --bg-primary:   #0a1628;
  --bg-secondary: #0f1e38;
  --bg-card:      #1e3a5f;
  --bg-calc:      #162447;
  --bg-footer:    #060e1e;
  --red:          #e31937;
  --red-dark:     #b8142d;
  --red-bright:   #ff2244;
  --gold:         #ffd700;
  --gold-dark:    #d4a800;
  --gold-dim:     rgba(255, 215, 0, 0.15);
  --text:         #ffffff;
  --text-muted:   #a8c8e8;
  --border:       rgba(90, 106, 122, 0.5);
  --border-gold:  rgba(255, 215, 0, 0.3);
  --border-silver:#5a6a7a;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 2px 12px rgba(0,0,0,0.4);
  --shadow-card:  0 2px 8px rgba(0,0,0,0.35);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: #ffec60; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--gold);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg-secondary); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 14, 30, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-silver);
  padding: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}
.logo .logo-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}
.nav-links .btn-nav {
  background: var(--red);
  color: #ffffff !important;
  font-weight: 700;
  padding: 8px 18px;
}
.nav-links .btn-nav:hover {
  background: var(--red-bright);
  color: #ffffff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--red-bright);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227,25,55,0.4);
}
.btn-gold {
  background: var(--gold);
  color: #0a1628;
}
.btn-gold:hover {
  background: #ffec60;
  color: #0a1628;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #0a1628;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-silver);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: #8a9ab0;
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.87rem; }

/* --- Hero --- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1b3e 0%, #0a1628 50%, #060e1e 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(227,25,55,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,215,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,215,0,0.12);
  color: var(--gold);
  border: 1px solid rgba(255,215,0,0.35);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(255,215,0,0.2);
}
.hero-title span { color: var(--red); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .25s;
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255,215,0,0.15);
}
.card-gold {
  border-color: var(--border-gold);
}
.card-gold:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(255,215,0,0.2);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-silver);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  background: var(--bg-card);
}
thead tr { background: var(--red); }
thead th {
  padding: 14px 16px;
  text-align: left;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid rgba(90,106,122,0.4);
  transition: background .15s;
}
tbody tr:hover { background: rgba(255,215,0,0.06); }
tbody td {
  padding: 12px 16px;
  vertical-align: top;
  color: var(--text);
}

/* --- Strategy Chart --- */
.strategy-table {
  font-size: 0.88rem;
}
.strategy-table th {
  background: var(--red);
  font-size: 0.82rem;
}
.strategy-table tr:nth-child(odd) td { background: rgba(255,255,255,0.03); }
.rank-cell {
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  width: 50px;
}
.hand-cell { font-weight: 600; color: var(--text); }
.ev-cell {
  text-align: right;
  font-family: monospace;
  color: var(--gold);
  font-weight: 600;
}
.notes-cell { color: var(--text-muted); font-size: 0.83rem; }

/* Strategy priority tiers — Game King paytable colors */
.tier-gold   { color: var(--gold); font-weight: 700; }
.tier-white  { color: #ffffff; }
.tier-blue   { color: var(--text-muted); }

/* badge colors */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-green  { background: rgba(0,180,80,0.18);  color: #4de89a; }
.badge-gold   { background: rgba(255,215,0,0.15);  color: var(--gold); }
.badge-red    { background: rgba(227,25,55,0.15);   color: #ff6680; }
.badge-blue   { background: rgba(168,200,232,0.15); color: var(--text-muted); }

/* --- Calculator --- */
.calc-wrap {
  background: var(--bg-calc);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group select,
.form-group input {
  background: #0a1628;
  border: 1px solid var(--border-silver);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.97rem;
  width: 100%;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}
.form-group select { cursor: pointer; }

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.result-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  font-family: monospace;
}
.result-value.red   { color: #ff6680; }
.result-value.green { color: #4de89a; }

/* Chart */
.chart-container {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.chart-title {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
#outcomeChart {
  width: 100%;
  display: block;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; }

/* --- Page Header --- */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border-silver);
  background: linear-gradient(135deg, #0d1b3e 0%, #0a1628 100%);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* --- Info Box --- */
.info-box {
  background: rgba(30, 58, 95, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box.gold {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}
.info-box.red {
  background: rgba(227, 25, 55, 0.08);
  border-color: rgba(227, 25, 55, 0.3);
}
.info-box h4 { margin-bottom: 8px; font-size: 0.95rem; }

/* --- Footer --- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-silver);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--gold) !important;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(168,200,232,0.75);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(168,200,232,0.8);
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(90,106,122,0.4);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(168,200,232,0.6);
}
.footer-rg {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius);
  padding: 6px 14px;
}

/* --- Affiliate Disclosure --- */
.affiliate-disclosure {
  background: rgba(255,215,0,0.05);
  border-bottom: 1px solid rgba(255,215,0,0.18);
  padding: 9px 0;
  text-align: center;
}
.affiliate-disclosure p { font-size: 0.8rem; color: var(--text-muted); }
.affiliate-disclosure a { color: var(--gold); }

/* --- Responsible Gambling Warning Box --- */
.rg-box {
  background: rgba(227,25,55,0.07);
  border: 1px solid rgba(227,25,55,0.3);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 24px 0;
}
.rg-box h3 { color: #ff6680; margin-bottom: 10px; font-size: 1.1rem; }
.rg-box p  { color: var(--text-muted); font-size: 0.93rem; }

/* --- Breadcrumb (page-header variant) --- */
.page-header .breadcrumb { margin-bottom: 16px; }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Decorative casino card suit --- */
.suits {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 2.5rem;
  margin: 8px 0 24px;
  opacity: 0.25;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6,14,30,0.99);
    border-bottom: 1px solid var(--border-silver);
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }

  .hero { padding: 60px 0 56px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .calc-wrap { padding: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
}
