/**
 * HitnSpin Casino - Light Theme Styles
 * Header color: #b72238
 * Semantic, accessible, responsive design
 */

/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* ===== HEADER COMPONENT ===== */
/* Main site header with brand color #b72238 */
.site-header {
  background-color: #b72238;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header__logo {
  height: 48px;
  width: auto;
  display: block;
}

/* ===== NAVIGATION ===== */
.nav-main {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-main__link {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-main__link:hover,
.nav-main__link:focus {
  background-color: rgba(255,255,255,0.2);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== CTA BUTTON ===== */
/* All buttons link to /go/ */
.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #b72238;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: #9a1d2f;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1rem 2rem;
  background-color: #f5f5f5;
  font-size: 0.9rem;
}

.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: #666;
}

.breadcrumbs__link {
  color: #b72238;
  text-decoration: none;
}

.breadcrumbs__link:hover {
  text-decoration: underline;
}

/* ===== MAIN CONTENT CONTAINER ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== BANNER SECTION ===== */
/* Hero banner with CTA overlay - used for both mobile and desktop */
.banner {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
}

.banner__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Picture element handles mobile/desktop src via media query */

/* CTA overlay - semi-transparent block, centered on web and mobile */
.banner__cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem 3rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
}

.banner__cta-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.banner__cta-text {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 400px;
}

.banner__cta .btn-cta {
  background-color: #b72238;
}

/* Mobile: fix viewport, adjust CTA, header layout */
@media (max-width: 768px) {
  /* Logo left, buttons right - reduce size for fit */
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-header__logo {
    height: 36px;
    flex-shrink: 0;
  }

  .nav-main {
    margin-left: auto;
  }

  .nav-main__link {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  .nav-main__link.btn-cta {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }

  .banner__cta {
    padding: 1.5rem 2rem;
    width: 90%;
    max-width: 320px;
  }

  .banner__cta-title {
    font-size: 1.2rem;
  }

  .banner__cta-text {
    font-size: 0.9rem;
  }

  /* Fix screen overflow on mobile */
  body {
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
  }

  html {
    overflow-x: hidden;
  }
}

/* ===== POPULAR SLOTS SECTION ===== */
/* 12 images in 2 rows of 6 - no size reduction, no rounded corners */
.slots-section {
  margin-bottom: 3rem;
}

.slots-section__title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.slots-grid__item {
  display: block;
}

.slots-grid__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Mobile: 2 columns for slots */
@media (max-width: 768px) {
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Tablet: 3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2rem;
  margin-top: 0;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

/* ===== TABLE STYLES ===== */
/* Responsive table - adapts for mobile */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #b72238;
  color: #fff;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Mobile table: stack as cards */
@media (max-width: 768px) {
  .table-wrapper {
    overflow: visible;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fff;
  }

  td {
    border: none;
    padding: 0.5rem;
    padding-left: 50%;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    position: absolute;
    left: 0.5rem;
    width: 45%;
  }
}

/* ===== ARTICLE CONTENT ===== */
.article-content img {
  max-width: 100%;
  height: auto;
}

/* ===== FOOTER ===== */
/* Payment system logos from Pay folder */
.site-footer {
  background-color: #2d2d2d;
  color: #fff;
  padding: 2rem;
  margin-top: 3rem;
}

.site-footer__payments {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__payments-title {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.payments-grid__item {
  height: 32px;
  width: auto;
}

.payments-grid__item img {
  height: 100%;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: 0.9;
}

/* ===== UTILITY ===== */
.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;
}
