/* ==========================================================
   TrenchBet Casino – Custom CSS
   Graphite & Crimson Tactical Theme
   ========================================================== */

/* ---- Google Fonts Fallback ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --crimson:  #C0392B;
  --scarlet:  #E74C3C;
  --graphite: #1A1A2E;
  --steel:    #2C3E50;
  --silver:   #BDC3C7;
  --gold:     #F1C40F;
  --dark:     #0D0D1A;
  --light:    #ECF0F1;
  --white:    #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  color: var(--silver);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Typography Utilities ---- */
.font-700 { font-weight: 700; }
.font-600 { font-weight: 600; }
.font-500 { font-weight: 500; }

/* ---- HEADER ---- */
.site-header {
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo-mark {
  text-decoration: none;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
  left: 10%;
}

/* Burger animation */
.burger-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#burger-btn.menu-open .burger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#burger-btn.menu-open .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#burger-btn.menu-open .burger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu slide animation */
.mobile-menu {
  animation: none;
}
.mobile-menu:not(.hidden) {
  animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- HERO ---- */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  background-attachment: fixed;
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 26, 0.75) 0%,
    rgba(13, 13, 26, 0.55) 40%,
    rgba(13, 13, 26, 0.97) 100%
  );
}

/* Animated grid pattern overlay */
.hero-grid {
  background-image:
    linear-gradient(rgba(192, 57, 43, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 57, 43, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPan 20s linear infinite;
}

@keyframes gridPan {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-title {
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

/* Bonus Badge Glow Effect */
.bonus-badge-inner {
  position: relative;
  overflow: hidden;
}

.badge-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(192,57,43,0.15) 0%, transparent 60%);
  animation: badgePulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

.hero-cta-primary {
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.hero-cta-primary:hover::before {
  left: 100%;
}

/* ---- SECTION LAYOUT HELPERS ---- */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  border: 1px solid rgba(192,57,43,0.4);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 0.75rem;
  background: rgba(192,57,43,0.08);
}

.section-title {
  font-family: 'Rajdhani', ui-sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.8rem; }
}

.section-subtitle {
  color: var(--silver);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- PROMO CARDS ---- */
.promo-card {
  background: rgba(44, 62, 80, 0.3);
  border: 1px solid rgba(44, 62, 80, 0.6);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--scarlet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.promo-card:hover {
  border-color: var(--crimson);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(192,57,43,0.2);
}

.promo-card:hover::before {
  transform: scaleX(1);
}

.promo-card--featured {
  border-color: rgba(192,57,43,0.5);
  background: rgba(192,57,43,0.07);
}

.promo-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.promo-title {
  font-family: 'Rajdhani', ui-sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-copy {
  color: var(--silver);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.6rem 1.25rem;
  background: var(--crimson);
  color: #ffffff;
  font-family: 'Rajdhani', ui-sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  margin-top: 0.5rem;
}

.promo-cta:hover {
  background: var(--scarlet);
  transform: translateX(3px);
}

/* ---- REVIEW BLOCKS ---- */
.review-block {
  background: rgba(13, 13, 26, 0.6);
  border: 1px solid rgba(44,62,80,0.5);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.review-block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(44, 62, 80, 0.3);
  border-bottom: 1px solid rgba(44,62,80,0.5);
}

.review-block-header h3 {
  font-family: 'Rajdhani', ui-sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.review-block-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

/* Review Table */
.review-table {
  border-collapse: collapse;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
}

.review-table thead tr {
  background: rgba(44,62,80,0.5);
}

.review-table th,
.review-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
}

.review-table tbody tr {
  border-top: 1px solid rgba(44,62,80,0.3);
}

.review-table tbody tr:hover {
  background: rgba(44,62,80,0.2);
}

/* Provider Cloud */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.provider-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(44,62,80,0.4);
  border: 1px solid rgba(44,62,80,0.6);
  border-radius: 999px;
  color: var(--silver);
  cursor: default;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1.2;
}

.provider-tag:hover {
  color: #fff;
  border-color: var(--crimson);
  background: rgba(192,57,43,0.12);
}

.provider-tag--sm  { font-size: 0.72rem; }
.provider-tag--md  { font-size: 0.85rem; }
.provider-tag--lg  { font-size: 1rem; font-weight: 600; color: #eee; }
.provider-tag--xl  { font-size: 1.15rem; font-weight: 700; color: #fff; }

/* ---- GAME CARDS ---- */
.game-card {
  position: relative;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--graphite);
}

.game-card-img-wrap {
  aspect-ratio: 3 / 4;
}

.game-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(13,13,26,0.98) 0%, rgba(13,13,26,0.6) 70%, transparent 100%);
}

.game-cta-btn {
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
}

/* ---- PAYMENTS TABLE ---- */
.payments-table {
  border-collapse: collapse;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(13,13,26,0.7);
  border: 1px solid rgba(44,62,80,0.5);
  width: 100%;
}

.payments-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 1.25rem;
  color: var(--silver);
}

.payments-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.payment-row {
  transition: background 0.2s ease;
}

.payment-row:hover {
  background: rgba(44,62,80,0.3);
}

/* ---- STEPS ---- */
.step-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(44,62,80,0.5);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  border-color: var(--crimson);
  box-shadow: 0 8px 30px rgba(192,57,43,0.18);
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--scarlet));
  color: #fff;
  font-family: 'Rajdhani', ui-sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(192,57,43,0.4);
  position: relative;
  z-index: 1;
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Rajdhani', ui-sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--crimson);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s, gap 0.2s;
}

.step-cta:hover {
  color: var(--scarlet);
  gap: 0.6rem;
}

/* ---- FAQ ---- */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.25s, border-color 0.25s;
}

.faq-question.faq-open {
  background: rgba(192,57,43,0.08);
  border-color: rgba(192,57,43,0.5);
  border-radius: 0.75rem 0.75rem 0 0;
}

.faq-answer {
  background: rgba(13,13,26,0.5);
  border: 1px solid rgba(44,62,80,0.4);
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  animation: fadeIn 0.25s ease;
}

.faq-answer:not(.hidden) {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* ---- FOOTER ---- */
.footer-heading {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--crimson);
  border-radius: 2px;
}

.age-badge {
  position: relative;
  overflow: hidden;
}

.age-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.05), transparent);
  pointer-events: none;
}

/* ---- CTA BUTTON GLOBAL ---- */
.cta-btn {
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

/* ---- PROSE (Single Pages) ---- */
.prose-trenchbet {
  max-width: 800px;
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.75;
}

.prose-trenchbet h1 {
  font-family: 'Rajdhani', ui-sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1.1;
  border-bottom: 2px solid var(--crimson);
  padding-bottom: 0.5rem;
}

.prose-trenchbet h2 {
  font-family: 'Rajdhani', ui-sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--crimson);
  padding-left: 0.75rem;
}

.prose-trenchbet h3 {
  font-family: 'Rajdhani', ui-sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #eee;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-trenchbet p {
  margin-bottom: 1.1rem;
  color: var(--silver);
}

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

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

.prose-trenchbet ul,
.prose-trenchbet ol {
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
}

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

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

.prose-trenchbet strong {
  color: #ffffff;
  font-weight: 600;
}

.prose-trenchbet em {
  color: #ddd;
  font-style: italic;
}

.prose-trenchbet blockquote {
  border-left: 3px solid var(--crimson);
  padding: 0.75rem 1.25rem;
  background: rgba(192,57,43,0.07);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: #ddd;
  font-style: italic;
}

.prose-trenchbet table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.prose-trenchbet th {
  background: rgba(44,62,80,0.6);
  color: var(--silver);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prose-trenchbet td {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(44,62,80,0.4);
  color: var(--silver);
}

.prose-trenchbet tr:hover td {
  background: rgba(44,62,80,0.15);
}

.prose-trenchbet hr {
  border: none;
  border-top: 1px solid rgba(44,62,80,0.5);
  margin: 2rem 0;
}

.prose-trenchbet code {
  background: rgba(44,62,80,0.5);
  color: var(--scarlet);
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  font-family: monospace;
}

.prose-trenchbet pre {
  background: rgba(13,13,26,0.8);
  border: 1px solid rgba(44,62,80,0.4);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Markdown table wrapper – applied via JS if needed */
.md-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ---- MARQUEE ANIMATION ---- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- PARALLAX SCROLL ---- */
.parallax-slow { will-change: transform; }

/* ---- UTILITY: Gradient text ---- */
.gradient-text {
  background: linear-gradient(90deg, var(--crimson), var(--scarlet), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SCROLLBAR STYLING ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
  background: var(--crimson);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--scarlet); }

/* ---- SELECTION ---- */
::selection {
  background: rgba(192,57,43,0.35);
  color: #fff;
}

/* ---- FOCUS VISIBLE ---- */
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 767px) {
  .hero-bg {
    background-attachment: scroll;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .prose-trenchbet h1 {
    font-size: 1.8rem;
  }
  .prose-trenchbet h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 1023px) {
  .review-block-body {
    max-height: none;
    overflow-y: visible;
  }
}
