/* ============================================================
   BITCOINJACKPOT.ONLINE — Base Styles
   ============================================================ */

@import 'variables.css';

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--line-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background-color: var(--color-gold);
  color: var(--color-bg-dark);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--line-tight);
  letter-spacing: var(--letter-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); font-weight: var(--font-extrabold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  font-weight: var(--font-semibold); }
h5 { font-size: var(--text-lg);  font-weight: var(--font-semibold); }
h6 { font-size: var(--text-md);  font-weight: var(--font-semibold); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-relaxed);
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-teal-dark); }

strong, b { font-weight: var(--font-semibold); }
em, i     { font-style: italic; }

small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

blockquote {
  border-left: 4px solid var(--color-gold);
  padding: var(--space-4) var(--space-6);
  background: var(--color-gold-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text);
  margin: var(--space-6) 0;
}

blockquote p { margin-bottom: 0; }

ul, ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--line-relaxed);
}

ul li::marker { color: var(--color-gold); }
ol li::marker { color: var(--color-gold); font-weight: var(--font-semibold); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-teal-dark);
}

pre {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  line-height: 1.7;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

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

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }
.container--lg  { max-width: var(--container-lg); }
.container--2xl { max-width: var(--container-2xl); }

.section {
  padding-block: var(--space-16);
}

.section--sm { padding-block: var(--space-10); }
.section--lg { padding-block: var(--space-24); }

/* ── Grid ─────────────────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ── Flex Utilities ───────────────────────────────────────── */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ── Text Utilities ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-gold   { color: var(--color-gold); }
.text-teal   { color: var(--color-teal); }
.text-muted  { color: var(--color-text-muted); }
.text-inverse{ color: var(--color-text-inverse); }
.text-sm     { font-size: var(--text-sm); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.font-bold   { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }

/* ── Spacing Utilities ────────────────────────────────────── */
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

/* ── Visibility ───────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Page Layout (header offset) ─────────────────────────── */
.page-body {
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── Section Dividers ─────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  margin: var(--space-4) auto;
}

.divider--left { margin-left: 0; }

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: var(--space-4);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.breadcrumb .sep {
  color: var(--color-text-faint);
  font-size: 0.7em;
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: var(--font-medium);
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  background-color: var(--color-bg-dark);
  background-image: url('/assets/images/btcslots-hero.webp');
  background-size: cover;
  background-position: center center;
  position: relative;
  padding-block-start: var(--space-8);
  padding-block-end: var(--space-20);
  overflow: hidden;
}

/* Main overlay: left half dark for text legibility, right half reveals image */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20,18,16,0.96) 0%,
    rgba(20,18,16,0.82) 45%,
    rgba(20,18,16,0.45) 70%,
    rgba(20,18,16,0.15) 100%
  );
}

/* Bottom fade so hero blends into the page body */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-dark));
}

.page-hero--short {
  padding-block-start: var(--space-10);
  padding-block-end: var(--space-12);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

/* Breadcrumb inside hero — needs light colours on dark bg */
.page-hero .breadcrumb {
  padding-block: 0;
  margin-bottom: var(--space-5);
}

.page-hero .breadcrumb,
.page-hero .breadcrumb a {
  color: rgba(245,240,232,0.55);
}

.page-hero .breadcrumb a:hover {
  color: var(--color-gold);
}

.page-hero .breadcrumb__sep {
  color: rgba(245,240,232,0.3);
}

.page-hero .breadcrumb span:last-child {
  color: rgba(245,240,232,0.8);
}

.page-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--letter-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 3.2vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  line-height: var(--line-tight);
  color: var(--color-text-inverse);
  margin: 0 0 var(--space-5);
  letter-spacing: var(--letter-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero h1 span { color: var(--color-gold); }

.page-hero__sub {
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
  color: rgba(245,240,232,0.78);
  margin: 0 0 var(--space-6);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: rgba(245,240,232,0.5);
  border-top: 1px solid rgba(245,240,232,0.1);
  padding-top: var(--space-4);
}

.page-hero__meta strong {
  color: rgba(245,240,232,0.85);
  font-weight: var(--font-semibold);
}

.page-hero__meta a {
  color: var(--color-gold-light);
  text-decoration: none;
}

.page-hero__meta a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Warning variant (responsible gambling page) */
.page-hero--warning::before {
  background: linear-gradient(
    to right,
    rgba(20,18,16,0.97) 0%,
    rgba(20,18,16,0.88) 60%,
    rgba(192,9,31,0.15) 100%
  );
}

@media (max-width: 700px) {
  .page-hero::before {
    background: rgba(20,18,16,0.88);
  }
  .page-hero::after { display: none; }
  .page-hero h1 { font-size: clamp(var(--text-base), 5vw, var(--text-2xl)); white-space: normal; }
  .page-hero__sub { font-size: var(--text-base); }
}

/* ── Animate on scroll ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back to Top Button ───────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-top);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

#back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsible Gambling Bar ─────────────────────────────── */
.rg-bar {
  background: var(--color-warning-bg);
  border-top: 1px solid #F7C460;
  padding: var(--space-3) 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-warning);
}

.rg-bar a { color: var(--color-warning); text-decoration: underline; }

/* ── Age Warning Badge ────────────────────────────────────── */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-danger);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--font-extrabold);
  font-family: var(--font-heading);
  flex-shrink: 0;
}

/* ── Disclosure Notice ────────────────────────────────────── */
.disclosure-notice {
  background: var(--color-info-bg);
  border: 1px solid var(--color-teal-light);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-teal-dark);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-8);
}

.disclosure-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-teal);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-4); }
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-12); }
  #back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .page-hero { padding-block: var(--space-12); }
}
