/* ===================================================
   SPRIBE SA — Main Stylesheet
   Palette: White #FFFFFF | Red #E8192C | Dark #1A1A2E | Grey #F5F5F7
   =================================================== */

:root {
  --red: #E8192C;
  --red-dark: #C0121E;
  --red-light: #FF3347;
  --white: #FFFFFF;
  --black: #0D0D0D;
  --dark: #1A1A2E;
  --text: #222222;
  --muted: #666666;
  --grey-bg: #F5F5F7;
  --grey-border: #E8E8E8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }

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

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section--lg { padding: 96px 0; }

.section--grey { background: var(--grey-bg); }
.section--dark { background: var(--dark); color: var(--white); }
.section--red { background: var(--red); color: var(--white); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 2px 12px rgba(232,25,44,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  font-size: 1.1rem;
  letter-spacing: -1px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
}
.logo-text span { color: var(--red); }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-primary a {
  font-weight: 500;
  font-size: .9rem;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-primary a:hover,
.nav-primary a.active { background: var(--grey-bg); color: var(--red); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2D1B2E 50%, #1A0A10 100%);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,25,44,.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,25,44,.15);
  border: 1px solid rgba(232,25,44,.4);
  color: #FF6B7A;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__eyebrow::before { content: '✈'; font-size: 1rem; }

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red-light);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero__stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.hero__stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn--outline:hover { border-color: var(--white); color: var(--white); }

.btn--outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--outline-red:hover { background: var(--red); color: var(--white); }

.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  padding: 28px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.stats-bar__item-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  display: block;
}

.stats-bar__item-label {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  margin-bottom: 40px;
}

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

.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}

.section-header h2 { margin-bottom: 12px; }

.section-header p {
  color: var(--muted);
  max-width: 560px;
}

.section-header--center p { margin-left: auto; margin-right: auto; }

/* ===== GAME CARDS ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.game-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark), #2D1B2E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--red-light);
  position: relative;
}

.game-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.game-card__body { padding: 16px; }

.game-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.game-card__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--grey-bg);
  color: var(--muted);
}

.meta-tag--rtp { background: #FFF3E0; color: #E65100; }
.meta-tag--crash { background: #FCE4EC; color: var(--red); }

.game-card__actions {
  display: flex;
  gap: 8px;
}

.game-card__actions .btn { flex: 1; justify-content: center; }

/* ===== CASINO CARDS ===== */
.casinos-grid {
  display: grid;
  gap: 16px;
}

.casino-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s;
}

.casino-card:hover { box-shadow: var(--shadow); }

.casino-card__rank {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  text-align: center;
}

.casino-card__logo {
  width: 80px;
  height: 48px;
  background: var(--grey-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: var(--dark);
  border: 1px solid var(--grey-border);
  text-align: center;
  padding: 4px;
}

.casino-card__info { flex: 1; }
.casino-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.casino-card__bonus { color: var(--red); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.casino-card__features { display: flex; gap: 6px; flex-wrap: wrap; }
.casino-card__feature {
  font-size: .72rem;
  background: var(--grey-bg);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 4px;
}

.casino-card__cta { display: flex; flex-direction: column; gap: 8px; }

/* ===== FAQ ===== */
.faq-list { list-style: none; padding: 0; }
.faq-item {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--red);
  flex-shrink: 0;
  transition: transform .3s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-border);
  margin-bottom: 0;
  background: var(--grey-bg);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .85rem;
}

.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2D1B2E 100%);
  color: var(--white);
  padding: 56px 0 48px;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 600px; }

/* ===== CONTENT LAYOUT ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.content-main { min-width: 0; }

.content-sidebar {
  position: sticky;
  top: 90px;
}

/* ===== INFO BOX / STATS CARD ===== */
.info-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.info-card__header {
  background: var(--dark);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 700;
  font-size: .9rem;
}

.info-card__body { padding: 16px; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--grey-border);
  font-size: .9rem;
}

.info-row:last-child { border-bottom: none; }
.info-row__label { color: var(--muted); }
.info-row__value { font-weight: 600; color: var(--dark); text-align: right; }
.info-row__value--red { color: var(--red); }

/* ===== CONTENT PROSE ===== */
.prose h2 { margin: 36px 0 14px; color: var(--dark); }
.prose h3 { margin: 24px 0 10px; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--red); text-decoration: underline; }

/* ===== ALERT CALLOUT ===== */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  background: #FFF5F6;
  margin: 24px 0;
  font-size: .95rem;
}

.callout strong { color: var(--red); }

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tag--red { background: #FCE4EC; color: var(--red); }
.tag--green { background: #E8F5E9; color: #2E7D32; }
.tag--blue { background: #E3F2FD; color: #1565C0; }
.tag--grey { background: var(--grey-bg); color: var(--muted); }

/* ===== QUICK LINKS SIDEBAR ===== */
.quick-links {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.quick-links__title {
  background: var(--red);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
  font-size: .9rem;
}

.quick-links__list { list-style: none; padding: 8px 0; margin: 0; }
.quick-links__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--grey-border);
  transition: background .15s, color .15s;
}
.quick-links__list li:last-child a { border-bottom: none; }
.quick-links__list a:hover { background: var(--grey-bg); color: var(--red); }
.quick-links__list a::before { content: '→'; color: var(--red); font-size: .8rem; }

/* ===== RELATED GRID ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.blog-card__image {
  height: 160px;
  background: linear-gradient(135deg, var(--dark), #2D1B2E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.blog-card__tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
  margin-bottom: 8px;
}

.blog-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card__excerpt {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card__meta { font-size: .8rem; color: var(--muted); }

/* ===== TABLE ===== */
.rtp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rtp-table th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.rtp-table td { padding: 11px 14px; border-bottom: 1px solid var(--grey-border); }
.rtp-table tr:hover td { background: var(--grey-bg); }
.rtp-table tr:last-child td { border-bottom: none; }
.rtp-value { font-weight: 700; color: var(--red); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}

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

.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text span { color: var(--red-light); }
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-col a:hover { color: var(--white); }

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-disclaimer {
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}

/* ===== UTILITY ===== */
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .casino-card { grid-template-columns: 1fr; }
  .casino-card__cta { flex-direction: row; }
}

@media (max-width: 700px) {
  .nav-primary { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--red); flex-direction: column; padding: 12px; gap: 0; }
  .nav-primary.open { display: flex; }
  .nav-primary a { display: block; padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero__stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom__inner { flex-direction: column; gap: 8px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .casino-card__cta { flex-direction: column; }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .game-card { transition: transform .25s ease, box-shadow .25s ease; }
  .blog-card { transition: transform .25s ease, box-shadow .25s ease; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .quick-links, .casino-card__cta { display: none; }
}
