/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #0b1422;
  --color-bg-alt: #111d30;
  --color-surface: #162236;
  --color-surface-hover: #1c2d47;
  --color-gold: #d4af37;
  --color-gold-light: #f0c75e;
  --color-gold-dark: #a8892a;
  --color-text: #e8edf5;
  --color-text-muted: #94a3b8;
  --color-border: rgba(212, 175, 55, 0.18);
  --color-success: #34d399;
  --color-error: #f87171;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --max-width: 1140px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  padding-left: 1.4rem;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 2rem 0 1rem;
  color: var(--color-gold-light);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
}

.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 34, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-link img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

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

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.08);
}

/* ===== Hero / Intro ===== */
.hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-intro {
  max-width: 820px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-intro p {
  font-size: 1.05rem;
}

.content-illustration {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background: var(--color-surface);
}

.content-illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.content-illustration--hero {
  margin: 0;
  aspect-ratio: 800 / 533;
}

/* ===== Casino Widget ===== */
.widget-section {
  padding: 2rem 0;
}

.widget-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.widget-wrapper iframe {
  width: 100%;
  border: none;
  display: block;
  overflow: hidden;
  min-height: 200px;
}

/* ===== Author Card ===== */
.author-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.author-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
}

.author-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.author-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.author-card__role {
  font-size: 0.9rem;
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
}

.author-card__bio {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== Content Blocks ===== */
.content-block {
  max-width: 820px;
}

.content-block ul,
.content-block ol {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.content-block li {
  margin-bottom: 0.4rem;
}

.content-block li::marker {
  color: var(--color-gold);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition);
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.35);
}

.info-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--color-gold-light);
}

/* ===== Article Page ===== */
.page-header {
  padding: 2.5rem 0 1.5rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  max-width: 820px;
}

.page-header .meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.article-content {
  padding: 2.5rem 0 3rem;
}

.article-content h2 {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

/* ===== 404 Page ===== */
.error-page {
  text-align: center;
  padding: 5rem 1.25rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-page__code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page p {
  max-width: 480px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #0b1422;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  color: #0b1422;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1rem;
  color: var(--color-gold-light);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.925rem;
}

.footer-col a:hover {
  color: var(--color-gold-light);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-gold);
}

.contact-item a {
  color: var(--color-text-muted);
  word-break: break-word;
}

.contact-item a:hover {
  color: var(--color-gold-light);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.form-message {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(248, 113, 113, 0.12);
  color: var(--color-error);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-bottom__legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-gold-light);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.footer-bottom p {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-bottom__disclaimers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-disclaimer,
.footer-affiliate {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-text a {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: none;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 20, 34, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
  }

  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-card__photo {
    margin: 0 auto;
  }

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

  .content-illustration--hero {
    order: -1;
    max-width: 520px;
    margin: 0 auto 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* ===== Homepage long-form content ===== */
.homepage-content {
  max-width: 820px;
}

.widget-section--inline {
  padding: 1.5rem 0;
  margin: 1rem 0 2rem;
}

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc__title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--color-gold-light);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

.toc a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--color-gold-light);
}

.casino-review {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.casino-review__title {
  margin-top: 0;
  color: var(--color-gold-light);
}

.casino-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  list-style: none;
}

.casino-spec-item {
  min-width: 0;
}

.casino-specs dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  font-weight: 600;
  margin: 0;
}

.casino-specs dd {
  margin: 0.35rem 0 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.pros-cons h4 {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.pros-cons ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.pros .cons,
.pros-cons .pros ul {
  color: var(--color-text-muted);
}

.pros-cons .pros h4 {
  color: var(--color-success);
}

.pros-cons .cons h4 {
  color: var(--color-error);
}

.warning-list {
  margin: 1rem 0 1.5rem;
}

.warning-list li {
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.self-test {
  margin: 1rem 0 1.5rem;
  color: var(--color-text-muted);
}

.self-test li {
  margin-bottom: 0.65rem;
}

.faq-list {
  margin: 1rem 0;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  padding: 0.75rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+ ";
  color: var(--color-gold);
}

.faq-item[open] summary::before {
  content: "− ";
}

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.note {
  padding: 0.75rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
}

.lead-label {
  margin: 1.25rem 0 0.5rem;
}

.content-image {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--color-gold-dark) var(--color-bg-alt);
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.table-wrap::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 4px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  min-width: 560px;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}

.data-table thead th {
  background: linear-gradient(180deg, #1a2d4a 0%, var(--color-bg-alt) 100%);
  color: var(--color-gold-light);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
}

.data-table tbody th {
  color: var(--color-text);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.06);
  white-space: nowrap;
}

.data-table tbody td {
  color: var(--color-text-muted);
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background: rgba(212, 175, 55, 0.08);
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: none;
}

.data-table tbody td:first-child {
  min-width: 140px;
}

.lead-label + .table-wrap {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .data-table {
    font-size: 0.8125rem;
    min-width: 480px;
  }

  .data-table th,
  .data-table td {
    padding: 0.7rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .toc ol {
    columns: 1;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .casino-specs {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .casino-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}
