/* ═══════════════════════════════════════════
   LOTTOPICKER — Global Stylesheet
   Dark luxury · Gold accents · Playfair + DM Sans
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C97A;
  --gold-dim:     #7A6030;
  --gold-glow:    rgba(201,168,76,0.15);
  --bg:           #0E0E10;
  --surface:      #17171A;
  --surface2:     #1F1F24;
  --surface3:     #2A2A30;
  --border:       rgba(201,168,76,0.18);
  --border-soft:  rgba(255,255,255,0.07);
  --text:         #F2F0EB;
  --text-muted:   #8A8880;
  --text-dim:     #4A4A50;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    24px;
  --max-w:        860px;
  --max-w-wide:   1080px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.container      { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,16,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-logo span { color: var(--text); }

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--gold); background: var(--gold-glow); }

.nav-cta {
  background: var(--gold);
  color: #0E0E10;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── HAMBURGER (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 16px;
  border-top: 0.5px solid var(--border-soft);
}

.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 10px 14px; font-size: 14px; }

/* ── HERO (article pages) ── */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 0.5px solid var(--border-soft);
  margin-bottom: 48px;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 700px;
}

.page-hero h1 em { font-style: italic; color: var(--gold); }

.page-hero-meta {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 12px;
  font-weight: 300;
  line-height: 1.6;
}

/* ── ARTICLE BODY ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin: 40px 0 16px;
  color: var(--text);
  line-height: 1.3;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 10px;
  color: var(--text);
}

.article-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.8;
}

.article-body p strong { color: var(--text); font-weight: 500; }

.article-body ul, .article-body ol {
  color: var(--text-muted);
  padding-left: 20px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.8;
}

.article-body li { margin-bottom: 6px; }

.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 16px;
}

.article-body .callout {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.article-body .callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.article-body .callout-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.article-body .callout p { margin-bottom: 0; }

/* ── DATA TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border-bottom: 0.5px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--border-soft);
  vertical-align: top;
}

.data-table tr:hover td { background: var(--surface); }
.data-table td strong { color: var(--text); }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 88px; }

.sidebar-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.sidebar-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  margin-bottom: 14px;
}

.sidebar-links { list-style: none; }

.sidebar-links li { margin-bottom: 4px; }

.sidebar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  display: block;
  transition: color 0.2s;
  border-bottom: 0.5px solid var(--border-soft);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.sidebar-links a:hover { color: var(--gold); }
.sidebar-links li:last-child a { border-bottom: none; }

/* ── CTA BLOCK ── */
.cta-block {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.cta-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.cta-block p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold);
  color: #0E0E10;
  border: none;
  border-radius: 100px;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 0.5px solid var(--border-soft);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-ghost:hover { border-color: var(--border); color: var(--text); }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border-soft);
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--text);
}

.card:hover { border-color: var(--border); transform: translateY(-2px); }

.card-icon { font-size: 22px; margin-bottom: 12px; }

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.3;
}

.card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.card-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border-radius: 100px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

/* ── AD SLOT ── */
.ad-slot {
  background: var(--surface2);
  border: 0.5px dashed var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 40px 0;
}

/* ── FOOTER ── */
.site-footer {
  margin-top: 80px;
  border-top: 0.5px solid var(--border-soft);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 0.5px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface3);
  border: 0.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 13px;
  color: var(--gold);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ── CALCULATOR SHARED ── */
.calc-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.calc-field { margin-bottom: 20px; }

.calc-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.calc-input {
  background: var(--surface2);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.calc-input:focus { border-color: var(--gold-dim); }

.calc-select {
  background: var(--surface2);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.calc-select:focus { border-color: var(--gold-dim); }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.calc-result {
  background: var(--surface2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border-soft);
  font-size: 14px;
}

.calc-result-row:last-child { border-bottom: none; }
.calc-result-label { color: var(--text-muted); }
.calc-result-value { color: var(--text); font-weight: 500; }
.calc-result-value.highlight { color: var(--gold); font-size: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
