/* =============================================================
   TrenchBet Casino — Custom CSS
   Iron Blitz Theme: Graphite, Steel, Electric Blue
   ============================================================= */

/* -------------------------
   CSS Variables
   ------------------------- */
:root {
  --brand-dark:      #0d0f12;
  --brand-darker:    #080a0c;
  --brand-panel:     #141720;
  --brand-steel:     #1e2330;
  --brand-graphite:  #2a3040;
  --brand-border:    #313a4d;
  --brand-electric:  #1a8fff;
  --brand-electricL: #4db3ff;
  --brand-electricD: #0060cc;
  --brand-silver:    #a8b4c8;
  --brand-light:     #d4dce8;
  --brand-white:     #f0f4fa;
  --brand-accent:    #e8a020;
  --brand-accentL:   #f0b840;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--brand-dark);
  color: var(--brand-silver);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------------------------
   Typography
   ------------------------- */
.text-gradient-electric {
  background: linear-gradient(135deg, var(--brand-electric), var(--brand-electricL));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accentL));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------------
   CTA Buttons
   ------------------------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-electric), var(--brand-electricD));
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-electricL), var(--brand-electric));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cta-primary:hover::before {
  opacity: 1;
}

.cta-primary:hover {
  box-shadow: 0 0 30px rgba(26,143,255,0.6);
  transform: translateY(-2px);
}

.cta-primary > * {
  position: relative;
  z-index: 1;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-electric);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--brand-electric);
  transition: all 0.25s ease;
  cursor: pointer;
}

.cta-secondary:hover {
  background: var(--brand-electric);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(26,143,255,0.4);
  transform: translateY(-2px);
}

/* -------------------------
   Hero Section
   ------------------------- */
.hero-section {
  position: relative;
}

.hero-bg {
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.parallax-active {
  transform: scale(1.0);
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8,10,12,0.5) 0%,
    rgba(8,10,12,0.7) 40%,
    rgba(8,10,12,0.95) 100%
  );
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(26,143,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,143,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--brand-electric);
  opacity: 0.15;
  animation: float-particle linear infinite;
}

.particle-1 { width: 4px; height: 4px; left: 10%; top: 20%; animation-duration: 15s; animation-delay: 0s; }
.particle-2 { width: 6px; height: 6px; left: 30%; top: 60%; animation-duration: 20s; animation-delay: -5s; }
.particle-3 { width: 3px; height: 3px; left: 60%; top: 30%; animation-duration: 18s; animation-delay: -3s; }
.particle-4 { width: 5px; height: 5px; left: 80%; top: 70%; animation-duration: 22s; animation-delay: -8s; }
.particle-5 { width: 4px; height: 4px; left: 50%; top: 80%; animation-duration: 16s; animation-delay: -1s; }

@keyframes float-particle {
  0%   { transform: translateY(0px) translateX(0px); opacity: 0.15; }
  25%  { transform: translateY(-40px) translateX(20px); opacity: 0.3; }
  50%  { transform: translateY(-80px) translateX(-10px); opacity: 0.15; }
  75%  { transform: translateY(-120px) translateX(15px); opacity: 0.05; }
  100% { transform: translateY(-200px) translateX(0px); opacity: 0; }
}

/* Scroll indicator */
.scroll-indicator {
  animation: bounce-scroll 2s ease infinite;
}

.scroll-dot {
  animation: scroll-dot 2s ease infinite;
}

@keyframes bounce-scroll {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Bonus badge pulse */
.bonus-badge {
  animation: pulse-badge 3s ease infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,143,255,0);
  transform: scale(1); }
  50%       { box-shadow: 0 0 40px 10px rgba(26,143,255,0.2);
  transform: scale(1.01); }
}

/* -------------------------
   Games Marquee / Strip
   ------------------------- */
.games-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.games-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.games-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.game-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--brand-panel);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: var(--brand-electric);
  box-shadow: 0 0 20px rgba(26,143,255,0.3);
  transform: translateY(-4px);
}

.game-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--brand-steel);
}

.game-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-img-wrap img {
  transform: scale(1.08);
}

.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand-accent);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  font-family: 'Oswald', sans-serif;
}

.game-info {
  padding: 12px;
}

/* -------------------------
   Review Cards
   ------------------------- */
.review-card {
  background: var(--brand-panel);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  border-color: var(--brand-electric);
  box-shadow: 0 0 30px rgba(26,143,255,0.15);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--brand-steel);
  border-bottom: 1px solid var(--brand-border);
}

.review-card-body {
  padding: 24px;
}

/* Provider Cloud */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-tag {
  display: inline-block;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
  background: var(--brand-steel);
  border: 1px solid var(--brand-border);
  color: var(--brand-silver);
  transition: all 0.2s ease;
  cursor: default;
}

.provider-tag:hover {
  border-color: var(--brand-electric);
  color: var(--brand-electric);
  background: rgba(26,143,255,0.08);
}

.provider-sm  { font-size: 11px; padding: 4px 10px; }
.provider-md  { font-size: 13px; padding: 5px 12px; }
.provider-lg  { font-size: 15px; padding: 6px 14px; }
.provider-xl  { font-size: 18px; padding: 7px 16px; }

/* -------------------------
   Promo Cards
   ------------------------- */
.promo-card {
  position: relative;
  background: var(--brand-panel);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-electric), var(--brand-electricL));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-card:hover::before {
  opacity: 1;
}

.promo-card:hover {
  border-color: var(--brand-electric);
  box-shadow: 0 8px 40px rgba(26,143,255,0.15);
  transform: translateY(-4px);
}

.promo-card-featured {
  border-color: var(--brand-electric);
  background: linear-gradient(145deg, var(--brand-panel), rgba(26,143,255,0.05));
}

.promo-card-featured::before {
  opacity: 1;
}

.promo-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--brand-steel);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--brand-border);
}

.promo-badge {
  display: inline-block;
  background: rgba(26,143,255,0.15);
  color: var(--brand-electric);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(26,143,255,0.3);
}

.promo-badge-hot {
  background: rgba(232,160,32,0.15);
  color: var(--brand-accent);
  border-color: rgba(232,160,32,0.3);
}

/* -------------------------
   Step Cards
   ------------------------- */
.step-card {
  position: relative;
  background: var(--brand-panel);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.step-card:hover {
  border-color: var(--brand-electric);
  box-shadow: 0 0 30px rgba(26,143,255,0.15);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-electric), var(--brand-electricD));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(26,143,255,0.5);
  border: 3px solid var(--brand-darker);
}

.step-icon-wrap {
  width: 70px;
  height: 70px;
  background: var(--brand-steel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 20px;
  border: 2px solid var(--brand-border);
  transition: border-color 0.3s ease;
}

.step-card:hover .step-icon-wrap {
  border-color: var(--brand-electric);
}

/* -------------------------
   FAQ Accordion
   ------------------------- */
.faq-list {
  counter-reset: none;
}

.faq-item {
  background: var(--brand-panel);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.faq-open {
  border-color: var(--brand-electric);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-white);
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--brand-steel);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--brand-electric);
  transition: transform 0.3s ease;
}

.faq-open .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 18px;
  color: var(--brand-silver);
  font-size: 14px;
  line-height: 1.7;
}

/* -------------------------
   Tables (global)
   ------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--brand-panel);
  border-radius: 12px;
  overflow: hidden;
}

table th {
  background: var(--brand-steel);
  color: var(--brand-electric);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 14px 16px;
  text-align: left;
}

table td {
  padding: 12px 16px;
  color: var(--brand-silver);
  vertical-align: middle;
}

table tbody tr {
  border-bottom: 1px solid var(--brand-border);
  transition: background 0.2s ease;
}

table tbody tr:last-child {
  border-bottom: none;
}

table tbody tr:hover {
  background: rgba(26,143,255,0.05);
}

/* -------------------------
   Prose Styling (for single pages)
   ------------------------- */
.prose-trenchbet {
  color: var(--brand-silver);
  font-size: 16px;
  line-height: 1.8;
  max-width: 100%;
}

.prose-trenchbet h1,
.prose-trenchbet h2,
.prose-trenchbet h3,
.prose-trenchbet h4,
.prose-trenchbet h5,
.prose-trenchbet h6 {
  color: var(--brand-white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75em;
  margin-top: 1em;
}

.prose-trenchbet h1 { font-size: 2.25rem; }
.prose-trenchbet h2 { font-size: 1.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--brand-border); }
.prose-trenchbet h3 { font-size: 1.4rem; }
.prose-trenchbet h4 { font-size: 1.15rem; }

.prose-trenchbet p {
  margin-bottom: 1.25em;
}

.prose-trenchbet a {
  color: var(--brand-electric);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose-trenchbet a:hover {
  color: var(--brand-electricL);
}

.prose-trenchbet ul,
.prose-trenchbet ol {
  margin: 1em 0 1.25em 1.5em;
}

.prose-trenchbet ul { list-style-type: disc; }
.prose-trenchbet ol { list-style-type: decimal; }

.prose-trenchbet li {
  margin-bottom: 0.4em;
  color: var(--brand-silver);
}

.prose-trenchbet strong,
.prose-trenchbet b {
  color: var(--brand-white);
  font-weight: 700;
}

.prose-trenchbet em,
.prose-trenchbet i {
  color: var(--brand-electricL);
  font-style: italic;
}

.prose-trenchbet blockquote {
  border-left: 4px solid var(--brand-electric);
  margin: 1.5em 0;
  padding: 0.75em 1.5em;
  background: var(--brand-steel);
  border-radius: 0 8px 8px 0;
  color: var(--brand-light);
  font-style: italic;
}

.prose-trenchbet code {
  background: var(--brand-steel);
  color: var(--brand-electricL);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose-trenchbet pre {
  background: var(--brand-steel);
  color: var(--brand-light);
  padding: 1.5em;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose-trenchbet pre code {
  background: none;
  padding: 0;
  font-size: 0.9em;
}

.prose-trenchbet hr {
  border: none;
  border-top: 2px solid var(--brand-border);
  margin: 2em 0;
}

/* Markdown tables: horizontal scroll only inside wrapper (see layouts/_markup/render-table.html) */
.prose-trenchbet .prose-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
}

.prose-trenchbet .prose-table-scroll table {
  margin: 0;
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.prose-trenchbet img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
}

/* -------------------------
   Utility
   ------------------------- */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* -------------------------
   Animations
   ------------------------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease both;
}

.animate-fade-in {
  animation: fade-in 0.5s ease both;
}

/* Electric glow pulse on hover for interactive elements */
.glow-hover:hover {
  box-shadow: 0 0 30px rgba(26,143,255,0.5);
}

/* Stagger delays for child animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* -------------------------
   Scrollbar Styling
   ------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-graphite);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-electric);
}

/* -------------------------
   Selection
   ------------------------- */
::selection {
  background: rgba(26,143,255,0.3);
  color: var(--brand-white);
}

/* -------------------------
   Focus visible
   ------------------------- */
*:focus-visible {
  outline: 2px solid var(--brand-electric);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------
   Mobile tweaks
   ------------------------- */
@media (max-width: 640px) {
  .bonus-badge > div {
    padding: 16px;
  }

  .step-card {
    margin-top: 24px;
  }

  .game-card {
    width: 160px;
  }
}
