/* ======================================================
   CasinoDen.vip — Global Stylesheet
   Design adapted from casinodeu.de:
   dark navy base, gold + teal accents, lime ranking touches,
   Chakra Petch display headings, Inter body, signature
   horizontal casino-ranking cards.
   ====================================================== */

/* Twemoji images inside h1 — runtime replacement of flag emoji characters */
h1 img.emoji {
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: middle;
  margin-left: 0.12em;
}

:root {
  --navy:   #061744;
  --navy-2: #071744;
  --navy-3: #0b1f58;
  --ink:    #050d2d;
  --card:   #101b50;

  --gold:   #ffd875;
  --gold-2: #e5ad36;
  --teal:   #36d177;
  --teal-2: #14a44b;
  --lime:   #ff7a1a;

  --text:      #172033;
  --text-dark: #0e2355;
  --muted:     #617089;
  --paper:     #ffffff;
  --bg:        #eef1f7;
  --line:      #dfe5f2;

  --radius:   18px;
  --radius-lg: 26px;
  --maxw: 1100px;
  --shadow: 0 16px 50px rgba(24,36,70,.12);
  --shadow-strong: 0 18px 45px rgba(2,8,32,.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: "Chakra Petch", Inter, Arial, sans-serif; letter-spacing: -.01em; }

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: linear-gradient(90deg, #050d2d 0%, #071744 45%, #0b1f58 100%);
  border-bottom: 1px solid rgba(243,194,88,.42);
  box-shadow: 0 16px 44px rgba(0,0,0,.34);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  max-width: none;            /* full-width header like casinodeu.de */
  padding: 10px clamp(20px, 4vw, 56px);
}
.logo { display: flex; align-items: center; min-width: 0; flex: 0 0 auto; }
.logo img { height: 56px; width: auto; max-width: 280px; object-fit: contain; display: block; }

.nav { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: #eaf0ff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  transition: background .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a.active {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #061744;
  border-color: rgba(255,216,117,.65);
  box-shadow: 0 8px 18px rgba(229,173,54,.25);
}
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 900; font-size: 13px;
  padding: 9px 13px; border-radius: 999px;
  border: 1px solid rgba(46,216,157,.45);
  background: rgba(46,216,157,.12);
}
.lang-pill .flag { line-height: 1; }
.lang-pill img.emoji { height: 1em; width: auto; vertical-align: -2px; }

.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 42px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  font-size: 20px; font-weight: 900;
  cursor: pointer;
}

/* ---------- Continuous dark top zone (hero + casino list share one bg) ---------- */
.dark-top {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(255,216,117,.16), transparent 30%),
    radial-gradient(circle at 85% 3%, rgba(46,216,157,.18), transparent 32%),
    linear-gradient(180deg, #050a1a 0%, #071744 34%, #07123c 64%, #050d2d 100%);
}
.dark-top::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .3;
  z-index: 0;
  pointer-events: none;
}
.dark-top > * { position: relative; z-index: 1; }

/* ---------------- Hero ---------------- */
.page-hero {
  position: relative;
  padding: 44px 16px 34px;
  background: transparent;
}
.page-hero .blob { display: none; } /* decorative spans from source markup, not needed */
.page-hero .container { position: relative; z-index: 1; }

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #aebbe0; margin-bottom: 16px; font-weight: 700; }
.breadcrumbs a { color: var(--gold); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: #4f5f8c; }

.page-hero h1 {
  color: #fff;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.04;
  margin: 0 0 14px;
  max-width: 980px;
  text-shadow: 0 10px 35px rgba(0,0,0,.35);
}
.page-hero .lead {
  max-width: 900px;
  margin: 0;
  color: #dbe5ff;
  font-size: 18px;
  line-height: 1.8;
}
.lead-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead-clamp.is-expanded { -webkit-line-clamp: unset; overflow: visible; }
.read-more-btn {
  margin-top: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-family: Inter, sans-serif;
  cursor: pointer;
}
.read-more-btn:hover { background: rgba(46,216,157,.12); }

/* ---------------- Casino ranking band ---------------- */
section.container:has(.casino-list) {
  max-width: none;
  margin: 0;
  padding: 30px 16px 48px;
  background: transparent;
}
.list-heading {
  max-width: var(--maxw);
  margin: 0 auto 16px;
  text-align: center;
  color: #fff;
  font-size: clamp(19px, 3.2vw, 30px);
  line-height: 1.1;
}
.list-heading::after {
  content: "";
  display: block;
  width: 88px; height: 5px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.casino-list { display: grid; gap: 16px; width: 100%; max-width: var(--maxw); margin: 0 auto; }

.casino-card {
  display: grid;
  grid-template-columns: 210px 1fr 250px 178px;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid rgba(236,186,82,.40);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-strong);
}
.casino-card:first-child {
  border: 2px solid var(--lime);
  box-shadow: 0 0 0 4px rgba(255,122,0,.12), 0 22px 58px rgba(2,8,32,.34);
  margin-top: 8px;
}
.casino-card:first-child::after {
  content: "★ TOP AANBOD";
  position: absolute;
  top: -14px; left: 64px;
  background: linear-gradient(180deg, #ffb24d, #ff7a00);
  color: #061744;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 12px 26px rgba(255,122,0,.34);
  white-space: nowrap;
  z-index: 5;
}

.rank-badge {
  position: absolute;
  top: -12px; left: -10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ffa23a, #ff6a00);
  color: #071744;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 900;
  font-size: 17px;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 6;
}

.casino-thumb {
  min-height: 96px;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #071744, #101b50);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  padding: 14px;
}
.casino-thumb img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }

.casino-info { display: grid; gap: 8px; align-content: center; }
.casino-info h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-dark);
}
.casino-info .rating {
  display: inline-block;
  width: max-content;
  font-size: 13px;
  font-weight: 900;
  color: #b8860b;
  background: #fff7dd;
  border: 1px solid #f1cf77;
  border-radius: 999px;
  padding: 3px 10px;
}
.casino-features { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; }
.casino-features li {
  position: relative;
  padding-left: 23px;
  font-size: 14px;
  line-height: 1.3;
  color: #25314a;
}
.casino-features li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  color: var(--teal-2);
  font-weight: 900;
}

.casino-bonus {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 78px;
  gap: 4px;
  background: linear-gradient(135deg, #fff8df, #ffffff);
  border: 1px solid var(--gold-2);
  border-radius: 16px;
  padding: 12px;
}
.casino-bonus .bonus-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 900; color: #9b7b1f;
}
.casino-bonus .bonus-amount {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 900; font-size: 16px; line-height: 1.2;
  color: var(--navy);
}

.casino-cta { display: flex; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Chakra Petch", Inter, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 15px 18px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, var(--teal), var(--teal-2));
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 26px rgba(46,216,157,.25);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-primary::after { content: " →"; font-weight: 900; }

/* ---------------- Article / content ---------------- */
.content { background: var(--bg); padding: 44px 16px; }
.content + .content { padding-top: 0; }
.content .container {
  max-width: var(--maxw);
  background: var(--paper);
  border: 1px solid #e1e6f0;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.content .container > section { margin: 26px 0; }
.content .container > section:first-child { margin-top: 0; }

.content h2 {
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.1;
  color: var(--navy);
  margin: 8px 0 14px;
}
.content h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--text-dark);
  margin: 26px 0 10px;
}
.content p { margin: 0 0 16px; font-size: 17px; line-height: 1.75; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; }
.content li { margin: 0 0 9px; font-size: 17px; line-height: 1.7; }
.content strong { color: var(--text-dark); }
.content a { color: #174bb8; font-weight: 700; }
.content a:hover { text-decoration: underline; }

figure { margin: 18px 0 4px; }
figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; box-shadow: 0 10px 30px rgba(0,0,0,.20); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0 30px; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(17,29,79,.08);
  font-size: 15px;
  min-width: 560px;
}
thead th {
  background: linear-gradient(135deg, #071744, #10276a);
  color: #fff;
  text-align: left;
  font-weight: 900;
  padding: 14px 16px;
}
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: #f8faff; }
td:first-child { font-weight: 800; color: var(--text-dark); }

/* Responsible-gambling callout */
.content .container:has(.callout) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-lg);
  padding: 24px;
}
.callout.is-warning {
  background: linear-gradient(135deg, #fff8e6, #ffffff);
  border: 2px solid #f0c24d;
  box-shadow: 0 16px 45px rgba(17,29,79,.1);
}
.callout h3 { margin: 0 0 4px; color: var(--navy); font-size: 22px; }
.callout p { margin: 0; color: #26344d; line-height: 1.7; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: linear-gradient(180deg, #071744 0%, #07123c 55%, #050d2d 100%);
  color: #d7ddf3;
  border-top: 1px solid rgba(243,194,88,.30);
  padding: 40px 16px 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto 22px;
}
.footer-grid .logo img { height: 52px; }
.footer-grid p { color: #c2cbe8; line-height: 1.6; font-size: 15px; }
.footer-grid h3 { color: var(--gold); font-size: 16px; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid li a { color: #cdd6f1; font-size: 14.5px; font-weight: 600; }
.footer-grid li a:hover { color: #fff; }
.responsible-badge {
  display: inline-block;
  border: 1px solid rgba(46,216,157,.45);
  background: rgba(46,216,157,.10);
  color: #bdf4dd;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #9aa6cf;
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.casino-card.reveal { transition-delay: .04s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 12px; right: 12px;
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    background: #071744;
    border: 1px solid rgba(243,194,88,.35);
    border-radius: 16px;
    padding: 12px;
    display: none;
  }
  .site-header { position: relative; }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .lang-pill { justify-content: center; }

  .casino-card {
    grid-template-columns: 150px 1fr;
    grid-template-areas:
      "logo info"
      "bonus bonus"
      "cta cta";
    gap: 14px;
  }
  .casino-thumb { grid-area: logo; }
  .casino-info { grid-area: info; }
  .casino-bonus { grid-area: bonus; }
  .casino-cta { grid-area: cta; }

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

@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { min-height: 66px; }
  .logo img { height: 44px; max-width: 200px; }
  .page-hero { padding: 26px 14px 20px; }
  .page-hero .lead { font-size: 16px; }

  section.container:has(.casino-list) { padding: 16px 12px 34px; }
  .list-heading { margin-bottom: 12px; }
  .casino-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "info"
      "bonus"
      "cta";
    text-align: center;
    padding: 20px 14px 14px;
  }
  .casino-info { justify-items: center; }
  .casino-info .rating { margin: 0 auto; }
  .casino-features { text-align: left; max-width: 280px; margin: 0 auto; }
  .casino-card:first-child::after { left: 50%; transform: translateX(-50%); }

  .content { padding: 28px 12px; }
  .content .container { padding: 24px 18px; border-radius: 22px; }
  .content p, .content li { font-size: 16px; line-height: 1.66; }
  table { min-width: 0; }
  .table-wrap { -webkit-overflow-scrolling: touch; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Darker top zone on mobile (hero reads brighter on narrow viewports) */
@media (max-width: 680px) {
  .dark-top {
    background:
      radial-gradient(circle at 16% 3%, rgba(255,216,117,.10), transparent 34%),
      radial-gradient(circle at 88% 2%, rgba(46,216,157,.12), transparent 36%),
      linear-gradient(180deg, #04081a 0%, #061027 40%, #060f2c 70%, #050d2d 100%);
  }
}

/* ---------------- Sticky offer bar (SpinAlto) ---------------- */
.sticky-offer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 20px);
  width: min(980px, calc(100% - 28px));
  z-index: 60;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, #071744, #13256a);
  border: 1px solid rgba(243,194,88,.45);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
body.show-sticky-offer .sticky-offer { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.sticky-stars { color: #ffd447; font-size: 16px; letter-spacing: 1px; white-space: nowrap; }
.sticky-logo {
  height: 54px; width: 116px;
  display: flex; align-items: center; justify-content: center;
  background: #101b50; border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 8px;
}
.sticky-logo img { max-height: 38px; max-width: 100%; width: auto; object-fit: contain; }
.sticky-copy { display: grid; gap: 1px; min-width: 0; }
.sticky-label { color: var(--lime); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sticky-copy strong { font-family: "Chakra Petch", sans-serif; font-size: 20px; line-height: 1.05; color: #fff; }
.sticky-copy small { font-weight: 800; color: #dfe7ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-btn {
  background: linear-gradient(180deg, var(--teal), var(--teal-2));
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  border-radius: 999px; padding: 13px 22px; white-space: nowrap;
  box-shadow: 0 10px 22px rgba(46,216,157,.25);
}
.sticky-btn::after { content: " →"; }
.sticky-btn:hover { filter: brightness(1.04); }
.sticky-close {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.sticky-close:hover { background: rgba(255,255,255,.16); }

@media (max-width: 680px) {
  .sticky-offer {
    width: calc(100% - 14px); bottom: 8px;
    grid-template-columns: auto 1fr auto auto;
    gap: 9px; padding: 9px 10px; border-radius: 16px;
  }
  .sticky-stars { display: none; }
  .sticky-logo { height: 46px; width: 60px; padding: 6px; border-radius: 11px; }
  .sticky-logo img { max-height: 30px; }
  .sticky-copy strong { font-size: 16px; }
  .sticky-copy small { font-size: 11px; white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sticky-label { font-size: 10px; }
  .sticky-btn { padding: 11px 13px; font-size: 13px; }
  .sticky-close { width: 26px; height: 26px; font-size: 16px; }
}
