/* =============================================================
   Lamba Bet — stylesheet
   Structuur: tokens (:root) -> layout -> componenten -> mobile
   ============================================================= */

:root {
  --bg:        #0D1424;
  --bg-2:      #111B31;
  --surface:   #16213B;
  --line:      #24314F;
  --ink:       #EBEFF7;
  --muted:     #9BA8BF;
  --pink:      #FFB71E;
  --pink-2:    #FFC94D;
  --indigo:    #3D4E8E;
  --indigo-2:  #4A5DA6;
  --radius: 14px;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,20,36,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-left { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; transition: color .2s ease; }
.nav-links a:hover { color: var(--pink); }
.brand img { display: block; height: 44px; width: auto; }
.footer-brand .brand img { height: 52px; margin-bottom: 14px; }
.nav-right { display: flex; align-items: center; gap: 14px; margin-right: -10px; }

.lang-select { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; color: var(--ink); font-family: "Inter", sans-serif;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--pink); }
.lang-toggle .chev { transition: transform .2s ease; }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; list-style: none; display: none; z-index: 60;
  box-shadow: 0 20px 44px -16px rgba(0,0,0,.65);
}
.lang-menu.open { display: block; }
.lang-menu li button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 0; color: var(--ink);
  font-family: "Inter", sans-serif; font-size: 14.5px; font-weight: 500;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left;
}
.lang-menu li button:hover { background: rgba(255,255,255,.06); }

.flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; display: block; flex: none; border: 1px solid rgba(255,255,255,.15); }
.flag svg { display: block; width: 100%; height: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px;
  padding: 11px 24px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; white-space: nowrap;
}
.btn-outline { background: transparent; color: var(--pink); border-color: var(--pink); }
.btn-outline:hover { background: rgba(255,183,30,.14); transform: translateY(-1px); }
.btn-indigo { background: var(--indigo); color: #FFFFFF; border-color: var(--indigo); }
.btn-indigo:hover { background: var(--indigo-2); border-color: var(--indigo-2); transform: translateY(-1px); }

/* ===================== SEARCH ROW ===================== */
.search-row { display: flex; gap: 16px; margin: 22px 0 8px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; height: 62px; }
.search-box svg { color: var(--muted); flex: none; }
.search-box input { flex: 1; background: transparent; border: 0; outline: none; color: var(--ink); font-family: "Inter", sans-serif; font-size: 17px; }
.search-box input::placeholder { color: var(--muted); }
.filter-btn { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--pink); font-family: "Inter", sans-serif; font-weight: 600; font-size: 16px; padding: 0 26px; height: 62px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.filter-btn:hover { border-color: var(--pink); background: rgba(255,183,30,.08); }

/* ===================== HERO ===================== */
.hero { padding: 44px 0 24px; }
.hero h1 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.12; color: var(--pink); margin-bottom: 26px; max-width: 1100px; }
.hero p { font-size: 18px; line-height: 1.8; color: #FFFFFF; max-width: 1100px; margin-bottom: 18px; }

/* ===================== ARTICLE ===================== */
.article { padding: 8px 0 64px; }
.article h2 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); color: #FFFFFF; letter-spacing: .01em; margin: 46px 0 14px; }
.article h3 { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.12rem; color: #FFFFFF; margin: 26px 0 6px; }
.article p { font-size: 17px; line-height: 1.8; color: #FFFFFF; margin-bottom: 16px; max-width: 1100px; }
.article-cta { text-align: center; margin: 34px 0 40px; }
.article-cta .btn { padding: 15px 34px; font-size: 16px; border-radius: 12px; }

/* ===================== TABLE ===================== */
.games-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.games-table th, .games-table td {
  text-align: left;
  padding: 15px 24px;
  font-size: 15.5px;
  border: 1px solid #FFFFFF;
  background: transparent;
  color: #FFFFFF;
}
.games-table thead th { font-family: "Inter", sans-serif; font-weight: 700; }
.games-table thead th:first-child { width: 42%; }
.games-table tbody td:first-child { color: #FFFFFF; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 54px 0 40px; }
.footer-brand h4 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; color: var(--pink); margin-bottom: 14px; letter-spacing: .03em; }
.footer-brand p { max-width: 320px; line-height: 1.7; color: var(--muted); font-size: 14.5px; }
.footer-col h4 { font-family: "Inter", sans-serif; font-size: 15px; font-weight: 700; color: #FFFFFF; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .2s ease; }
.footer-col a:hover { color: #FFFFFF; }

.footer-responsible { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-responsible .age { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,107,107,.12); color: #FFB4B4; border: 1px solid rgba(255,107,107,.35); padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; flex: none; }
.footer-responsible .rg-text { font-size: 14px; color: var(--muted); flex: 1; min-width: 260px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 30px; font-size: 13px; color: rgba(255,255,255,.5); }

@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.article-img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 20px 0 26px; }

/* FAQ accordion */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: rgba(255,183,30,.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.02rem; color: #FFFFFF;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  font-size: 26px; line-height: 1; color: var(--pink); font-family: "Inter", sans-serif;
  transition: transform .2s ease;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer {
  margin: 0 22px; padding: 15px 0 20px;
  border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.75; color: #FFFFFF;
}

/* ===================== MOBILE ===================== */
.burger { display: none; background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.mobile-menu { display: none; }
.mobile-cta { display: none; }

@media (max-width: 720px) {
  .nav-links, .nav-right, .search-row { display: none !important; }
  .burger { display: inline-flex; }
  .nav { justify-content: space-between; }

  .mobile-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 28px 18px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu > a {
    display: block; padding: 14px 0; color: var(--ink);
    font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--line);
  }
  .mm-langs { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }
  .mm-langs button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: transparent; border: 0; color: var(--ink);
    font-family: "Inter", sans-serif; font-size: 15px; font-weight: 500;
    padding: 12px 0; cursor: pointer; text-align: left;
  }

  .mobile-cta {
    display: flex; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(13,20,36,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; padding: 13px; }
  body { padding-bottom: 82px; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
  .search-row { flex-direction: column; }
  .filter-btn { width: 100%; justify-content: center; }
  .hero { padding: 32px 0 20px; }
}
@media (max-width: 620px) {
  .games-table th, .games-table td { padding: 13px 16px; font-size: 14.5px; }
  .games-table thead th:first-child { width: 46%; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .btn { padding: 10px 16px; font-size: 14px; }
  .nav-right { gap: 8px; }
}
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
