/* ============================================================
   LikeCasino — Main Stylesheet
   Mobile-first, system fonts only, CSS-only FAQ accordion
   ============================================================ */

/* ----------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  --base:    #241B4B;
  --deep:    #150F2E;
  --accent:  #F5D547;
  --accent2: #7B6CF6;
  --surface: #F5F4FA;
  --ink:     #181233;
  --muted:   #615A83;

  --radius:  14px;
  --container: 1040px;

  --font-heading: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

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

a {
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--base);
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

/* ----------------------------------------------------------
   4. LAYOUT — CONTAINER
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ----------------------------------------------------------
   5. HEADER
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--base);
  border-bottom: 2px solid var(--deep);
  box-shadow: 0 2px 12px rgba(21, 15, 46, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

/* --- Logo wordmark (CSS/text only) --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--deep);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.logo-text span {
  color: var(--accent);
}

/* --- Navigation --- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  list-style: none;
}

.site-nav li a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.site-nav li a:hover,
.site-nav li a.active {
  background: var(--accent2);
  color: #fff;
  text-decoration: none;
}

.site-nav li a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   6. BONUS BANNER
   ---------------------------------------------------------- */
.bonus-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--base) 60%, #3a2a7a 100%);
  padding: 2rem 0;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

.bonus-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.bonus-banner .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(123, 108, 246, 0.15);
  border: 1px solid var(--accent2);
  border-radius: 99px;
  padding: 0.2rem 0.8rem;
}

.bonus-banner .offer {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0;
  max-width: 680px;
}

.bonus-banner .sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  max-width: 560px;
}

.bonus-banner .fine {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(245, 213, 71, 0.35);
  line-height: 1.4;
}

.btn:hover {
  background: #ffe96a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 213, 71, 0.45);
  text-decoration: none;
  color: var(--deep);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   8. MAIN SECTIONS
   ---------------------------------------------------------- */
main {
  padding-bottom: 3rem;
}

.section {
  padding: 2.5rem 0;
}

.section + .section {
  border-top: 1px solid rgba(97, 90, 131, 0.2);
}

/* ----------------------------------------------------------
   9. TABLES
   ---------------------------------------------------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(97, 90, 131, 0.25);
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 400px;
}

table thead tr {
  background: var(--base);
}

table thead th {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: left;
  padding: 0.75rem 1rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

table tbody tr:nth-child(even) {
  background: rgba(123, 108, 246, 0.07);
}

table tbody tr:nth-child(odd) {
  background: #fff;
}

table tbody tr:hover {
  background: rgba(123, 108, 246, 0.14);
}

table tbody td {
  text-align: left;
  padding: 0.65rem 1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(97, 90, 131, 0.12);
  vertical-align: top;
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* ----------------------------------------------------------
   10. CARDS
   ---------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  background: #fff;
  border: 2px solid rgba(97, 90, 131, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--accent2);
}

.card h3 {
  color: var(--accent2);
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-family: var(--font-heading);
}

.card p {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   11. HIGHLIGHT BOX
   ---------------------------------------------------------- */
.highlight-box {
  background: rgba(245, 213, 71, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.highlight-box strong {
  color: var(--base);
}

/* ----------------------------------------------------------
   12. LISTS (checklist & steps)
   ---------------------------------------------------------- */
.checklist,
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checklist li,
.steps-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--accent2);
  /* checkmark drawn with clip-path / pseudo */
}

.checklist li::after {
  content: '✓';
  position: absolute;
  left: 0.18rem;
  top: -0.02em;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.05rem;
}

.steps-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -0.02em;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.55;
}

/* ----------------------------------------------------------
   13. FAQ ACCORDION (CSS-only, hidden-checkbox technique)
   ---------------------------------------------------------- */
.faq-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hide the checkbox itself */
.faq-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.faq-item {
  border: 2px solid rgba(97, 90, 131, 0.25);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--accent2);
}

/* Label acts as the accordion trigger */
.faq-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--base);
  cursor: pointer;
  user-select: none;
  line-height: 1.35;
  transition: background 0.2s, color 0.2s;
}

.faq-item label:hover {
  background: rgba(123, 108, 246, 0.07);
}

.faq-item label:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Plus/minus icon drawn purely in CSS */
.faq-item label::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--accent2);
  border-radius: 50%;
  background: transparent;
  /* horizontal bar */
  background-image:
    linear-gradient(var(--accent2), var(--accent2)),
    linear-gradient(var(--accent2), var(--accent2));
  background-size: 50% 2px, 2px 50%;
  background-position: center center, center center;
  background-repeat: no-repeat;
  transition: transform 0.25s, border-color 0.2s;
}

/* When checked: minus (rotate so vertical bar disappears via transform) */
.faq-item input[type="checkbox"]:checked + label::after {
  /* rotate 45deg — the "+" becomes "×", or just hide vertical via scaling */
  background-image:
    linear-gradient(var(--accent), var(--accent));
  background-size: 50% 2px;
  background-position: center center;
  background-repeat: no-repeat;
  border-color: var(--accent);
  transform: none;
}

.faq-item input[type="checkbox"]:checked + label {
  background: rgba(123, 108, 246, 0.1);
  color: var(--base);
}

/* Answer panel — closed by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}

.faq-answer p {
  padding: 0 1.2rem 1rem;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
}

/* Open state */
.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 600px;
}

/* ----------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  border-top: 3px solid var(--base);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Footer logo reuses .logo + .logo-mark + .logo-text */
.footer-logo .logo-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer nav */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  list-style: none;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.87rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Footer disclaimer */
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
  max-width: 680px;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Age badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--deep);
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.1rem;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------
   15. INLINE BONUS BANNER (inside section)
   ---------------------------------------------------------- */
/* igrovye-avtomaty uses inline bonus banner */
.section .bonus-banner {
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* ----------------------------------------------------------
   16. BREAKPOINT: 640px
   ---------------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .bonus-banner .offer {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav li a {
    font-size: 0.87rem;
    padding: 0.35rem 0.75rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.4rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ----------------------------------------------------------
   17. BREAKPOINT: 1024px
   ---------------------------------------------------------- */
@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding: 0.85rem 2rem;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .site-nav li a {
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .bonus-banner {
    padding: 3rem 0;
  }

  .bonus-banner .offer {
    font-size: 2.25rem;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-inner {
    gap: 2.5rem;
    align-items: center;
    flex-wrap: nowrap;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .footer-disclaimer {
    text-align: right;
    justify-content: flex-end;
  }
}