/* ==========================================================================
   Energy Casino PL - Affiliate Review Site
   ========================================================================== */

:root {
  /* Brand palette extracted from official site & screenshots */
  --bg-base: #0c0c0e;
  --bg-elevated: #15151a;
  --bg-surface: #1d1d24;
  --bg-surface-2: #25252e;
  --border-soft: rgba(255, 209, 26, 0.12);
  --border-strong: rgba(255, 209, 26, 0.35);

  --gold: #ffd11a;
  --gold-deep: #f2c200;
  --gold-soft: #fde79a;
  --gold-glow: rgba(255, 209, 26, 0.45);

  --text-primary: #f4f4f5;
  --text-secondary: #b6b6c0;
  --text-muted: #82828c;

  --success: #4ade80;
  --warn: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 8px 28px rgba(255, 209, 26, 0.25);

  --container-max: 1200px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 209, 26, 0.06), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255, 209, 26, 0.04), transparent 55%),
    var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--gold-soft); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 1.95rem); margin-top: 2.2rem; }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.4rem); margin-top: 1.6rem; }
h4 { font-size: 1.08rem; margin-top: 1.2rem; }

p { margin: 0 0 1.05em; color: var(--text-primary); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { height: 36px; width: auto; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.94rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 209, 26, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 209, 26, 0.45);
  text-decoration: none;
  color: #0a0a0a;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 36px 0 60px;
  min-height: calc(100vh - var(--header-height) - 220px);
}

article > p:first-of-type {
  font-size: 1.08rem;
  color: var(--text-primary);
}

.breadcrumbs {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

/* ===== QUICK VERDICT BOX ===== */
.verdict-box {
  background: linear-gradient(140deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}
.verdict-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.verdict-box h3 {
  margin-top: 0;
  color: var(--gold);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.rating .score {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.rating .stars { font-size: 1.15rem; letter-spacing: 1px; }
.stars .filled { color: var(--gold); }
.stars .empty { color: rgba(255, 209, 26, 0.25); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 4px;
}
.pros-cons ul { list-style: none; padding: 0; margin: 8px 0 0; }
.pros-cons li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.pros h4 { color: var(--success); margin: 0; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cons h4 { color: var(--warn); margin: 0; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pros li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--success); font-weight: bold; }
.cons li::before { content: '−'; position: absolute; left: 0; top: 0; color: var(--warn); font-weight: bold; }

/* ===== CTA BUTTONS ===== */
.cta-block {
  text-align: center;
  margin: 30px 0;
  padding: 26px 22px;
  background: linear-gradient(135deg, rgba(255, 209, 26, 0.08), rgba(255, 209, 26, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.cta-block p { margin-bottom: 16px; font-size: 1.02rem; }

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #0a0a0a !important;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-gold);
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 209, 26, 0.4);
  text-decoration: none;
  color: #0a0a0a !important;
}

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; margin: 22px 0; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  font-size: 0.95rem;
}
thead {
  background: linear-gradient(135deg, rgba(255, 209, 26, 0.12), rgba(255, 209, 26, 0.04));
}
th {
  text-align: left;
  padding: 13px 16px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-strong);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 209, 26, 0.03); }

/* ===== CALLOUT / PROMO BOX ===== */
.callout {
  background: var(--bg-elevated);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout strong { color: var(--gold); }

.promo-code-box {
  background:
    linear-gradient(135deg, rgba(255, 209, 26, 0.18), rgba(255, 209, 26, 0.04)),
    var(--bg-elevated);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 26px 0;
  text-align: center;
}
.promo-code-box .label {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.promo-code-display {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  margin: 8px 0;
}
.promo-code-display code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: transparent;
}
.copy-btn {
  background: var(--gold);
  color: #0a0a0a;
  border: 0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  text-transform: uppercase;
  transition: background 0.15s ease;
  font-family: inherit;
}
.copy-btn:hover { background: var(--gold-soft); }
.copy-btn.copied { background: var(--success); color: #fff; }

.promo-code-box .offer-line {
  margin-top: 10px;
  font-weight: 600;
  color: var(--gold-soft);
  font-size: 1.05rem;
}

/* ===== STEPS ===== */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin: 24px 0;
}
.steps li {
  position: relative;
  padding: 16px 18px 16px 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  counter-increment: step-counter;
}
.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.steps li strong { color: var(--gold); display: block; margin-bottom: 2px; }

/* ===== FAQ ===== */
.faq-section { margin: 36px 0; }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  position: relative;
  padding-right: 50px;
  transition: background 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: rgba(255, 209, 26, 0.04); }
.faq-item[open] summary { background: rgba(255, 209, 26, 0.06); border-bottom: 1px solid var(--border-soft); }
.faq-item .faq-body { padding: 14px 20px 18px; color: var(--text-secondary); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ===== IMAGES ===== */
figure {
  margin: 26px auto;
  text-align: center;
}
figure img {
  width: 90%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-soft);
}
figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== LISTS ===== */
ul.feature-list, ol.feature-list { padding-left: 24px; margin: 14px 0 18px; }
ul.feature-list li, ol.feature-list li { margin-bottom: 8px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  padding: 36px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}
.footer-about .logo { margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--danger);
  color: var(--danger);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.affiliate-disclaimer {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-align: center;
}

/* ===== 404 ===== */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-page h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--gold);
  margin-bottom: 0;
  line-height: 1;
}
.error-page p { font-size: 1.1rem; color: var(--text-secondary); margin: 14px 0 30px; }
.error-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.error-links a {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}
.error-links a:hover { border-color: var(--gold); text-decoration: none; }

/* ===== TOC / on-page nav ===== */
.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 26px 0;
}
.toc h4 { margin: 0 0 10px; color: var(--gold); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text-secondary); font-size: 0.94rem; }
.toc a:hover { color: var(--gold); }

/* ===== HIGHLIGHT NUMBERS / STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat .label {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    flex-direction: column;
    padding: 24px 20px;
    gap: 4px;
    overflow-y: auto;
    border-top: 1px solid var(--border-soft);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }
  .main-nav a.active::after { display: none; }
  .header-cta { padding: 8px 14px; font-size: 0.82rem; }

  .footer-grid { grid-template-columns: 1fr; }

  figure img { width: 100%; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }

  .container { padding: 0 16px; }

  table { font-size: 0.88rem; }
  th, td { padding: 10px 12px; }

  .verdict-box { padding: 22px 18px; }
  .promo-code-display code { font-size: 1.15rem; }
}

@media (max-width: 420px) {
  .header-cta {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .logo img { height: 30px; }
}

/* Subtle entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
main > * { animation: fadeUp 0.5s ease both; }
