/*
 Theme Name: GeneratePress Child — Casino Guide
 Theme URI: https://example.com
 Description: Дочерняя тема для одностраничного лэндинга "Casino uden om ROFUS" с блочной подачей контента.
 Author: Your Name
 Version: 1.0.0
 Template: generatepress
 Text Domain: gp-child-casino
*/

/* Небольшой базовый слой — остальное лежит в main-page.css */
*, *::before, *::after { box-sizing: border-box; }
:where(img, svg, video) { max-width: 100%; height: auto; }

/* === 1) Убрать белую полосу и любые светлые фоны темы === */
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2)) fixed;
}

/* Тема рисует белый фон на контейнерах — глушим его */
.site,
.site-content,
.content-area,
.inside-article,
.entry-content,
.entry-header {
  background: transparent !important;
  box-shadow: none !important;
}

/* На некоторых темах «лента/рамка» рисуется псевдоэлементами */
body.main-landing::before,
body.main-landing::after {
  content: none !important;
  display: none !important;
}

/* Снимаем лишние внешние отступы сверху/снизу у основной области */
.site-main,
main.mainContent {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* === 2) Расширить контент === */
/* Если используется контейнер темы */
.grid-container,
#content.container {
  max-width: 1160px !important;    /* было узко — расширяем */
  width: 100%;
}

/* Наши основные обёртки */
main.mainContent,
.wrapper {
  max-width: 1160px;               /* комфортная ширина для чтения */
  margin-inline: auto;             /* центрируем */
  padding-inline: clamp(16px, 3vw, 32px);
}

/* Секции остаются карточками, но без «протекания» фона */
.content-blocks {
  border-radius: 16px;
}

/* === 3) Мелкие правки для аккуратности === */
.hero-image img,
.content-blocks img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* На узких экранах оставляем адаптивность */
@media (max-width: 768px) {
  .grid-container,
  #content.container,
  main.mainContent,
  .wrapper {
    max-width: 100% !important;
    padding-inline: 16px;
  }
}

/* === Ширина контента (Gutenberg + тема) === */
:root{
  --wp--style--global--content-size: 1160px !important; /* обычная ширина */
  --wp--style--global--wide-size: 1400px !important;    /* alignwide */
}

/* Контейнеры темы */
.grid-container,
#content.container,
.site-content .content-area,
.site-main,
main.mainContent,
.wrapper{
  max-width: 1160px !important;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* Ограничители Gutenberg */
.entry-content{ max-width: none !important; }
.entry-content > *{
  max-width: var(--wp--style--global--content-size) !important;
  margin-left: auto;
  margin-right: auto;
}
.entry-content > *.alignwide{
  max-width: var(--wp--style--global--wide-size) !important;
  width: var(--wp--style--global--wide-size) !important;
}
.entry-content > *.alignfull{
  max-width: 100% !important;
  width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
}

/* Новый «констрейнт» у групп/статей в WP 6.x */
.is-layout-constrained,
.wp-block-group.is-layout-constrained{
  max-width: var(--wp--style--global--content-size) !important;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* Картинки/медиа ведут себя адекватно на новой ширине */
.wp-block-image img,
.hero-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.site-footer {
  margin-top: 60px;
  background: var(--surface-2, #10161c);
  color: var(--text-2, #cfd6dd);
  border-top: 1px solid var(--border-1, #27323a);
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 30px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.6fr 1fr;
  }
}

.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-about {
  line-height: 1.6;
  opacity: 0.9;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin: 0.4rem 0;
}
.footer-nav a {
  color: var(--text-1, #e8eef4);
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.95rem;
}
.footer-legal .age-badge {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-legal .rg-text {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.footer-legal .copyright {
  opacity: 0.7;
}

