/* Energy Casino PL — Affiliate review site */
:root {
  --bg: #0d0d12;
  --bg-elev: #16161e;
  --bg-card: #1c1c26;
  --bg-soft: #22222e;
  --border: #2a2a38;
  --text: #ffffff;
  --text-muted: #b8b8c4;
  --text-dim: #8a8a96;
  --accent: #f5d022;
  --accent-hover: #ffe14a;
  --accent-dark: #d4af0e;
  --success: #4ade80;
  --danger: #ef4444;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --shadow-soft: 0 2px 10px rgba(0,0,0,.25);
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* === HEADER === */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 38px; width: auto; }
.main-nav { display: flex; gap: 4px; flex: 1; margin-left: 24px; flex-wrap: nowrap; }
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
.main-nav a.active { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform .15s, background .15s, box-shadow .15s;
  text-decoration: none;
  letter-spacing: .2px;
}
.btn-primary {
  background: var(--accent);
  color: #1a1a22;
  box-shadow: 0 2px 0 var(--accent-dark);
}
.btn-primary:hover { background: var(--accent-hover); color: #1a1a22; transform: translateY(-1px); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 9px 20px;
}
.btn-outline:hover { background: var(--accent); color: #1a1a22; text-decoration: none; }
.btn-large { padding: 16px 36px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

.header-cta { margin-left: auto; flex-shrink: 0; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.78);
  z-index: 200;
}
.mobile-drawer.open { display: block; }
.drawer-panel {
  position: absolute;
  top: 0; left: 0;
  width: 86%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-elev);
  padding: 22px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
}
.drawer-panel .logo-link { margin-bottom: 22px; }
.drawer-panel a {
  display: block;
  color: var(--text);
  padding: 12px 10px;
  font-weight: 600;
  border-radius: 6px;
  font-size: 15px;
}
.drawer-panel a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
.drawer-panel .btn { margin-top: 16px; display: block; text-align: center; }

/* === MAIN === */
main { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px 60px; }

h1 { font-size: 38px; line-height: 1.18; margin: 0 0 18px; font-weight: 800; letter-spacing: -.4px; }
h2 { font-size: 28px; margin: 44px 0 16px; font-weight: 700; letter-spacing: -.2px; }
h3 { font-size: 21px; margin: 28px 0 12px; font-weight: 700; }
h4 { font-size: 17px; margin: 20px 0 8px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--text-muted); }
strong { color: var(--text); font-weight: 700; }

ul, ol { color: var(--text-muted); padding-left: 22px; margin: 0 0 18px; }
ul li, ol li { margin-bottom: 8px; }

/* breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* hero */
.hero {
  background: linear-gradient(135deg, #1a1530 0%, #2a1a4a 60%, #3a1f5e 100%);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid #3a2860;
}
.hero::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(245,208,34,.18), transparent 70%);
  pointer-events: none;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 17px; color: #d8d4f0; max-width: 720px; }

/* quick verdict box */
.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 28px 0 32px;
  box-shadow: var(--shadow-soft);
}
.verdict-box h2 { margin-top: 0; }
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 18px 0;
}
.verdict-grid h4 { margin: 0 0 10px; }
.verdict-grid ul { margin: 0; padding-left: 20px; }
.pros li::marker { color: var(--success); }
.cons li::marker { color: var(--danger); }

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rating-score {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}
.rating-stars {
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 2px;
}
.rating-meta { color: var(--text-dim); font-size: 14px; }

/* tables */
.table-wrap { overflow-x: auto; margin: 18px 0 22px; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* callout */
.callout {
  background: linear-gradient(135deg, rgba(245,208,34,.08), rgba(245,208,34,.02));
  border: 1px solid rgba(245,208,34,.35);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
  color: var(--text-muted);
}
.callout strong { color: var(--accent); }
.callout-warn {
  background: rgba(239,68,68,.07);
  border-color: rgba(239,68,68,.35);
}
.callout-warn strong { color: #ff8585; }

/* steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--text-muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #1a1a22;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.steps li strong { display: block; color: var(--text); margin-bottom: 4px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #1f1840 0%, #382060 100%);
  border: 1px solid #4a2d80;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 36px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(245,208,34,.13), transparent 50%);
  pointer-events: none;
}
.cta-banner h3 { margin-top: 0; font-size: 24px; }
.cta-banner p { font-size: 16px; max-width: 640px; margin: 0 auto 20px; }

/* promo code box */
.promo-box {
  background: var(--bg-card);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.promo-box .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-dim);
}
.promo-code {
  background: #0a0a10;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 2px;
  border: 1px solid var(--border);
  user-select: all;
}
.copy-btn {
  background: var(--accent);
  color: #1a1a22;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}
.copy-btn:hover { background: var(--accent-hover); }
.copy-btn.copied { background: var(--success); color: #fff; }

/* FAQ */
.faq-list { margin: 22px 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* image figures */
figure {
  margin: 26px auto;
  text-align: center;
}
figure img {
  width: 90%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin-top: 0; font-size: 18px; }
.card p { font-size: 14px; }
.card a.card-link { color: var(--accent); font-weight: 600; font-size: 14px; }

/* === FOOTER === */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 38px 20px 24px;
  margin-top: 50px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}
.footer-grid h4 { color: var(--accent); margin-top: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--accent); }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}
.footer-disclaimer .badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.badge-18 {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}
.responsible-note { color: var(--text-muted); }

/* responsive */
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .verdict-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero { padding: 26px 20px; }
}
@media (max-width: 600px) {
  main { padding: 22px 16px 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  figure img { width: 100%; }
  .verdict-box { padding: 20px 18px; }
  .promo-box { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-banner { padding: 24px 18px; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .header-inner { padding: 12px 14px; gap: 12px; }
  .logo-link img { height: 32px; }
  table { font-size: 13.5px; }
  th, td { padding: 10px 8px; }
}
