/* =========================================================
   Energy Casino Polska — Affiliate Review Stylesheet
   Brand palette: deep navy/black + electric yellow accents
   ========================================================= */

:root {
  --bg: #0d0e15;
  --bg-elev: #15171f;
  --bg-card: #1c1f2a;
  --bg-soft: #232636;
  --border: #2c2f3d;
  --text: #f4f5f7;
  --text-muted: #a8acba;
  --text-dim: #757a8a;
  --accent: #ffe600;
  --accent-hover: #fff14d;
  --accent-dark: #d4bf00;
  --danger: #ff4d6d;
  --success: #2ecc71;
  --link: #ffe600;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding-top: var(--header-h);
}

section { padding: 48px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 36px 0 16px; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 28px 0 12px; }
h4 { font-size: 1.08rem; margin: 22px 0 10px; }

p { margin-bottom: 18px; color: var(--text); }
p + p { margin-top: 0; }

a { color: var(--link); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

ul, ol { margin: 0 0 20px 22px; }
li { margin-bottom: 8px; }

strong { color: #fff; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13, 14, 21, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
}
.logo img { height: 36px; width: auto; }

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 24px;
  align-items: center;
}
.nav-list li { margin: 0; }
.nav-list a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}
.nav-list a:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav-list a.active { color: var(--accent); }

.header-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.header-cta:hover {
  background: var(--accent-hover);
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 230, 0, 0.35);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: all 0.25s;
}
#nav-toggle { display: none; }
#nav-toggle:checked ~ .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle:checked ~ .menu-toggle span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at top, #1f1530 0%, var(--bg) 60%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border);
}
.hero h1 { color: #fff; }
.hero h1 span { color: var(--accent); }
.hero .lede {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 28px;
}

/* ---------- Quick verdict box ---------- */
.verdict-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  box-shadow: var(--shadow-md);
}
.verdict-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.rating-score {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.rating-stars { font-size: 1.15rem; color: var(--accent); letter-spacing: 2px; }
.verdict-box h3,
.verdict-box .box-subtitle { margin-top: 0; color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.01em; }
.verdict-box ul { list-style: none; margin: 0; padding: 0; }
.verdict-box ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}
.cons li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 800;
}

/* ---------- CTA buttons ---------- */
.cta-block {
  text-align: center;
  margin: 36px 0;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.08), rgba(255, 230, 0, 0.02));
  border: 1px solid rgba(255, 230, 0, 0.22);
  border-radius: var(--radius-lg);
}
.cta-block h3,
.cta-block .cta-title { color: var(--accent); margin-top: 0; font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.01em; }
.cta-block p { margin-bottom: 18px; color: var(--text-muted); }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000 !important;
  padding: 14px 36px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 230, 0, 0.4);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}
thead { background: var(--bg-soft); }
th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 230, 0, 0.03); }

/* ---------- Promo code box ---------- */
.promo-box {
  background: linear-gradient(135deg, #2a1f00, #1f1b08);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.promo-box .promo-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.promo-code-display {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  user-select: all;
}
.copy-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.18s;
}
.copy-btn:hover { background: var(--accent-hover); }
.copy-btn.copied { background: var(--success); color: #fff; }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 64px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ---------- Callout boxes ---------- */
.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
}
.callout.warn { border-left-color: var(--danger); }
.callout strong { color: var(--accent); }
.callout.warn strong { color: var(--danger); }

/* ---------- Images ---------- */
figure {
  margin: 26px auto;
  text-align: center;
}
figure img {
  width: 90%;
  height: auto;
  max-width: 760px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: block;
  margin: 0 auto;
}
figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- FAQ accordion ---------- */
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  position: relative;
  list-style: none;
  padding-right: 48px;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-content { padding: 18px 22px; color: var(--text-muted); }
.faq-content p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 18px 0;
  padding-top: 12px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: var(--text-dim); }

/* ---------- Cards grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card a { color: var(--accent); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: #07080d;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; max-width: 420px; }
.footer-col h4,
.footer-col-title { color: #fff; margin-bottom: 14px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--danger);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
}
.responsible-notice {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.responsible-notice strong { color: var(--danger); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .verdict-box { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  .menu-toggle { display: block; }
  .nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.25s;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }
  #nav-toggle:checked ~ .nav-wrap { transform: translateY(0); }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-list a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  section { padding: 36px 0; }
  .container { padding: 0 16px; }
  figure img { width: 100%; }
  .verdict-box, .cta-block { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-box { flex-direction: column; align-items: flex-start; }
  .promo-code-display { font-size: 1.25rem; }
  th, td { padding: 10px 12px; font-size: 0.92rem; }
  .header-cta { padding: 8px 14px; font-size: 0.8rem; }
  .logo span { display: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-muted); }
.highlight { color: var(--accent); font-weight: 700; }
