/*
Theme Name: Prime Casino (ACF)
Theme URI: https://example.com/
Author: Your Team
Description: Custom theme built fully on ACF Pro (ACF JSON) for казино-рейтинг.
Version: 1.0.0
Text Domain: prime-casino
*/

/* -----------------------------
   CSS RESET (lightweight)
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 700px at 50% 0%, #141416 0%, #0b0b0d 55%, #070708 100%);
  color: #e8e8ea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid rgba(242, 193, 78, .85); outline-offset: 2px; }

/* -----------------------------
   THEME TOKENS
------------------------------ */
:root {
  --bg: #0b0b0d;
  --panel: #1a1a1d;
  --panel-2: #232327;
  --panel-3: #2a2a2f;

  --text: #e8e8ea;
  --muted: #a9a9b2;

  --line: rgba(255,255,255,.07);
  --shadow: 0 18px 48px rgba(0,0,0,.45);

  --accent: #20d166;       /* зелёная линия/маркер */
  --accent-2: #2be07b;
  --warn: #f2c14e;         /* желтые кнопки/звезды */

  --radius: 10px;
  --radius-lg: 12px;

  --container: 1160px;
  --gap: 22px;
}

/* -----------------------------
   LAYOUT HELPERS
------------------------------ */
.pc-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.pc-section { padding: 34px 0; }

.pc-h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .2px;
  text-align: center;
}

.pc-subtitle {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.pc-divider { height: 1px; background: var(--line); margin: 26px 0; }

/* -----------------------------
   BUTTONS
------------------------------ */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(242,193,78,.45);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}

.pc-btn:hover { transform: translateY(-1px); border-color: rgba(242,193,78,.75); background: rgba(0,0,0,.35); }
.pc-btn:active { transform: translateY(0); }

.pc-btn--primary {
  border-color: rgba(242,193,78,.8);
  background: linear-gradient(180deg, rgba(242,193,78,.95), rgba(220,164,54,.95));
  color: #161616;
}

.pc-btn--primary:hover { background: linear-gradient(180deg, rgba(255,209,92,.98), rgba(220,164,54,.98)); }

.go-nav-button{
    padding: 5px 0;
}

.pc-btn--wide {
  height: 34px;
  padding: 0 14px;
}

.pc-btn--ghost {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #e9e9ee;
}

.pc-btn--ghost:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }

.pc-btn--block { width: 100%; }

/* -----------------------------
   HEADER
------------------------------ */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,7,8,.68);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pc-header__inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.pc-brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pc-brand__name {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 14px;
}

.pc-header__actions { display: inline-flex; align-items: center; gap: 10px; }

.pc-burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  position: relative;
}
.pc-burger span,
.pc-burger span::before,
.pc-burger span::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,.9);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
.pc-burger span { top: 50%; }
.pc-burger span::before { top: -6px; }
.pc-burger span::after { top: 6px; }

.pc-header__panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 12px 0 16px;
}
.pc-header__panel.is-open { display: block; }
.pc-header__panel-actions {
  display: grid;
  gap: 10px;
}

/* -----------------------------
   HERO / TITLE BLOCK
------------------------------ */
.pc-hero { padding: 40px 0 8px; }

/* -----------------------------
   CASINO LIST
------------------------------ */
.pc-casino-list { display: grid; gap: 14px; margin-top: 18px; }

.pc-casino-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr 150px;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.pc-casino-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(32,209,102,.55);
}

.pc-casino-card__badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 20px;
  background: var(--accent);
  color: #05160c;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.pc-casino-card__media {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.18);
}

.pc-casino-card__logo {
  width: 100%;
  height: 78px;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pc-casino-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.pc-casino-card__body {
  padding: 14px 16px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
}

.pc-casino-card__top {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 12px;
}

.pc-casino-card__name {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.pc-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.pc-stars { display: inline-flex; gap: 3px; line-height: 1; }
.pc-star {
  width: 12px; height: 12px;
  display: inline-block;
  background: rgba(255,255,255,.22);
  clip-path: polygon(50% 0%, 62% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 38% 35%);
}
.pc-star.is-on { background: var(--warn); }
.pc-rating__value { color: #e9e9ee; font-weight: 800; font-size: 12px; opacity: .92; }

.pc-casino-card__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.pc-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.pc-meta-ico {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(242,193,78,.18);
  border: 1px solid rgba(242,193,78,.28);
  display: grid;
  place-items: center;
  color: var(--warn);
  font-size: 11px;
}

.pc-casino-card__cta {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-casino-more {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.pc-casino-card.is-hidden { display: none; }

/* -----------------------------
   CONTENT (WYSIWYG)
------------------------------ */
.pc-content {
  max-width: 980px;
  margin: 0 auto;
}

.pc-content h2 {
  margin: 26px 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.pc-content p {
  margin: 0 0 12px;
  color: #d8d8de;
  line-height: 1.65;
  font-size: 14px;
}

.pc-content ul {
  margin: 12px 0 16px;
  padding: 0 0 0 18px;
}
.pc-content ul li {
  margin: 8px 0;
  line-height: 1.6;
  color: #d8d8de;
}
.pc-content ul li::marker { color: var(--accent); }

.pc-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.pc-content th,
.pc-content td {
  padding: 12px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #d9d9df;
}
.pc-content th {
  color: #bdbdc8;
  font-weight: 800;
  text-align: left;
  background: rgba(255,255,255,.04);
}
.pc-content tr:last-child td { border-bottom: 0; }
.pc-content td:first-child { font-weight: 800; color: #e8e8ee; }

/* -----------------------------
   REVIEWS
------------------------------ */
.pc-reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.pc-review {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px;
  min-height: 150px;
}

.pc-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pc-review__person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pc-review__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}
.pc-review__avatar img { width: 100%; height: 100%; object-fit: cover; }

.pc-review__name {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.pc-review__text {
  margin: 10px 0 0;
  color: #d8d8de;
  font-size: 13px;
  line-height: 1.6;
  opacity: .96;
}

/* Mobile reviews: horizontal scroll like slider */
@media (max-width: 900px) {
  .pc-reviews__grid {
    grid-template-columns: repeat(4, 76%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .pc-reviews__grid::-webkit-scrollbar { height: 8px; }
  .pc-reviews__grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 999px; }
  .pc-review { scroll-snap-align: start; }
}

/* -----------------------------
   FAQ (ACCORDION)
------------------------------ */
.pc-faq { max-width: 980px; margin: 0 auto; }

.pc-acc { display: grid; gap: 10px; margin-top: 12px; }

.pc-acc__item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
}

.pc-acc__btn {
  width: 100%;
  padding: 14px 44px 14px 14px;
  background: transparent;
  border: 0;
  color: #e8e8ea;
  text-align: left;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  position: relative;
}

.pc-acc__btn::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #d8d8de;
  font-weight: 900;
}

.pc-acc__item.is-open .pc-acc__btn::after { content: "–"; }

.pc-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}

.pc-acc__content {
  padding: 0 14px 14px;
  color: #d8d8de;
  font-size: 13px;
  line-height: 1.65;
}

/* -----------------------------
   FOOTER
------------------------------ */
.pc-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}

.pc-footer__inner { padding: 22px 0; display: grid; gap: 18px; }

.pc-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.pc-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #cfcfda;
  font-size: 13px;
}
.pc-footer__links a { opacity: .92; }
.pc-footer__links a:hover { opacity: 1; text-decoration: underline; }

.pc-footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  opacity: .92;
}

.pc-footer__logo {
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(10%);
  opacity: .95;
}
.pc-footer__logo img { height: 22px; width: auto; }

.pc-footer__bottom {
  text-align: center;
  color: #9f9fb0;
  font-size: 11px;
  line-height: 1.6;
}

.pc-footer__copy { margin-top: 10px; opacity: .9; }

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 960px) {
  .pc-h1 { font-size: 28px; }
  .pc-section { padding: 26px 0; }

  .pc-casino-card {
    grid-template-columns: 120px 1fr;
    grid-template-areas:
      "media body"
      "cta cta";
  }
  .pc-casino-card__media { grid-area: media; }
  .pc-casino-card__body { grid-area: body; }
  .pc-casino-card__cta { grid-area: cta; justify-content: stretch; }
  .pc-casino-card__logo { height: 64px; }

  .pc-btn--primary.pc-btn--block { height: 38px; }

  .pc-reviews__grid { grid-template-columns: repeat(4, 82%); }
}

@media (max-width: 720px) {
  .pc-header__actions { display: none; }
  .pc-burger { display: inline-flex; align-items: center; justify-content: center; }
  .pc-footer__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pc-footer__links { justify-content: center; }
}

@media (max-width: 420px) {
  .pc-container { padding: 0 14px; }
  .pc-casino-card__body { padding: 12px 12px; }
  .pc-casino-card__meta { gap: 10px 14px; }
}


#main {
    background: rgb(7 7 7);
}