/**
 * global.css — Base typography, layout, buttons, shared components
 */
html { font-family: var(--font-family-base); }

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-inline);
}

main { display: block; }

section + section,
.page-section {
  margin-top: calc(var(--space-section) / 2);
}

h1, h2, h3 {
  font-family: var(--font-family-base);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--fs-h2); color: var(--color-heading-gold); }
h3 { font-size: var(--fs-h3); color: var(--color-white); }

.page-section > h2 { margin-bottom: var(--space-h2-text); }
.page-section > h2 + p,
.page-section__intro { margin-bottom: var(--space-h2-text); }
.page-section h3 { margin-top: var(--space-section); margin-bottom: var(--space-h3-text); }
.page-section h3:first-of-type { margin-top: var(--space-h3-text); }

.page-section p + p,
.page-section li + li { margin-top: 0; }
.page-section p { margin-bottom: var(--space-paragraph); }
.page-section ul, .page-section ol {
  padding-left: 1.25rem;
  margin-bottom: var(--space-paragraph);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-section ol { padding-left: 1.5rem; }

/* Restore bullet/number markers: reset.css strips list-style from any
   [role="list"], which every content <ul>/<ol> on the site uses for a11y. */
.page-section ul[role='list'] { list-style: disc; }
.page-section ol[role='list'] { list-style: decimal; }
.page-section ul[role='list'] li::marker,
.page-section ol[role='list'] li::marker {
  color: var(--color-heading-gold);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-accent-light);
  color: var(--color-text-on-btn);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-card) 0;
  font-weight: var(--fw-semibold);
}
.skip-link:focus {
  left: 0;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-card);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  white-space: nowrap;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient-btn-accent);
  color: var(--color-text-on-btn);
}
.btn--primary:hover { opacity: 0.92; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-btn-secondary-border);
  color: var(--color-white);
}
.btn--outline:hover { background: rgba(201, 155, 94, 0.12); }

.btn--block { width: 100%; }

/* CTA buttons placed directly in a text block (e.g. "Obține un Bonus") should
   always stay compact — sized to their label, like the hero CTA — never
   stretch full-width. */
.page-section > a.btn:not(.btn--block) {
  width: fit-content;
  align-self: flex-start;
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-card);
  padding: var(--space-card-padding);
}

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  color: var(--color-text-primary);
}
.breadcrumb a { color: var(--color-text-primary); transition: color var(--transition-base); }
.breadcrumb a:hover { color: var(--color-heading-gold); }
.breadcrumb__current { color: var(--color-white); }

/* ── Data table (characteristics, deposits, withdrawals, etc.) ── */
.data-table-wrap { overflow-x: auto; margin-bottom: var(--space-paragraph); border-radius: var(--radius-card); }
.data-table {
  min-width: 100%;
  background-color: var(--color-bg-dark);
}
.data-table caption { text-align: left; padding: 1rem 1rem 0; color: var(--color-heading-gold); font-weight: var(--fw-semibold); }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  font-size: var(--fs-small);
  border-bottom: 1px solid rgba(168, 161, 154, 0.14);
}
.data-table th {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  background-color: rgba(255, 179, 117, 0.08);
}
.data-table tr:last-child td { border-bottom: none; }

/* ── Content section (H2 + text + image pattern) ───────── */
.content-section__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: var(--space-h2-text);
  aspect-ratio: 16 / 9;
}
.content-section__media img { width: 100%; height: 100%; object-fit: cover; }

/* ── 18+ badge ──────────────────────────────────────── */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-danger);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
}

/* ── Utility ────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.text-center { text-align: center; }

/* ── Contextual in-text internal links (inline anchors inside body copy) ── */
.text-link {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(255, 179, 117, 0.45);
  text-underline-offset: 2px;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--color-heading-gold);
  text-decoration-color: currentColor;
}

/* ── Scroll fade-in (opt-in via [data-animate], driven by js/animations.js) ── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.home-app-downloads,
.app-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.home-support-emails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.home-support-emails a { color: var(--color-heading-gold); }

.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 1024px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}
