/* =========================================================
   YEP Casino LV - Shared Stylesheet
   This stylesheet supports:
   1) Desktop and mobile layouts
   2) Accessible contrast and focus states
   3) Hero banner with centered CTA on translucent panel
   4) Mobile "pinned screen" CTA button
   5) Mobile-adapted data tables
   ========================================================= */

:root {
  --bg: #0b1020;
  --bg-soft: #121936;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f3f6ff;
  --muted: #c6cde5;
  --accent: #7d5cff;
  --accent-2: #2dd4bf;
  --warning: #fbbf24;
  --focus: #93c5fd;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 20% 10%, rgba(125, 92, 255, 0.32), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Skip link helps keyboard/screen-reader users jump directly to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header with sticky behavior for better navigation context */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.8);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
}

/* Header tools: language switcher + mobile menu */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Pill-style language switcher (LV / RU) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-switcher__option {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.lang-switcher__option.is-active,
.lang-switcher__option[aria-current="page"] {
  color: #fff;
  background: linear-gradient(110deg, var(--accent), #a78bfa);
}

.menu-toggle {
  display: none;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

/* Breadcrumb improves SEO structure and discoverability */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.8rem 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--muted);
}

/* Hero uses provided banner with an overlay CTA block */
.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero picture img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.15), rgba(11, 16, 32, 0.55));
}

.hero-cta {
  text-align: center;
  max-width: 720px;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  margin: 0 0 0.8rem;
}

.hero-subtitle {
  margin: 0 auto 1rem;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(110deg, var(--accent), #a78bfa);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(110deg, var(--accent-2), #67e8f9);
  color: #07213b;
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
}

section {
  margin-top: 2rem;
}

.intro,
.feature-grid article,
.table-wrap,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.intro,
.table-wrap {
  padding: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article {
  padding: 1rem;
}

.highlight {
  color: var(--warning);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

/* Desktop table */
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 0.7rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: #fff;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 1rem;
}

.faq-item h3 {
  margin-top: 0;
}

/* Long-form content blocks from source documents */
.content-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.content-section h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.content-section h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: #e8ecff;
}

.content-section p {
  margin: 0.75rem 0;
  color: var(--muted);
}

.content-section p:first-of-type {
  margin-top: 0;
}

.content-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.content-list li {
  margin-bottom: 0.35rem;
}

.content-list a {
  color: #c4b5fd;
}

.inline-cta {
  margin-top: 1rem;
}

footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding: 1rem 0 4.8rem;
  color: var(--muted);
}

/* Pinned mobile CTA for "pin the screen" requirement */
.mobile-sticky-cta {
  display: none;
}

/* Focus styles for keyboard accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Tablet and below */
@media (max-width: 920px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    min-width: 44px;
    min-height: 44px;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
  }

  .header-row {
    flex-wrap: wrap;
  }

  .header-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }
}

/* Mobile layout and table adaptation */
@media (max-width: 680px) {
  .container {
    width: min(100% - 1.2rem, var(--container));
  }

  .hero picture img {
    min-height: 520px;
  }

  .hero-cta {
    width: calc(100% - 1.2rem);
  }

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

  /* Convert standard table to mobile card-table pattern */
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
  }

  td {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    padding-left: 48%;
    position: relative;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.7rem;
    width: 42%;
    color: var(--muted);
    font-weight: 600;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.55rem 0.8rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(11, 16, 32, 0.92);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }

  .mobile-sticky-cta .btn {
    width: 100%;
    text-align: center;
  }
}
