/*
  Pin Up Casino Slots - theme stylesheet
  Simple, mobile-first, fully responsive. No horizontal scroll at any width.
  Palette: near-black navy background, red accent, light text.
*/

:root {
  --bg: #0d0f1a;
  --bg-alt: #12141f;
  --bg-card: #171a2b;
  --border: #262a3d;
  --text: #eef0f6;
  --text-dim: #a7abc0;
  --red: #e63946;
  --red-dark: #c62834;
  --red-glow: rgba(230, 57, 70, 0.35);
  --radius: 10px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */

.button,
.button-entry,
.button-registration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.button:hover,
.button-entry:hover,
.button-registration:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button_red { background: var(--red); border: 3px solid var(--bg-alt);}

.button-entry {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.button-entry:hover { border-color: var(--red); color: #fff; }

/* ---------- Header ---------- */

.header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.header__btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.header__btn i {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__btn.is-open i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__btn.is-open i:nth-child(2) { opacity: 0; }
.header__btn.is-open i:nth-child(3) { opacity: 0; }
.header__btn.is-open i:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.header__logo img { height: 36px; width: auto; }
.header__logo img + img { display: none; }

.header__form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.header__inputs { display: none; }

.header__buttons { display: flex; gap: 8px; }

.header__bottom-bg { display: none; }

.header__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.header__info a {
  display: block;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.header__info span { font-weight: 800; }

.header__nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.header__nav.is-open { display: flex; }

.header__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.header__nav .header-wrapper__link,
.header__nav li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}
.header__nav li a:hover,
.header__nav .current-menu-item a {
  background: rgba(230, 57, 70, 0.12);
  color: var(--red);
}

.header__lang { display: none; }

.lang { position: relative; }
.lang__current {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lang__list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 60px;
  z-index: 20;
}
.lang:hover .lang__list,
.lang:focus-within .lang__list {
  display: block;
}
.lang__list li a.lang__item {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
}
.lang__list li a.lang__item:hover {
  background: rgba(230, 57, 70, 0.12);
  color: var(--red);
}

/* ---------- Content layout ---------- */

.content { padding: 20px 0 40px; }

.content__block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content__left { display: flex; flex-direction: column; gap: 20px; }

/* Bonus card */
.bonus {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.bonus__caption { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.bonus__sum { font-size: 30px; font-weight: 800; color: var(--red); }

/* Nav pill lists (soft/provider filters) */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  white-space: nowrap;
}
.nav_dark li a:hover,
.nav li a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ---------- Owl-carousel skin (real owl.carousel v2 library) ---------- */

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 15, 26, 0.75);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background: var(--red);
  border-color: var(--red);
}
.owl-carousel .owl-nav button.owl-prev { left: 8px; }
.owl-carousel .owl-nav button.owl-next { right: 8px; }
.owl-carousel .owl-nav button.disabled { opacity: 0.35; pointer-events: none; }

.owl-carousel .owl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.owl-carousel .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.owl-carousel .owl-dot.active span { background: var(--red); }

/* Promo slider */
.slider { position: relative; }
.slider__item {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: left center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 16px 50px;
  position: relative;
  overflow: hidden;
}

.slider__left {display: flex; flex-direction: column;}
.slider__left, .slider__right { position: relative; z-index: 1; }
.slider__caption { font-size: 20px; font-weight: 800; color: #fff; }
.slider__label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.slider__right { margin-top: 10px; }

.now { text-align: center; margin: 20px 0; }

/* Hits ticker */
.hits-wrapper { display: flex; flex-direction: column; gap: 10px; }
.hits-wrapper .links a {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hits {
  position: relative;
  padding: 0 34px;
}
.hits__item {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}
.hits__caption {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: capitalize;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hits__img img { border-radius: 6px; }
.hits__bottom { margin-top: 6px; font-size: 12px; color: var(--red); font-weight: 700; }

/* ---------- Games menu (providers dropdown) ---------- */

.blocks { margin: 10px 0; }
.menu { position: relative; }
.menu__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.menu__icon { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.menu__icon i { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.menu__list {
  display: none;
  margin-top: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.menu__list.is-open { display: block; }
.menu__list .nav { gap: 8px; }

/* ---------- Slot games grid ---------- */

.games { margin: 20px 0; }
.games__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.games__col { min-width: 0; }
.games__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.games__item:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.games__img { position: relative; }
.games__img img { width: 100%; aspect-ratio: 236 / 156; object-fit: cover; }

.games__info {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 26, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.games__item:hover .games__info { opacity: 1; }

.games__button {
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.games__link {
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: underline;
}

.games__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}
.games__name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.games__favorite {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--text-dim);
  border-radius: 50%;
}
.games__favorite:hover { border-color: var(--red); }

.games__all { text-align: center; margin-top: 20px; }
.games__all a {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}
.games__all a:hover { background: var(--red); color: #fff; }

/* ---------- Article / text content ---------- */

.text {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text-dim);
}
.text h1 {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.25;
}
.text h2 {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text);
  margin: 28px 0 12px;
}
.text p { margin: 0 0 14px; }
.text a { color: var(--red); text-decoration: underline; }
.text ul {
  margin: 0 0 14px;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.text ul li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer__top { display: flex; flex-direction: column; gap: 20px; }

.footer__blocks {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.footer__caption {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__nav li a {
  display: block;
  padding: 4px 0;
}

.affiliate { display: inline-block; margin-top: 10px; }
.svg-partners { width: 36px; height: 36px; }
.svg-partners__circle { fill: var(--bg-card); }

.footer__images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}
.footer__images img { width: 60px; height: 36px; object-fit: contain; }

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer__logos img { max-height: 30px; width: auto; }

.footer__copyright {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.6;
}

.footer__img { margin-top: 12px; }
.footer__img img { width: 70px; }

/* ---------- Responsive breakpoints ---------- */

@media (min-width: 640px) {
  .header__inputs { display: flex; gap: 8px; }
  .header__input .input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .header__tooltip { display: none; }
}

@media (min-width: 768px) {
  .header__top { flex-wrap: nowrap; }
  .header__logo img { height: 42px; }
  .header__logo img + img { display: none; }

  .header__btn { display: none; }
  .header__nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 0;
  }
  .header__nav ul { flex-direction: row; }
  .header__lang { display: block; }

  .games__row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (min-width: 1024px) {
  .games__row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .text ul { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (min-width: 1280px) {
  .header__top { padding: 16px; }
  .games__row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
