/*
Theme Name: best-casino-theme-v1.6.22-complete
Author: Archive Casino WP Builder
Version: 1.6.22
Text Domain: archive-casino-embedded
*/

:root {
  --aci-primary: #000000;
  --aci-accent: #ffffff;
  --aci-bg: #ffffff;
  --aci-text: #1b1f24;
  --aci-font: sans-serif;
}

body {
  margin: 0;
  background-color: var(--aci-bg);
  color: var(--aci-text);
  font-family: var(--aci-font);
  line-height: 1.6;
}

a { color: var(--aci-primary); }
.site-header, .site-footer {
  border-bottom: 1px solid color-mix(in srgb, var(--aci-text) 15%, transparent);
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
}
.site-footer { border-top: 1px solid color-mix(in srgb, var(--aci-text) 15%, transparent); border-bottom: 0; margin-top: 48px; }
.site-brand { font-weight: 700; color: var(--aci-text); text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 14px 0 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; }

/* Casino accordion submenu */
.site-nav li { position: relative; }
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  gap: 6px;
  background: var(--aci-bg);
  border: 1px solid color-mix(in srgb, var(--aci-text) 15%, transparent);
  border-radius: 6px;
  padding: 8px 0;
  margin: 4px 0 0;
  min-width: 200px;
  z-index: 100;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.menu-item-has-children.is-open > .sub-menu {
  display: flex;
}
.site-nav .sub-menu li { white-space: nowrap; }
.site-nav .sub-menu a { display: block; padding: 6px 16px; font-weight: 500; }
.site-nav .sub-menu a:hover { background: color-mix(in srgb, var(--aci-primary) 8%, transparent); }
.site-nav .menu-item-has-children > a::after { content: " ▾"; font-size: 0.8em; opacity: 0.7; }
.site-main { max-width: 1120px; margin: 0 auto; padding: 36px 24px; }

@media (max-width: 760px) {
  .site-nav ul { align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-nav .sub-menu { position: static; box-shadow: none; margin: 4px 0 0 12px; }
}

/* === Casino-страницы в стиле сайта === */
.entry-content, article.page { max-width: 940px; margin: 0 auto; padding: 24px 20px; }
.entry-content h1 { color: var(--aci-primary); font-size: 1.5rem; margin: 0 0 16px; }
.entry-content h2 { color: var(--aci-primary); margin: 28px 0 12px; }
.entry-content h3 { color: var(--aci-accent); margin: 20px 0 8px; }
.entry-content a { color: var(--aci-text); text-decoration: underline; }
.casino-hero {
  background: color-mix(in srgb, var(--aci-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--aci-primary) 25%, transparent);
  border-radius: 8px;
  padding: 24px;
  margin: 0 0 24px;
}
.casino-rating-card {
  background: var(--aci-bg);
  border: 1px solid color-mix(in srgb, var(--aci-primary) 25%, transparent);
  border-radius: 6px;
  padding: 20px;
  margin: 0 0 24px;
}
.casino-stars { color: var(--aci-primary); font-size: 1.4em; letter-spacing: 3px; }
.casino-pros-cons { gap: 20px; margin: 16px 0; }
.casino-pros, .casino-cons { padding: 16px; border-radius: 4px; }
.casino-pros { background: #e8f5e9; border-left: 4px solid #058d28; }
.casino-cons  { background: #fce4ec; border-left: 4px solid var(--aci-primary); }
.casino-pros h3 { color: #058d28; }
.casino-cons h3 { color: var(--aci-primary); }
.wp-block-button__link {
  background: var(--aci-primary);
  color: #fff;
  border-radius: 0;
  font-weight: bold;
  border: none;
}
.wp-block-button__link:hover { background: var(--aci-accent); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.entry-content th { background: color-mix(in srgb, var(--aci-primary) 20%, transparent); color: var(--aci-primary); padding: 10px; text-align: left; }
.entry-content td { padding: 10px; border-bottom: 1px solid color-mix(in srgb, var(--aci-primary) 15%, transparent); }
.entry-content figure img,
.entry-content .wp-block-image img { border: 3px solid color-mix(in srgb, var(--aci-primary) 25%, transparent); }
.wp-block-details { margin: 8px 0; border: 1px solid color-mix(in srgb, var(--aci-primary) 15%, transparent); border-radius: 4px; padding: 8px 14px; background: color-mix(in srgb, var(--aci-primary) 4%, transparent); }
.wp-block-details summary { font-weight: 600; color: var(--aci-accent); cursor: pointer; }

/* Responsive third-party scripts and casino tables. */
.acwpb-responsive-widget,
.entry-content div[id^="hdsTableWidget_"],
.aci-casino-content div[id^="hdsTableWidget_"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: var(--acwpb-widget-margin, 24px) 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.acwpb-responsive-widget__stage {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  transform: none;
  transform-origin: 0 0;
}
.acwpb-responsive-widget.acwpb-responsive-widget--scaled { overflow: hidden; }
.acwpb-responsive-widget[data-acwpb-wide="sidebar"] { max-width: none; }
.acwpb-responsive-widget[hidden] { display: none !important; }
.acwpb-responsive-widget div[id^="hdsTableWidget_"] { max-width: none; margin: 0; overflow: visible; }
.acwpb-responsive-widget *,
.entry-content div[id^="hdsTableWidget_"] *,
.aci-casino-content div[id^="hdsTableWidget_"] * {
  box-sizing: border-box;
}
.acwpb-responsive-widget iframe,
.acwpb-responsive-widget table,
.acwpb-responsive-widget video,
.entry-content div[id^="hdsTableWidget_"] iframe,
.entry-content div[id^="hdsTableWidget_"] table,
.aci-casino-content div[id^="hdsTableWidget_"] iframe,
.aci-casino-content div[id^="hdsTableWidget_"] table {
  width: 100% !important;
}
.acwpb-responsive-widget img,
.acwpb-responsive-widget svg,
.acwpb-responsive-widget canvas { max-width: 100% !important; height: auto; }
.acwpb-responsive-widget-editor { border: 1px solid #949494; padding: 12px; }

/* Gutenberg Casino pages inherit the recovered site's visual shell. */
.aci-casino-shell { min-height: 100vh; }
.aci-casino-header { min-height: 112px; }
.aci-casino-header .logo img { display: block; width: 249px; height: 92px; }
.aci-casino-banner { clear: both; width: 971px; height: 270px; margin: 0 auto; overflow: hidden; }
.aci-casino-banner img { display: block; width: 971px; height: 270px; object-fit: cover; }
.aci-casino-nav .sub-menu { display: none !important; }
.aci-casino-nav .menu-item-has-children.is-open > .sub-menu { display: block !important; }
.aci-casino-content { box-sizing: border-box; min-height: 520px; }
.aci-casino-content article.page { max-width: none; margin: 0; padding: 10px 12px 36px; }
.aci-casino-content h1, .aci-casino-content h2 { color: #000000; }
.aci-casino-footer { box-sizing: border-box; margin: 0; color: #94042d; }
.aci-casino-footer a { color: #94042d; }

@media (max-width: 1000px) {
  .aci-casino-shell .main { width: 100%; max-width: 994px; }
  .aci-casino-banner { width: calc(100% - 24px); height: auto; aspect-ratio: 971 / 270; }
  .aci-casino-banner img { width: 100%; height: 100%; }
  .aci-casino-shell .insert_page { box-sizing: border-box; width: 100%; padding: 0 20px; background-color: #fff6e3; }
  .aci-casino-shell .insert_page_left { width: 246px; }
  .aci-casino-shell .insert_page_right { width: calc(100% - 266px); }
}

@media (max-width: 720px) {
  .aci-casino-header { min-height: 104px; }
  .aci-casino-header .logo { float: none; padding-left: 12px; }
  .aci-casino-header .lang { display: none; }
  .aci-casino-banner { display: none; }
  .aci-casino-shell .insert_page { padding: 0 12px; }
  .aci-casino-shell .insert_page_left,
  .aci-casino-shell .insert_page_right { float: none; clear: both; width: 100%; }
  .aci-casino-shell .insert_page_left > img { display: none; }
  .aci-casino-shell .menu { width: 100%; box-sizing: border-box; }
  .aci-casino-shell .menu ul li a:link,
  .aci-casino-shell .menu ul li a:hover,
  .aci-casino-shell .menu ul li a:visited { box-sizing: border-box; width: calc(100% - 24px); }
  .aci-casino-footer { height: auto; min-height: 149px; padding: 24px 28px; }
  .aci-casino-footer .texty,
  .aci-casino-footer .copy { float: none; clear: both; width: auto; text-align: left; }
}
