/* ==========================================================================
   HitNSpin Casino — Light Theme Stylesheet
   Header color: #d32c23 (primary red) — unchanged
   Background: Light theme (#ffffff base, #f5f5f7 secondary)
   Fully responsive: mobile-first approach
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   All colors, spacing, and typography values defined here for easy theming.
   Light palette: white/grey backgrounds, dark text, red header preserved.
   -------------------------------------------------------------------------- */
:root {
  /* Primary brand red — header color, accents, borders */
  --color-primary: #d32c23;
  --color-primary-dark: #a82019;
  --color-primary-light: #e8453d;

  /* Page backgrounds — light greys and white */
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f7;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f0f0f3;

  /* Text colors — dark for readability on light surfaces */
  --color-text: #2d2d3a;
  --color-text-muted: #6b6b80;

  /* Accent / CTA color — kept gold for high contrast buttons */
  --color-accent: #d32c23;
  --color-accent-hover: #a82019;

  /* Static white — used inside header, overlays, badges */
  --color-white: #ffffff;

  /* Borders — light grey strokes */
  --color-border: #dcdce5;

  /* Status */
  --color-success: #28a745;

  /* Table colors — subtle alternating rows for light theme */
  --color-table-header: #f0f0f5;
  --color-table-row-odd: #ffffff;
  --color-table-row-even: #f9f9fb;

  /* Typography */
  --font-primary: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing & layout */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: 0.3s ease;

  /* Shadows — lighter for the light theme */
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   Normalize browser defaults and set global light theme
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


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

/* Links — primary red on light background for clear visibility */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5em;
}


/* --------------------------------------------------------------------------
   Header Component
   Fixed-position top bar with primary red (#d32c23) background.
   Header color is UNCHANGED from original design.
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Site logo in the header */
.header__logo img {
  height: 45px;
  width: auto;
}

/* Desktop navigation links — white text on red header */
.header__nav {
  display: none;
}

.header__nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
}

.header__nav a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity var(--transition);
}

.header__nav a:hover {
  opacity: 0.8;
  text-decoration: none;
  color: var(--color-white);
}

/* Primary CTA button — white background on red header for contrast */
.btn-cta {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  color: var(--color-primary);
  text-decoration: none;
}

/* Mobile hamburger toggle button — white bars on red header */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.header__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile slide-out menu — light background panel */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--header-height));
  background: var(--color-white);
  z-index: 999;
  transition: right var(--transition);
  padding: 2rem 1.5rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

/* Menu links — dark text on white background */
.mobile-menu a {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Semi-transparent backdrop behind mobile menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Breadcrumbs Navigation
   Schema.org-compatible breadcrumb trail for SEO.
   Muted text on light background.
   -------------------------------------------------------------------------- */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  margin-top: var(--header-height);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.4rem;
  color: var(--color-text-muted);
}

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

.breadcrumbs a:hover {
  color: var(--color-primary);
}

/* Current page breadcrumb — darker text */
.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero Banner Section
   Full-width banner with responsive image (desktop/mobile variants).
   CTA overlay uses semi-transparent white block on light theme.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-light);
}

/* Desktop banner hidden on mobile, mobile banner shown */
.hero__img-desktop {
  display: none;
  width: 100%;
  height: auto;
}

.hero__img-mobile {
  display: block;
  width: 100%;
  height: auto;
}

/* Semi-transparent CTA overlay — white glass effect on light theme */
.hero__cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--border-radius-xl);
  padding: 1.5rem 2rem;
  text-align: center;
  width: 85%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
}

.hero__cta h2 {
  color: var(--color-text);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.hero__cta p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

/* CTA button inside hero — red button for contrast on white overlay */
.hero__cta .btn-cta {
  font-size: 1rem;
  padding: 0.8rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
}

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

/* --------------------------------------------------------------------------
   Popular Slots Grid
   Displays 12 slot game images in 2 rows of 6.
   Images keep natural size, corners rounded.
   White card backgrounds with subtle shadow on light theme.
   -------------------------------------------------------------------------- */
.slots-section {
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.slots-section__title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* Grid container: 6 columns, horizontal scroll on mobile */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-light);
  padding-bottom: 0.5rem;
}

/* Ensure minimum column width so images don't shrink */
.slots-grid--no-shrink {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
}

/* Individual slot card — white with shadow */
.slot-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--color-bg-card);
  box-shadow: var(--shadow);
}

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

/* Slot game image — rounded corners, no size reduction */
.slot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-lg);
}

/* Slot game title overlay — dark gradient at bottom for text readability */
.slot-card__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  padding: 1.5rem 0.5rem 0.5rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

/* Custom scrollbar for slots grid */
.slots-grid::-webkit-scrollbar {
  height: 6px;
}

.slots-grid::-webkit-scrollbar-track {
  background: var(--color-bg-light);
  border-radius: 3px;
}

.slots-grid::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Main Content Area
   Contains all article text, headings, lists, and tables.
   Dark text on white/light background for maximum readability.
   -------------------------------------------------------------------------- */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Article headings hierarchy — dark headings with red accents */
.content h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  line-height: 1.3;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 0.8rem;
}

.content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--color-primary);
}

.content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

/* Body text paragraphs — dark text */
.content p {
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* Unordered and ordered lists */
.content ul,
.content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.8rem;
}

.content li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* Red bullet markers */
.content ul li::marker {
  color: var(--color-primary);
}

/* Red numbered markers */
.content ol li::marker {
  color: var(--color-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive Data Tables
   Light-themed tables that convert to card layout on mobile.
   Subtle alternating rows and clean borders.
   -------------------------------------------------------------------------- */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 0.95rem;
}

/* Table header — light grey background with red bottom border */
.content thead {
  background: var(--color-table-header);
}

.content th {
  color: var(--color-text);
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--color-primary);
  white-space: nowrap;
}

.content td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

/* Alternate row striping — very subtle on light theme */
.content tbody tr:nth-child(odd) {
  background: var(--color-table-row-odd);
}

.content tbody tr:nth-child(even) {
  background: var(--color-table-row-even);
}

.content tbody tr:hover {
  background: var(--color-bg-card-hover);
}

/* --------------------------------------------------------------------------
   CTA / Action Buttons
   All buttons link to /go/ as required.
   Red primary buttons on light background for strong visibility.
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  color: var(--color-white);
  text-decoration: none;
}

/* Secondary outlined button variant — red outline on white */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

/* Centered CTA block — light grey gradient card */
.cta-block {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--color-bg-light), #eaeaef);
  border-radius: var(--border-radius-xl);
  margin: 2rem 0;
  border: 1px solid var(--color-border);
}

.cta-block h2 {
  border: none;
  padding: 0;
  margin-top: 0;
}

.cta-block p {
  margin-bottom: 1.5rem;
}

/* CTA button inside cta-block — red for prominence */
.cta-block .btn-cta {
  background: var(--color-primary);
  color: var(--color-white);
}

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

/* --------------------------------------------------------------------------
   Footer Component
   Light grey background with payment logos and copyright.
   Red top border preserved from header accent.
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-bg-light);
  border-top: 2px solid var(--color-primary);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__title {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Payment logos grid — flexible wrap layout */
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Individual payment logo container — subtle grey background */
.payment-logos__item {
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  height: 45px;
}

.payment-logos__item:hover {
  background: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}

.payment-logos__item img {
  height: 28px;
  width: auto;
  transition: opacity var(--transition);
}

.payment-logos__item:hover img {
  opacity: 0.85;
}

/* Footer bottom bar with copyright and links */
.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer__bottom a {
  color: var(--color-text-muted);
  margin: 0 0.5rem;
}

.footer__bottom a:hover {
  color: var(--color-primary);
}

/* 18+ responsible gaming badge — red background preserved */
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   Mobile-first: base styles = mobile, then scale up
   -------------------------------------------------------------------------- */

/* Tablet and up (768px) */
@media (min-width: 768px) {
  /* Show desktop nav, hide hamburger */
  .header__nav {
    display: block;
  }

  .header__toggle {
    display: none;
  }

  /* Banner: show desktop image, hide mobile */
  .hero__img-desktop {
    display: block;
  }

  .hero__img-mobile {
    display: none;
  }

  /* Larger hero CTA on tablet */
  .hero__cta {
    width: 60%;
    padding: 2rem 2.5rem;
  }

  .hero__cta h2 {
    font-size: 1.6rem;
  }

  .hero__cta p {
    font-size: 1rem;
  }

  /* Content headings scale up */
  .content h1 {
    font-size: 2.2rem;
  }

  .content h2 {
    font-size: 1.7rem;
  }

  .content h3 {
    font-size: 1.4rem;
  }

  /* Slots grid fixed 6 columns */
  .slots-grid {
    grid-template-columns: repeat(6, 1fr);
    overflow-x: visible;
  }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
  /* Larger hero CTA on desktop */
  .hero__cta {
    width: 45%;
    max-width: 550px;
    padding: 2.5rem 3rem;
  }

  .hero__cta h2 {
    font-size: 1.8rem;
  }

  /* Content max-width with comfortable padding */
  .content {
    padding: 3rem 2rem 4rem;
  }

  .content h1 {
    font-size: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Mobile Table Card Layout (below 768px)
   Tables convert to stacked card format for readability on small screens.
   Each row becomes a white card with label-value pairs.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .table-wrapper {
    border: none;
    overflow: visible;
  }

  .content table {
    min-width: unset;
  }

  .content thead {
    display: none;
  }

  /* Each table row becomes a card */
  .content tbody tr {
    display: block;
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .content td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: 0.5rem;
  }

  .content td:last-child {
    border-bottom: none;
  }

  /* data-label attribute used by JS to show column headers on mobile */
  .content td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
    min-width: 40%;
  }

  /* Slots grid: 3 columns on mobile */
  .slots-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

/* Small mobile (below 480px) */
@media (max-width: 479px) {
  .hero__cta {
    width: 92%;
    padding: 1.2rem 1rem;
  }

  .hero__cta h2 {
    font-size: 1.1rem;
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content h2 {
    font-size: 1.3rem;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-logos__item {
    height: 38px;
    padding: 0.4rem 0.6rem;
  }

  .payment-logos__item img {
    height: 22px;
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.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;
}

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

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}
