/* ==========  Core colour & layout variables  ========== */
:root {
  --bg-page:        #f7f9fb;
  --clr-primary:    #3A0519;
  --clr-primary-lt: #670D2F;
  --clr-dark:       #14213d;
  --clr-accent:     #EF88AD;

  --radius: 0.75rem;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
}

/* ==========  RESET  ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--clr-dark);
  line-height: 1.6;
}

/* ==========  GENERIC HELPERS  ========== */
.container {
  width: min(90%, var(--max-width));
  margin-inline: auto;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========  HEADER  ========== */
.site-header {
  background: var(--clr-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;          /* keep above content */
}

.logo {
  font-size: 1.75rem;
  font-family: "Fjord One", serif;
  text-decoration: none;
  color: #fff;
}

/*  NAV  */
.main-nav { margin-left: auto; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width 0.3s;
}

.nav-list a:hover::after {
  width: 100%;
}

/*  BURGER  */
.burger {
  display: none;                    /* hidden on desktop */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

/* fallback “☰” if icon font missing */
.burger::before {
  content: "☰";
  display: block;
  line-height: 44px;
  text-align: center;
}

/* ==========  HERO (just colours/spacing)  ========== */
.hero {
  background: linear-gradient(145deg, var(--clr-primary) 20%, var(--clr-primary-lt) 80%);
  color: #fff;
  text-align: center;
  padding: 5rem 0 4rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.hero-sub   { font-size: 1.1rem; }

/* ==========  TABLE (desktop)  ========== */
.casino-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-block: 2rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.casino-table thead th {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-lt) 100%);
  color: #fff;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
}

.casino-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e8f5;
}

.casino-table tbody tr:nth-child(even) {
  background: #f8faff;
}

/* ==========  FOOTER  ========== */
.site-footer {
  background: #3A0519;
  color: #c9d1ee;
  margin-top: 4rem;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #c9d1ee;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--clr-accent);
}

/* social icons */
.socials img {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #312e81;
  color: #c9d1ee;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.socials img:hover {
  transform: scale(1.12);             /* subtle enlargement */                     /* keep original fg   */
}
/* copyright line */
.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #8b94c1;
}

/* ==========  BACK-TO-TOP BUTTON  ========== */
.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #EF88AD;
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 10000;    /* stay above everything */
}

/* fallback arrow if icon font fails */
.back-top::before {
  content: "↑";
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: #A53860;
  color: #000;
}

/* ==========  MEDIA QUERIES  ========== */

/* Mobile – hide nav list until burger clicked */
@media (max-width: 768px) {
  .burger { display: inline-flex; }      /* show burger */

  .nav-list {
    display: none;                       /* hide list */
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    right: 0;
    top: 100%;
    width: 220px;
    background: var(--clr-primary);
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-list.open {                       /* toggled by JS */
    display: flex;
  }

  /* footer stack */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}

/* Very small screens – make table horizontally scrollable */
@media (max-width: 600px) {
  .casino-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.85rem;
  }

  .casino-table thead th,
  .casino-table tbody td {
    padding: 0.75rem 0.75rem;
  }
}


/* ===== Pros & Cons section =========================== */
.pros-cons ul {
  list-style: none;          /* remove default bullets   */
  padding-left: 0;           /* flush left               */
}

.pros-cons {
  margin-block: 3rem;
}

.pros-cons h2 {
  font-family: 'Fjord One', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1.5rem;
  color: var(--clr-dark);
}

.pros-cons__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* shared card look */
.pros-cons .card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}

.pros-cons .card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* icon colours */
.card.pros   h3 i { color: #16a34a; }   /* green check */
.card.cons   h3 i { color: #dc2626; }   /* red cross  */

/* bullet list */
.pros-cons ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.pros-cons ul li {
  position: relative;
  padding-left: 1.25rem;     /* space for the symbol     */
}

.card.pros ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;            /* keep green if you like   */
  font-weight: 700;
}

.card.cons ul li::before {
  content: "–";              /* en dash minus            */
  position: absolute;
  left: 0;
  top: 0;
  color: #dc2626;            /* keep red if you like     */
  font-weight: 700;
}

/* custom bullet symbols */
.card.pros ul li::marker { color: #16a34a; }
.card.cons ul li::marker { color: #dc2626; }

/* ===== Responsive tweak ===== */
@media (max-width: 600px) {
  .pros-cons ul { font-size: 0.9rem; }
}




/* =====================================================
   BULLET LISTS
   • .bullet           – default blue bullets
   • .bullet--accent   – yellow accent bullets
   • .bullet--check    – green checkmark bullets
   ===================================================== */

.bullet,
.bullet--accent,
.bullet--check {
  list-style: none;          /* remove browser bullets   */
  padding-left: 0;           /* flush against container  */
  display: flex;
  flex-direction: column;
  gap: .55rem;               /* vertical spacing         */
  font-size: .95rem;
}

/* shared li layout */
.bullet li,
.bullet--accent li,
.bullet--check li {
  position: relative;
  padding-left: 1.4rem;      /* room for custom marker   */
  line-height: 1.5;
}

/* ------- default blue dot ------- */
.bullet li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;                /* vertically centre circle */
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clr-primary);
}

/* ------- yellow accent dot ------- */
.bullet--accent li::before {
  background: var(--clr-accent);
}

/* ------- green ✔ check ------- */
.bullet--check li::before {
  content: "✔";
  left: .05rem;              /* align text check */
  top: 0;
  font-size: .87rem;
  color: #16a34a;
  background: none;
}

/* small screens – tighten spacing if desired */
@media (max-width: 600px) {
  .bullet,
  .bullet--accent,
  .bullet--check {
    font-size: .9rem;
  }
}


/* =====================================================
   NUMBERED LISTS
   • .numbered            – blue circular numbers
   • .numbered--accent    – yellow circular numbers
   ===================================================== */

.numbered,
.numbered--accent {
  list-style: none;          /* remove default 1. 2. 3.  */
  counter-reset: step;       /* start custom counter      */
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .95rem;
}

.numbered li {
  position: relative;
  padding-left: 2.25rem;     /* space for badge           */
  line-height: 1.5;
  counter-increment: step;   /* add 1 for each <li>       */
}

/* ---- blue badge (default) ---- */
.numbered li::before,
.numbered--accent li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- yellow badge variant ---- */
.numbered--accent li::before {
  background: var(--clr-accent);
  color: var(--clr-dark);
}

/* small screens – shrink badges slightly */
@media (max-width: 600px) {
  .numbered li::before,
  .numbered--accent li::before {
    width: 1.3rem;
    height: 1.3rem;
    font-size: .75rem;
  }
}


/* =====================================================
   TYPOGRAPHY INSIDE .container.content
   ===================================================== */
.container.content {
  /* narrower max-width for easier reading on large screens */
  max-width: 1000px;
}

/* ---------- Paragraphs ---------- */
.container.content p {
  font-size: 1.05rem;          /* slight bump from base  */
  line-height: 1.75;
  margin-block: 1.15rem;
  color: var(--clr-dark);
}

/* ---------- Headings ---------- */
.container.content h2,
.container.content h3,
.container.content h4 {
  font-family: 'Fjord One', serif;
  line-height: 1.35;
  color: var(--clr-dark);
  letter-spacing: 0.2px;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
}

/* H2 — left accent bar + larger size */
.container.content h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  position: relative;
  padding-left: 0.75rem;
}

.container.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 3px;
  background: var(--clr-primary);
}

/* H3 — subtle underline */
.container.content h3 {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--clr-accent);
  display: inline-block;
}

/* H4 — uppercase label style */
.container.content h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--clr-primary);
  margin-top: 1.8rem;
}


/* ===== Language switch (flag) ===================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;      /* same tap-target as burger */
  height: 50px;
  margin-left: 0.75rem;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.lang-switch img {
  width: 34px;      /* flag size */
  height: 34px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.lang-switch:hover {
  transform: scale(1.12);    /* gentle zoom like social icons */
}

/* keep flag visible on small screens */
@media (max-width: 768px) {
  /* push burger & flag to the right (nav list becomes absolute) */
  .lang-switch { order: 10; }

}

/* === TOP CASINO LIST STYLES === */

/* Section title над топом */
.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #212936;
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Wrapper для списку казино */
.casino-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Карточка казино */
.casino-card {
  position: relative;              /* для бейджа rank */
  display: flex;
  flex-direction: row;
  background: #212936;             /* фон карточки */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  border-left: 4px solid #4e80ee;  /* акцентна лінія зліва */
  padding: 15px;                   /* відступи всередині карточки */
}

/* Бейдж з номером (rank) */
.rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: #4e80ee;
  color: #ffffff;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Колонка з логотипом */
.card-image {
  flex: 0 0 20%;         /* ~20% ширини карточки на десктопі */
  max-width: 120px;      /* компактний логотип */
  min-width: 120px;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin: 0 auto;        /* центр на мобілці */
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Основний контент карточки (назва, рейтинг, оффер, кнопки) */
.card-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 180px 200px; /* casino-info | offers | actions */
  align-items: center;
  padding: 1rem;
  gap: 2rem;
}

/* Блок з назвою казино та рейтингом */
.casino-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.casino-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
}

.rating {
  margin-top: 0.25rem;
  display: flex;
}

.rating .star {
  color: #FFD700;
  font-size: 1rem;
  margin-right: 2px;
}

/* Оффер (бонуси + фріспіни) */
.offers {
  width: 180px;
  padding: 1rem 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(140, 172, 229, 0.1);
  border: 1px solid #4e80ee;
  border-radius: 4px;
  justify-self: center;
}

.offers .bonus,
.offers .freespins {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.offers .bonus::before,
.offers .freespins::before {
  content: attr(data-label);
  font-size: 1.25rem;
  font-weight: bold;
  color: #4e80ee;
  margin-bottom: 0.25rem;
}

.offers .amount {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

/* Блок з кнопками та дисклеймером */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-self: center;
}

.btn-primary,
.btn-secondary {
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(45deg, #4e80ee, #8cace5);
  color: #ffffff;
  animation: earthquake 4s ease-in-out infinite;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #8cace5, #4e80ee);
}

.btn-secondary {
  width: 160px;
  padding: 0.75rem;
  font-size: 0.85rem;
  background: #212936;
  color: #8cace5;
  border: 1px solid #8cace5;
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.disclaimer {
  font-size: 0.75rem;
  color: #ffffff;
  margin-top: 0.5rem;
  text-align: center;
}

/* Анімація кнопки Play Now */
@keyframes earthquake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  2%   { transform: translate(-2px, 1px) rotate(-1deg); }
  4%   { transform: translate(-2px, -1px) rotate(1deg); }
  6%   { transform: translate(2px, 1px) rotate(0deg); }
  8%   { transform: translate(2px, -1px) rotate(1deg); }
  10%  { transform: translate(-2px, 1px) rotate(-1deg); }
  11%, 100% { transform: translate(0, 0) rotate(0deg); }
}

/* === RESPONSIVE === */

/* Десктоп: зсуваємо назву казино та рейтинг праворуч */
@media (min-width: 768px) {
  .casino-info {
    margin-left: 75px;
    text-align: left;
  }

  .card-image {
    max-width: 200px;
    margin-right: 20px; /* відступ між логотипом і контентом */
  }
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .casino-info {
    align-items: center;
    text-align: center;
    margin-left: 0;
  }

  .card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto 1rem;
  }

  .offers {
    width: 80%;
    margin: 0 auto 1rem;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 48%;
  }

  .disclaimer {
    order: 1;
    width: 100%;
    margin-top: 0.75rem;
  }
}
