/* ==========================================================================
   ISLENSKCASINO — "Nordic Glacier" theme layer
   Loaded after template1.css. Colours: basalt night, glacier ice,
   Icelandic flag blue/red, aurora green → teal → violet.
   ========================================================================== */

:root {
  --ink: #0b1b2b;
  --ink-2: #132a3f;
  --text: #1b2733;
  --muted: #5a6b7b;
  --line: #dbe5ee;
  --ice: #f4f8fb;
  --glacier: #e7f0f7;
  --snow: #ffffff;
  --flag-blue: #02529c;
  --flag-red: #dc1e35;
  --aurora-1: #3ee6a8;
  --aurora-2: #22c3d6;
  --aurora-3: #8b6cff;
  --aurora: linear-gradient(90deg, var(--aurora-1), var(--aurora-2) 50%, var(--aurora-3));
  --radius: 1.6rem;
  --radius-sm: 1rem;
  --shadow: 0 1px 2px rgba(11, 27, 43, .04), 0 8px 24px rgba(11, 27, 43, .06);
  --shadow-lg: 0 24px 64px rgba(11, 27, 43, .18);
}

/* ---------- Base ---------- */
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--ice);
  font-size: 1.7rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .heading { font-family: inherit; letter-spacing: -0.02em; }
::selection { background: rgba(34, 195, 214, .25); }
a { color: var(--flag-blue); }
:focus-visible { outline: 2px solid var(--aurora-2); outline-offset: 2px; }

/* ---------- Header ---------- */
.header {
  height: 7rem;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--aurora);
}
.wrapper { padding-top: 7rem; }
.header .container { max-width: 128rem; gap: 1.2rem; }
.header .logo { width: auto; height: 4.4rem; display: flex; align-items: center; }
.header .logo__img { height: 100%; width: auto; border-radius: .8rem; }
.header__nav a,
.header__dropdown-toggle {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: 99rem;
  transition: background .2s, color .2s;
}
.header__nav a:hover, .header__nav a:focus,
.header__dropdown-toggle[aria-expanded="true"] { color: var(--flag-blue); }
.header__nav svg { opacity: .75; }
.header__menu-toggle { border-color: var(--ink); }
.header__menu-toggle span { background: var(--ink); }

@media (min-width: 1200px) {
  .header__nav li { margin: 0 .2rem; }
  .header__nav a, .header__dropdown-toggle { padding: .7rem 1.2rem; }
  .header__nav a:hover, .header__nav a:focus,
  .header__dropdown-toggle:hover { background: var(--glacier); }
  .header__dropdown-panel {
    border-radius: var(--radius) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: .8rem !important;
  }
  .header__dropdown-panel a { border-radius: .8rem; padding: .8rem 1.2rem; }
}
@media (max-width: 1199px) {
  .header__nav {
    top: 6.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .header__dropdown-toggle[aria-expanded="true"],
  .header__nav .header__dropdown-panel a:hover { color: var(--flag-blue); }
}

/* Language switch (EN / IS) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .3rem;
  margin-left: .8rem;
  background: var(--glacier);
  border: 1px solid var(--line);
  border-radius: 99rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 99rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.lang-switch a img { width: 1.6rem; height: auto; border-radius: .2rem; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--snow); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 1199px) { .lang-switch { margin-left: auto; } .lang-switch + .search-toggle { margin-left: .8rem; } }
@media (max-width: 420px) { .lang-switch a img { display: none; } }

/* ---------- Hero ---------- */
.intro-home {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 11rem;
  color: rgba(255, 255, 255, .86);
  font-size: 1.8rem;
  font-weight: 500;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(62, 230, 168, .35), transparent 60%),
    radial-gradient(50% 70% at 85% 10%, rgba(139, 108, 255, .35), transparent 60%),
    radial-gradient(40% 50% at 55% 30%, rgba(34, 195, 214, .25), transparent 70%),
    linear-gradient(180deg, #07131f 0%, var(--ink) 55%, var(--ink-2) 100%) !important;
}
.intro-home::after {
  /* basalt mountain silhouette */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 9rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23f4f8fb' fill-opacity='.08' d='M0 80 L120 40 L210 70 L330 18 L460 66 L560 34 L700 72 L820 26 L950 64 L1080 30 L1200 70 L1330 36 L1440 60 V120 H0Z'/%3E%3Cpath fill='%23f4f8fb' d='M0 104 L160 70 L280 92 L420 58 L560 96 L700 64 L840 98 L980 62 L1120 94 L1260 70 L1440 96 V120 H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.intro-home .container { position: relative; z-index: 1; max-width: 104rem; }
.intro-home__title {
  color: #fff;
  font-size: clamp(3.2rem, 5vw, 5.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 2rem;
}
.intro-home__text { max-width: 80rem; margin: 0 auto 3.2rem; line-height: 1.65; }
.intro-home__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding: 0; }
.intro-home__list li { margin: 0 !important; }
.intro-home__list a {
  width: auto;
  margin: 0;
  padding: .9rem 1.8rem .9rem 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  border-radius: 99rem;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: transform .2s, color .2s;
}
.intro-home__list a:hover { transform: translateY(-2px); color: var(--flag-blue); }
.intro-home__list svg { width: 2.4rem; height: 2.4rem; margin-right: 1rem; }
.intro-home__notice {
  display: inline-block;
  margin: 0 auto 3rem;
  padding: .8rem 1.6rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 99rem;
}

/* ---------- Page meta: last updated + advertiser disclosure ---------- */
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .8rem 1.6rem;
  margin: 0 0 2.4rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .75);
}
.page-meta time { color: #fff; font-weight: 700; }
.page-meta__updated { display: inline-flex; align-items: center; gap: .6rem; }
.page-meta__updated::before {
  content: "";
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: var(--aurora-1);
  box-shadow: 0 0 0 4px rgba(62, 230, 168, .2);
}
.disclosure-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.2rem;
  font: inherit;
  font-weight: 700;
  color: inherit;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.disclosure-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.disclosure-btn svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
/* light variant (used on review pages) */
.page-meta--light { justify-content: flex-start; color: var(--muted); margin: 0 0 1.6rem; }
.page-meta--light time { color: var(--ink); }
.page-meta--light .disclosure-btn { color: var(--ink-2); background: var(--glacier); border-color: var(--line); }
.page-meta--light .disclosure-btn:hover { background: #dce9f3; }
.review-card .page-meta { justify-content: center; color: rgba(255, 255, 255, .75); margin: 0 0 1.6rem; }
.review-card .page-meta .disclosure-btn { color: #fff; }

/* the popover itself — sits in the browser top layer, above everything */
.disclosure[popover] {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(56rem, calc(100vw - 3.2rem));
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow: auto;
  padding: 3.2rem 3.2rem 2.8rem;
  color: var(--text);
  background: var(--snow);
  border: 0;
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
  font-size: 1.6rem;
  line-height: 1.65;
  text-align: left;
}
.disclosure[popover]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--aurora);
}
.disclosure::backdrop { background: rgba(7, 19, 31, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.disclosure__title { margin: 0 0 1.2rem; font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1.25; padding-right: 3.6rem; }
.disclosure p { margin: 0 0 1.2rem; }
.disclosure p:last-of-type { margin-bottom: 0; }
.disclosure__close {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  width: 3.6rem; height: 3.6rem;
  display: grid; place-items: center;
  font-size: 2.2rem; line-height: 1;
  color: var(--ink);
  background: var(--glacier);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.disclosure__close:hover { background: #dce9f3; }
.disclosure__ok {
  margin-top: 2rem;
  padding: 1rem 2.2rem;
  font: inherit; font-weight: 800;
  color: var(--ink);
  background: var(--aurora);
  border: 0; border-radius: 99rem;
  cursor: pointer;
}

/* ---------- Content ---------- */
.content > .container,
.wrapper > .container { max-width: 104rem; }
.content { padding-bottom: 6rem; }
.content .container > h2,
.content > h2,
.content .container > .heading,
.heading {
  color: var(--ink);
  font-size: clamp(2.6rem, 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
}
.content .container > h2,
.content > h2 {
  position: relative;
  margin: 5.6rem 0 1.6rem;
  padding-top: 2rem;
}
.content .container > h2::before,
.content > h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 5.6rem; height: 4px;
  border-radius: 4px;
  background: var(--aurora);
}
.content .container > h3, .content > h3 {
  margin: 3.6rem 0 1.2rem;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--ink-2);
}
.content .container > h4, .content > h4 { font-size: 1.9rem; font-weight: 800; color: var(--ink-2); }
.heading--big { font-size: clamp(3rem, 4vw, 4.4rem) !important; }
.content .container > p a, .content p a, .content li a { color: var(--flag-blue); text-decoration: underline; text-decoration-color: rgba(2, 82, 156, .35); text-underline-offset: .3rem; }
.content p a:hover, .content li a:hover { text-decoration-color: currentColor; }
.content .container > ul li::marker { color: var(--aurora-2); }
.content .container > ol li::marker { color: var(--flag-blue); font-weight: 800; }

.notice-18 {
  padding: 1.4rem 1.8rem;
  background: #fff4f5;
  border: 1px solid #f6c9cf;
  border-left: 4px solid var(--flag-red);
  border-radius: var(--radius-sm);
}
.notice-18 strong { color: #9b1224; }

/* Tables (existing .table wrappers + plain content tables) */
.table, .table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--snow); border: 1px solid var(--line); margin-bottom: 2.8rem; }
.table table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 1.5rem; line-height: 1.45; }
.table table th, .table-wrap table thead th {
  background: var(--ink) !important;
  color: #fff !important;
  font-weight: 700;
  text-align: left;
  padding: 1.3rem 1.6rem !important;
}
.table table td, .table-wrap table td { padding: 1.2rem 1.6rem !important; border-top: 1px solid var(--line); color: var(--text); background: transparent; }
.table table tbody tr:nth-child(even), .table-wrap table tbody tr:nth-child(even) { background: #f8fbfd; }
.table table tbody tr:hover, .table-wrap table tbody tr:hover { background: var(--glacier); }
.table-wrap table td:first-child { font-weight: 700; color: var(--ink); }
/* key–value spec tables in reviews */
.table-wrap--spec { max-width: 64rem; }
.table-wrap--spec table th {
  width: 42%;
  background: var(--glacier) !important;
  color: var(--ink-2) !important;
  font-weight: 700;
  text-align: left;
  padding: 1.1rem 1.6rem !important;
  border-top: 1px solid var(--line);
}
.table-wrap--spec table tr:first-child th, .table-wrap--spec table tr:first-child td { border-top: 0; }
.table-wrap--spec table td:first-child { font-weight: 500; }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin: 0 0 2.4rem; }
@media (min-width: 768px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons__col { padding: 2rem 2.2rem; border-radius: var(--radius); background: var(--snow); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pros-cons__col h4 { margin: 0 0 1rem; font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; gap: .8rem; }
.pros-cons__col ul { list-style: none; margin: 0; padding: 0; }
.pros-cons__col li { position: relative; padding-left: 2.8rem; margin: 0 0 .8rem; font-size: 1.6rem; line-height: 1.5; }
.pros-cons__col li::before { position: absolute; left: 0; top: .1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; font-weight: 900; }
.pros-cons__col--pros { border-top: 4px solid #1fbf86; }
.pros-cons__col--pros h4 { color: #0f8a5f; }
.pros-cons__col--pros li::before { content: "✓"; background: #dcf8ec; color: #0f8a5f; }
.pros-cons__col--cons { border-top: 4px solid var(--flag-red); }
.pros-cons__col--cons h4 { color: #b0172b; }
.pros-cons__col--cons li::before { content: "–"; background: #fde3e6; color: #b0172b; }

/* Casino review blocks inside guides */
.casino-block {
  margin: 4rem 0 2rem;
  padding: 2.8rem 2.8rem 1.2rem;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}
.casino-block > h3 { margin-top: 0 !important; font-size: 2.6rem !important; color: var(--ink) !important; }
.casino-block > p { margin: 0 0 1.6rem; }
.casino-block .table-wrap, .casino-block .pros-cons__col { box-shadow: none; }

/* ---------- FAQ ---------- */
.faq { font-size: 1.8rem; }
.faq__card {
  padding: 1.8rem 2rem 1.6rem 2.2rem;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq__label { color: var(--ink); font-weight: 800; }
.faq__label:hover { color: var(--flag-blue); }
.faq__label::before { border-color: var(--aurora-2) !important; width: 1.1rem; height: 1.1rem; }
.faq__body { font-size: 1.6rem; color: var(--text); line-height: 1.7; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 1.4rem; }
.breadcrumbs a { color: var(--flag-blue); }
.breadcrumbs span { color: var(--muted); }

/* ---------- Buttons / CTAs ---------- */
.button, .referral-btn, .review-card .referral-btn {
  color: var(--ink) !important;
  font-weight: 800 !important;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2)) !important;
  border: 0 !important;
  border-radius: 99rem !important;
  box-shadow: 0 6px 18px rgba(34, 195, 214, .35);
  transition: transform .2s, box-shadow .2s, filter .2s !important;
}
.button:hover, .referral-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 24px rgba(34, 195, 214, .45); }

/* ---------- Review card ---------- */
.review-card {
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(62, 230, 168, .18), transparent 60%),
    radial-gradient(70% 120% at 100% 0%, rgba(139, 108, 255, .22), transparent 60%),
    var(--ink) !important;
  border-radius: 2rem !important;
  box-shadow: var(--shadow-lg) !important;
}
.review-card__info { color: #8ff0cf !important; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(50% 60% at 10% 0%, rgba(62, 230, 168, .14), transparent 60%),
    radial-gradient(40% 60% at 90% 0%, rgba(139, 108, 255, .16), transparent 60%),
    #07131f !important;
  padding-top: 5rem;
}
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--aurora); }
.footer__nav { border-bottom-color: rgba(255, 255, 255, .12); }
.footer__nav a { font-weight: 700; letter-spacing: .04em; font-size: 1.3rem; }
.footer__nav a:hover, .footer__nav a:focus { color: var(--aurora-1); }
.footer__subtitle { color: var(--aurora-1); font-weight: 700; }
.footer__desc { color: rgba(255, 255, 255, .65); font-size: 1.4rem; }
.footer__bottom { color: rgba(255, 255, 255, .55); }

/* ---------- Scroll-up button ---------- */
.button-scroll-up { background: var(--ink) !important; border-radius: 50% !important; box-shadow: var(--shadow-lg); }

/* ---------- Widget iframe heading ---------- */
.wrapper > h2.heading { margin: 4.8rem auto 2rem; padding: 0 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Disclosure next to the review date */
.review-card__info li.review-card__date { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.review-card__date .disclosure-btn { white-space: nowrap; font-size: 1.2rem; padding: .3rem .9rem; color: #fff; font-weight: 700; }
.review-card__date .disclosure-btn svg { width: 1.3rem; height: 1.3rem; }
.review-card__date .disclosure { font-weight: 400; }
.review-card__info li.review-card__date { width: auto !important; }
.review-card__date > span { white-space: nowrap; }

/* Sticky "best ever" bar */
.best-ever__button { color: var(--ink) !important; font-weight: 800 !important; background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2)) !important; box-shadow: 0 -6px 24px rgba(11, 27, 43, .18); }
@media (max-width: 767px) { .intro-home__text { text-align: left; font-size: 1.6rem; } .intro-home { padding: 4.8rem 0 9rem; } }
