/* =========================================================
   MAIN PAGE — Casino uden om ROFUS (GeneratePress Child)
   Стили изолированы по body.main-landing
   ========================================================= */

/* ---------- Палитра и базовая типографика ---------- */

body.main-landing {
  --bg: #0e1014;
  --bg-2: #12141a;
  --surface: #171a21;
  --surface-2: #1c222d;
  --edge: #2a3140;
  --edge-soft: #232a36;
  --text: #e9edf5;
  --muted: #a9b1c2;
  --accent: #63e6be;     /* зелёный по умолчанию */
  --accent-2: #5aa7ff;   /* синий */
  --warn: #ffb454;       /* янтарный */
  --danger: #ff6b6b;     /* красный */
  --ok: #38d39f;         /* мятный */
  --violet: #b89cff;     /* фиолетовый */
  --teal: #67e8f9;
  --lime: #a3e635;
  --space: clamp(18px, 1.6vw, 22px);

  background: linear-gradient(180deg, #0c0e12 0%, #0f1116 100%);
  color: var(--text);
  font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Скрыть шапку/навигацию/футер именно на этой странице */
body.landing-no-chrome .site-header,
body.landing-no-chrome .main-navigation,
body.landing-no-chrome .site-footer,
body.landing-no-chrome .site-info,
body.landing-no-chrome .page-hero,
body.landing-no-chrome .nav-align-right,
body.landing-no-chrome .inside-header {
  display: none !important;
}

/* Убираем лишние отступы контейнеров темы */
body.main-landing .site-main,
body.main-landing .inside-article,
body.main-landing .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}
body.main-landing .entry-header { display: none !important; } /* скрыть стандартный заголовок страницы */

/* ---------- Обёртка и вертикальный ритм ---------- */

body.main-landing .wrapper {
  max-width: min(1160px, 92vw);
  margin-inline: auto;
  padding-inline: min(24px, 4vw);
}

body.main-landing main.mainContent {
  display: block;
  padding-block: calc(var(--space) * 1.2);
}

/* ---------- Заголовки ---------- */

body.main-landing h1,
body.main-landing h2,
body.main-landing h3,
body.main-landing h4 {
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

body.main-landing h1#casino-uden-om-rofus-2025 {
  font-size: clamp(28px, 4.8vw, 44px);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5em;
}

body.main-landing h2 {
  position: relative;
  font-size: clamp(22px, 3vw, 30px);
  padding-left: 14px;
  scroll-margin-top: 80px;
}
body.main-landing h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 6px; height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--section-accent, var(--accent)) 0%, color-mix(in srgb, var(--section-accent, var(--accent)) 60%, #000 40%) 100%);
}

body.main-landing h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--section-accent, var(--accent)) 22%, transparent 78%), transparent);
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent)) 40%, var(--edge) 60%);
  box-shadow: 0 4px 18px rgba(0,0,0,.24) inset;
  margin: 1.2em 0 .8em;
}
body.main-landing h3::before{
  content:"◆";
  font-size: 0.9em;
  line-height:1;
  color: var(--section-accent, var(--accent));
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--section-accent, var(--accent)) 60%, #000 40%));
}

/* ---------- Общая карточка секции ---------- */

body.main-landing section.content-blocks {
  --section-accent: var(--accent-2); /* умолчание */
  background: linear-gradient(180deg, color-mix(in srgb, var(--section-accent) 14%, transparent 86%) 0%, transparent 100%), var(--surface);
  border: 1px solid var(--edge);
  border-left: 6px solid var(--section-accent);
  border-radius: 18px;
  padding: clamp(18px, 2.5vw, 28px);
  margin: calc(var(--space) * 1.2) auto;
  box-shadow:
    0 12px 24px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
}
body.main-landing section.content-blocks p { margin: 0 0 1em; color: var(--text); }
body.main-landing section.content-blocks p em { color: color-mix(in srgb, var(--text) 88%, #fff 12%); }
body.main-landing section.content-blocks strong { color: #fff; }

/* Индивидуальные акценты секций */
body.main-landing #hvad-betyder-uden-om-rofus     { --section-accent: var(--violet); }
body.main-landing #lovlighed-i-danmark           { --section-accent: var(--danger); }
body.main-landing #skat-af-gevinster             { --section-accent: var(--ok); }
body.main-landing #licenser-og-sikkerhed         { --section-accent: var(--accent-2); }
body.main-landing #kyc-aml-mitid-betaling        { --section-accent: var(--warn); }
body.main-landing #bonusser-og-vilkaar           { --section-accent: var(--violet); }
body.main-landing #spiludvalg-og-funktioner      { --section-accent: var(--teal); }
body.main-landing #fordele-og-ulemper-uden-rofus { --section-accent: var(--danger); }
body.main-landing #ansvarligt-spil-og-hjaelp     { --section-accent: var(--ok); }
body.main-landing #metode-og-kilder              { --section-accent: var(--warn); }
body.main-landing #konklusion                    { --section-accent: var(--lime); }
body.main-landing #ofte-stillede-sporgsmal-om-casino-uden-rofus { --section-accent: var(--accent-2); }

/* ---------- Герой и медиа ---------- */

body.main-landing .hero-image {
  margin: 12px 0 22px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(1200px 280px at 50% 0%, color-mix(in srgb, var(--section-accent, var(--accent)) 16%, transparent 84%), transparent);
  border: 1px solid var(--edge);
}
body.main-landing .hero-image img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(0);
}

body.main-landing figure.horizontal {
  margin: 22px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--surface-2);
}
body.main-landing figure.horizontal img { display:block; width:100%; }

/* ---------- Авторский блок ---------- */

body.main-landing section.author.wrapper {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, #161a22, #141821);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 14px 16px;
  margin: calc(var(--space) * 0.8) auto;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

body.main-landing .author .picture img {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--accent-2) 50%, #fff 0%);
  box-shadow: 0 0 0 6px rgba(90,167,255,.12);
}

body.main-landing .author .text .name {
  font-weight: 800;
  display: inline-block;
  margin-bottom: 4px;
  font-size: 17px;
}
body.main-landing .author .text .subtext {
  color: var(--muted);
  font-size: 14px;
}

/* переключатели изображений */
body.main-landing .show-mob { display: none; }
@media (max-width: 640px) {
  body.main-landing section.author.wrapper {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
  body.main-landing .author .picture img { width:72px; height:72px; }
  body.main-landing .hide-mob { display: none !important; }
  body.main-landing .show-mob { display: inline-block !important; }
}

/* ---------- Дата ---------- */

body.main-landing .date {
  display: flex; justify-content: center;
  margin: -6px 0 calc(var(--space) * 0.3);
}
body.main-landing .date time {
  display: inline-block;
  font-size: 12.5px;
  color: var(--muted);
  background: #10141b;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Списки ---------- */

body.main-landing .content-blocks ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1em;
}
body.main-landing .content-blocks ul > li {
  position: relative;
  padding-left: 1.6rem;
  margin: .45em 0;
}
body.main-landing .content-blocks ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 10%, transparent 11%), var(--section-accent, var(--accent));
  box-shadow: 0 0 0 3px rgba(255,255,255,.03);
}

/* Нумерованные списки — красивые бейджи */
body.main-landing .content-blocks ol {
  counter-reset: num;
  padding-left: 0; list-style: none;
  margin: 0 0 1em;
}
body.main-landing .content-blocks ol > li {
  counter-increment: num;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  margin: .5em 0;
}
body.main-landing .content-blocks ol > li::before {
  content: counter(num);
  display: inline-grid;
  place-items: center;
  height: 28px; width: 28px;
  font: 700 13px/1 system-ui, sans-serif;
  color: #0c0f14;
  background: var(--section-accent, var(--accent));
  border-radius: 8px;
  margin-top: 2px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* ---------- Коллауты (callout) ---------- */

body.main-landing .callout{
  position: relative;
  padding: 14px 16px 14px 54px;
  border: 1px solid var(--edge);
  border-left: 6px solid var(--section-accent, var(--accent));
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)) ,
    var(--surface-2);
  margin: 1rem 0 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
body.main-landing .callout::before{
  content:"⚑";
  position: absolute;
  left: 16px; top: 14px;
  font-size: 22px; line-height: 1;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.35));
  color: var(--section-accent, var(--accent));
}
body.main-landing .callout strong { color:#fff; }
body.main-landing .callout.warning { border-left-color: var(--warn); }
body.main-landing .callout.warning::before { content:"⚠"; color: var(--warn); }
body.main-landing .callout.neutral { border-left-color: var(--accent-2); }
body.main-landing .callout.neutral::before { content:"ℹ"; color: var(--accent-2); }
body.main-landing .callout.help { border-left-color: var(--ok); }
body.main-landing .callout.help::before { content:"❤"; color: var(--ok); }

/* ---------- Таблицы ---------- */

body.main-landing .content-blocks table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--edge);
  border-radius: 14px; /* для браузеров добавим обертку */
  overflow: hidden;
  background: var(--surface-2);
  display: block;               /* даём горизонтальный скролл при узких экранах */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0 16px;
}
body.main-landing .content-blocks thead {
  background: linear-gradient(180deg, color-mix(in srgb, var(--section-accent, var(--accent)) 24%, transparent 76%), transparent);
}
body.main-landing .content-blocks th,
body.main-landing .content-blocks td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--edge);
  white-space: nowrap;
}
body.main-landing .content-blocks tbody tr:nth-child(odd) td{
  background: rgba(255,255,255,.02);
}
body.main-landing .content-blocks th {
  font-weight: 700;
  color: #fff;
}

/* ---------- Ссылки ---------- */

body.main-landing a {
  color: var(--section-accent, var(--accent));
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
body.main-landing a:hover { filter: brightness(1.1); }

/* ---------- FAQ (визуально карточками) ---------- */

body.main-landing #ofte-stillede-sporgsmal-om-casino-uden-rofus h3 {
  display: block;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--section-accent) 18%, transparent 82%), transparent),
    var(--surface-2);
  border: 1px solid var(--edge);
  border-left: 6px solid var(--section-accent);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 1.4rem;
  margin-bottom: .6rem;
}
body.main-landing #ofte-stillede-sporgsmal-om-casino-uden-rofus h3 + p,
body.main-landing #ofte-stillede-sporgsmal-om-casino-uden-rofus h3 + p + p,
body.main-landing #ofte-stillede-sporgsmal-om-casino-uden-rofus h3 + ul,
body.main-landing #ofte-stillede-sporgsmal-om-casino-uden-rofus h3 + p + ul {
  background: #121720;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 8px;
}

/* ---------- Блок "Конец/помощь" ---------- */

body.main-landing #konklusion .callout.help {
  background:
    linear-gradient(180deg, rgba(56,211,159,.12), transparent),
    var(--surface-2);
}

/* ---------- Мелкие вещи ---------- */

body.main-landing hr { border: 0; height: 1px; background: var(--edge); margin: 24px 0; }

body.main-landing blockquote {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 4px solid var(--section-accent, var(--accent));
  background: #141924;
  border-radius: 8px;
}

body.main-landing code, body.main-landing kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #121722;
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  body.main-landing section.content-blocks { padding: 18px; }
  body.main-landing h1#casino-uden-om-rofus-2025 { text-wrap: balance; }
}
@media (max-width: 600px) {
  body.main-landing h2 { padding-left: 12px; }
  body.main-landing h2::before { width: 5px; }
  body.main-landing .content-blocks ol > li { grid-template-columns: 32px 1fr; }
}

/* ---------- Футур-пруф: full-bleed (если решите добавить класс) ---------- */
/* При желании можно дать figure класс .full-bleed, чтобы уйти на всю ширину экрана */
body.main-landing .entry-content .full-bleed {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: none;
}
