/* SuperBull Gaming — base design system, translated from the original React/Tailwind build */

:root {
  --sb-red: #E31E24;
  --sb-red-dark: #B71C1C;
  --sb-red-darker: #c91a1f;
  --sb-black: #000000;
  --sb-bg: #0a0a0a;
  --sb-text: #f5f5f5;
  --sb-text-muted: #a3a3a3;
  --sb-text-faint: #737373;
  --sb-border: rgba(255, 255, 255, 0.1);
  --sb-max-width: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sb-black);
  color: var(--sb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.sb-container {
  max-width: var(--sb-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sb-accent { color: var(--sb-red); }

.sb-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sb-red);
  margin-bottom: 1rem;
}

.sb-section { padding: 5rem 0; }
.sb-section--tight { padding: 3rem 0; }
.sb-section--bg-fade-down { background: linear-gradient(to bottom, #000, var(--sb-bg)); }
.sb-section--bg-fade-up { background: linear-gradient(to bottom, var(--sb-bg), #000); }
.sb-section--dark { background: var(--sb-bg); }
.sb-section--black { background: #000; }

.sb-heading-xl { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.sb-heading-lg { font-size: clamp(2rem, 4vw, 3rem); }
.sb-heading-md { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.sb-lead { font-size: 1.125rem; color: var(--sb-text-muted); max-width: 48rem; }

.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.sb-btn--primary { background: var(--sb-red); color: #fff; }
.sb-btn--primary:hover { background: var(--sb-red-darker); transform: scale(1.04); }
.sb-btn--outline { border-color: rgba(255,255,255,0.2); color: #fff; background: transparent; }
.sb-btn--outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.sb-btn--block { width: 100%; justify-content: center; }
@media (min-width: 640px) { .sb-btn--block { width: auto; } }

.sb-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sb-border);
  border-radius: 1rem;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.sb-card:hover { border-color: rgba(227,30,36,0.4); }

.sb-grid { display: grid; gap: 1.5rem; }
.sb-grid--2 { grid-template-columns: repeat(1, 1fr); }
.sb-grid--3 { grid-template-columns: repeat(1, 1fr); }
.sb-grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .sb-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .sb-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .sb-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Navigation ---------- */
.sb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
.sb-nav.is-scrolled { background: rgba(0,0,0,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.sb-nav__inner { max-width: var(--sb-max-width); margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.sb-nav__logo img { height: 2rem; width: auto; }
.sb-nav__links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .sb-nav__links { display: flex; } }
.sb-nav__link { font-size: 0.875rem; font-weight: 500; color: #d4d4d4; padding: 0.5rem 0; position: relative; }
.sb-nav__link:hover, .sb-nav__link.is-active { color: #fff; }
.sb-nav__link.is-active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--sb-red);
}
.sb-nav__lang { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; color: #d4d4d4; background: none; border: none; cursor: pointer; }
.sb-nav__lang-menu { position: absolute; top: 100%; right: 0; margin-top: 0.5rem; min-width: 140px; background: rgba(0,0,0,0.95); border: 1px solid var(--sb-border); border-radius: 0.5rem; overflow: hidden; display: none; z-index: 50; }
.sb-nav__lang-menu.is-open { display: block; }
.sb-nav__lang-menu button { display: block; width: 100%; text-align: left; padding: 0.6rem 1rem; font-size: 0.875rem; color: #fff; background: none; border: none; cursor: pointer; }
.sb-nav__lang-menu button:hover { background: var(--sb-red); }
.sb-nav__mobile-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 0.5rem; }
@media (max-width: 767px) { .sb-nav__mobile-toggle { display: block; } }
.sb-nav__mobile-panel {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.sb-nav__mobile-panel.is-open { opacity: 1; pointer-events: auto; }
.sb-nav__mobile-panel a { font-size: 1.75rem; font-weight: 500; color: #fff; }
.sb-nav__mobile-panel a:hover { color: var(--sb-red); }

/* ---------- Scroll progress + back to top ---------- */
.sb-scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--sb-red); z-index: 60; width: 0%; }
.sb-back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--sb-red); color: #fff; border: none; display: none; align-items: center; justify-content: center; cursor: pointer;
}
.sb-back-to-top.is-visible { display: flex; }

/* ---------- Hero ---------- */
.sb-hero { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.sb-hero__bg { position: absolute; inset: 0; }
.sb-hero__bg video, .sb-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.sb-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2) 50%, #000); }
.sb-hero__content { position: relative; z-index: 10; max-width: var(--sb-max-width); margin: 0 auto; padding: 0 1.5rem; }
.sb-hero--banner { min-height: 60vh; align-items: flex-end; text-align: left; }
.sb-hero__scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 1.5rem; height: 2.5rem; border: 2px solid rgba(255,255,255,0.3); border-radius: 9999px; display: flex; align-items: flex-start; justify-content: center; padding: 0.5rem 0; z-index: 10; }
.sb-hero__scroll-indicator .dot { width: 4px; height: 8px; background: rgba(255,255,255,0.5); border-radius: 9999px; animation: sb-scroll-dot 2s ease-in-out infinite; }
@keyframes sb-scroll-dot { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.3; } }

/* ---------- Marquee ---------- */
.sb-marquee { overflow: hidden; white-space: nowrap; padding: 1rem 0; border-top: 1px solid var(--sb-border); border-bottom: 1px solid var(--sb-border); background: #000; }
.sb-marquee__track { display: inline-flex; gap: 3rem; animation: sb-marquee 30s linear infinite; }
.sb-marquee--reverse .sb-marquee__track { animation-direction: reverse; }
.sb-marquee__item { font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.15); text-transform: uppercase; letter-spacing: 0.05em; }
@keyframes sb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Carousel (infinite) ---------- */
.sb-carousel { overflow: hidden; }
.sb-carousel__track { display: flex; gap: 1rem; animation: sb-carousel-scroll 40s linear infinite; width: max-content; }
.sb-carousel--right .sb-carousel__track { animation-direction: reverse; }
.sb-carousel__track img { width: 220px; height: 140px; object-fit: cover; border-radius: 0.75rem; }
@keyframes sb-carousel-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Game / News cards ---------- */
.sb-game-card { position: relative; display: block; overflow: hidden; border-radius: 1rem; aspect-ratio: 3/4; }
.sb-game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sb-game-card:hover img { transform: scale(1.08); }
.sb-game-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, #000, transparent 60%); }
.sb-game-card__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem; }
.sb-game-card__badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.6rem; background: var(--sb-red); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; border-radius: 9999px; }

.sb-game-card--listing { aspect-ratio: 3/4; border-radius: 1rem; }
.sb-game-card--listing .sb-game-card__thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.sb-game-card--listing .sb-game-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sb-game-card--listing:hover .sb-game-card__thumb img { transform: scale(1.08); }
.sb-game-card__type-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 600; border-radius: 9999px; background: rgba(227,30,36,0.12); color: var(--sb-red); border: 1px solid rgba(227,30,36,0.35); }
.sb-game-card__new-badge { position: absolute; top: 0.75rem; right: 0.75rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; border-radius: 9999px; background: rgba(0,0,0,0.7); color: var(--sb-red); border: 1px solid rgba(227,30,36,0.4); }
.sb-game-card__new-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sb-red); display: inline-block; animation: sb-pulse 1.6s ease-in-out infinite; }
.sb-game-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.3s ease; }
.sb-game-card:hover .sb-game-card__play, .sb-game-card--listing:hover .sb-game-card__play { opacity: 1; }
.sb-game-card__play span { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--sb-red); display: flex; align-items: center; justify-content: center; }
.sb-game-card__rtp { position: absolute; bottom: 0.75rem; right: 0.75rem; padding: 0.25rem 0.6rem; font-size: 0.7rem; border-radius: 0.5rem; background: rgba(0,0,0,0.7); color: #d4d4d4; border: 1px solid var(--sb-border); opacity: 0; transition: opacity 0.3s ease; }
.sb-game-card--listing:hover .sb-game-card__rtp { opacity: 1; }
@keyframes sb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.sb-games-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .sb-games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sb-games-grid { grid-template-columns: repeat(4, 1fr); } }

.sb-gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .sb-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sb-gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.sb-cinematic-header { position: relative; overflow: hidden; }
.sb-cinematic-header__bg { position: absolute; inset: 0; opacity: 0.1; background-size: cover; background-position: center; }
.sb-cinematic-header__grid { position: absolute; inset: 0; opacity: 0.03; background-image: linear-gradient(rgba(227,30,36,1) 1px, transparent 1px), linear-gradient(90deg, rgba(227,30,36,1) 1px, transparent 1px); background-size: 60px 60px; }

.sb-sort { position: relative; }
.sb-sort__toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--sb-border); border-radius: 0.75rem; color: #d4d4d4; cursor: pointer; font-size: 0.875rem; }
.sb-sort__toggle:hover { border-color: rgba(227,30,36,0.5); color: #fff; }
.sb-sort__menu { position: absolute; right: 0; top: 100%; margin-top: 0.5rem; min-width: 12rem; background: #1a1a1a; border: 1px solid var(--sb-border); border-radius: 0.75rem; overflow: hidden; z-index: 20; display: none; }
.sb-sort__menu.is-open { display: block; }
.sb-sort__menu button { display: block; width: 100%; text-align: left; padding: 0.7rem 1rem; font-size: 0.875rem; color: #d4d4d4; background: none; border: none; cursor: pointer; }
.sb-sort__menu button:hover { background: rgba(255,255,255,0.05); color: #fff; }
.sb-sort__menu button.is-active { background: var(--sb-red); color: #fff; }

.sb-filter-btn { border: 1px solid var(--sb-border); background: transparent; color: #d4d4d4; padding: 0.4rem 1rem; border-radius: 9999px; font-size: 0.875rem; cursor: pointer; transition: all 0.3s ease; }
.sb-filter-btn:hover { border-color: rgba(227,30,36,0.5); color: #fff; }
.sb-filter-btn.is-active { background: var(--sb-red); border-color: var(--sb-red); color: #fff; }

.sb-news-card { display: flex; flex-direction: column; height: 100%; }
.sb-news-card__img { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 1rem 1rem 0 0; }
.sb-news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.sb-news-card:hover .sb-news-card__img img { transform: scale(1.08); }
.sb-news-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

/* ---------- Forms ---------- */
.sb-field { margin-bottom: 1.5rem; }
.sb-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.sb-field input, .sb-field textarea {
  width: 100%; padding: 0.75rem 1rem; background: rgba(0,0,0,0.5); border: 1px solid var(--sb-border);
  border-radius: 0.5rem; color: #fff; font-size: 1rem; font-family: inherit;
}
.sb-field input:focus, .sb-field textarea:focus { outline: none; border-color: var(--sb-red); }

/* ---------- Footer ---------- */
.sb-footer { background: #000; border-top: 1px solid var(--sb-border); }
.sb-footer__newsletter { border-bottom: 1px solid var(--sb-border); padding: 3rem 0; }
.sb-footer__main { padding: 4rem 0; }
.sb-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 768px) { .sb-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.sb-footer__brand { grid-column: span 1; }
@media (min-width: 1024px) { .sb-footer__brand { grid-column: span 2; } }
.sb-footer__logo img { height: 2.5rem; width: auto; margin-bottom: 1.25rem; }
.sb-footer__socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.sb-footer__social { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--sb-border); display: flex; align-items: center; justify-content: center; }
.sb-footer__social:hover { background: var(--sb-red); border-color: var(--sb-red); }
.sb-footer h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.sb-footer ul { list-style: none; }
.sb-footer ul li { margin-bottom: 0.75rem; }
.sb-footer ul a { font-size: 0.875rem; color: var(--sb-text-muted); }
.sb-footer ul a:hover { color: var(--sb-red); }
.sb-footer__bottom { padding-top: 2rem; border-top: 1px solid var(--sb-border); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--sb-text-faint); }
@media (min-width: 768px) { .sb-footer__bottom { flex-direction: row; } }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.sb-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.sb-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Entrance animation (always-in-view pages, e.g. 404) ---------- */
.sb-entrance { animation: sb-entrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes sb-entrance { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ---------- Tilt card (3D tilt + light-shine on mouse move) ---------- */
.sb-tilt { position: relative; transform-style: preserve-3d; transition: transform 0.1s ease-out; will-change: transform; height: 100%; }
.sb-tilt__shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0; transition: opacity 0.3s ease; }

/* ---------- Custom cursor ---------- */
html.sb-custom-cursor, html.sb-custom-cursor * { cursor: none !important; }
.sb-cursor-ring { position: fixed; top: 0; left: 0; width: 36px; height: 36px; border: 2px solid var(--sb-red); border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: difference; transform: translate(-50%, -50%); transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; box-shadow: 0 0 10px rgba(227,30,36,0.4); opacity: 0; }
.sb-cursor-ring.is-visible { opacity: 1; }
.sb-cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: var(--sb-red); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); box-shadow: 0 0 8px rgba(227,30,36,0.8); transition: width 0.1s ease, height 0.1s ease, opacity 0.1s ease; opacity: 0; }
.sb-cursor-dot.is-visible { opacity: 1; }
@media (pointer: coarse) { .sb-cursor-ring, .sb-cursor-dot { display: none; } }

/* ---------- Utility ---------- */
.sb-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.sb-mb-1 { margin-bottom: 0.5rem; } .sb-mb-2 { margin-bottom: 1rem; } .sb-mb-3 { margin-bottom: 1.5rem; } .sb-mb-4 { margin-bottom: 2.5rem; }
.sb-text-center { text-align: center; }
.sb-prose p { color: #d4d4d4; line-height: 1.75; margin-bottom: 1.5rem; }
.sb-prose h2 { font-size: 1.875rem; margin-bottom: 1rem; margin-top: 2.5rem; }
.sb-prose ul { margin: 1rem 0 1.5rem 1.25rem; list-style: disc; color: #d4d4d4; }
.sb-prose ul li { margin-bottom: 0.5rem; }
