/* CSS Design System & Variables */
:root {
  --bg-primary: #062e1e; /* Deep Pine Green */
  --bg-secondary: #0a3e29; /* Medium Emerald */
  --bg-darker: #041f14; /* Extra Deep Green */
  --bg-light: #ffffff; /* Pure White */
  --bg-light-gray: #f4f6f5; /* Very Light Sage/Gray */

  /* Brand Accents */
  --accent-mint: #00e676; /* Vibrant High-Contrast Mint */
  --accent-mint-hover: #00c853;
  --accent-gold: #dfb76c; /* Elegant Premium Gold */
  --accent-gold-hover: #d4a352;

  /* Text Colors */
  --text-light: #ffffff;
  --text-muted: #e5e7eb;
  --text-dark: #1f2937; /* Dark Charcoal */
  --text-dark-gray: #4b5563; /* Medium Charcoal */

  /* Utility */
  --border-light: #e2e8f0;
  --border-emerald: rgba(13, 82, 55, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  color: var(--bg-primary);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Layout Utilities */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-mint);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-dark-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Button & CTA System */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  text-align: center;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  outline: none;
  min-height: 48px; /* Accessibility requirement: minimum 48px height */
  padding: 10px 24px;
}

.btn-large {
  font-size: 1.1rem;
  padding: 12px 36px;
}

.btn-small {
  font-size: 0.9rem;
  padding: 8px 20px;
  min-height: 40px;
}

.btn-full {
  width: 100%;
}

/* Button Variants */
.btn-mint {
  background-color: var(--accent-mint);
  color: var(--bg-primary);
}

.btn-mint:hover {
  background-color: var(--accent-mint-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(223, 183, 108, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

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

/* Sticky Header styling with Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(6, 46, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-emerald);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px; /* Slimmer header padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: rgba(4, 31, 20, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header.scrolled .header-container {
  padding: 6px 20px; /* Compact on scroll */
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-link:hover .logo-icon {
  transform: rotate(-8deg) scale(1.05);
}

.logo-text {
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.3px;
  line-height: 1;
}

.text-gold {
  color: var(--accent-gold);
}

.footer-logo-link {
  margin-bottom: 15px;
}

/* Main Navigation */
.main-nav {
  display: none; /* Mobile first: hidden */
}

/* Hamburger Menu button */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.burger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger Transformations when active */
.burger-menu.active .burger-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Desktop Header action buttons */
.header-actions {
  display: none;
}

/* Mobile Nav Overlay & Drawer */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 31, 20, 0.8);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Body scroll lock */
body.nav-active {
  overflow: hidden;
}

/* Adjust layout spacing for fixed header */
body {
  padding-top: 56px; /* Adjusted to match new 56px slim header height */
  transition: padding 0.3s ease;
}

/* Hero Banner styling */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding: 60px 0;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(0, 230, 118, 0.15);
  color: var(--accent-mint);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  color: var(--text-light);
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-cta-group .cta-button {
  width: 100%;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-icon {
  font-size: 1.2rem;
}

/* Showcase Filter Tabs */
.showcase-section {
  background-color: var(--bg-light-gray);
}

/* Casino Showcase Grid/Cards */
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.casino-card {
  position: relative;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
  overflow: hidden;
}

.casino-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 62, 41, 0.2);
}

/* Featured Badge / Ribbon */
.casino-card.featured {
  border: 2px solid var(--accent-gold);
}

.card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 15px;
  border-bottom-right-radius: 8px;
  letter-spacing: 0.5px;
}

/* Logo Column */
.card-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  padding: 15px;
  height: 120px;
  max-width: 150px;
  margin: 0 auto;
}

.casino-logo {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

/* Info Column */
.card-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.casino-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.casino-name {
  font-size: 1.4rem;
  color: var(--bg-primary);
  font-weight: 700;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(6, 46, 30, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
}

.rating-score {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--bg-primary);
}

.rating-stars {
  color: var(--accent-gold);
  font-size: 0.85rem;
}

.casino-bonus-box {
  background-color: rgba(0, 230, 118, 0.05);
  border: 1px dashed rgba(0, 230, 118, 0.4);
  border-radius: 8px;
  padding: 10px 15px;
}

.bonus-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dark-gray);
  font-weight: 500;
  text-transform: uppercase;
}

.bonus-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #059669; /* Accent Green tone for readability */
}

/* CTA Column */
.card-cta-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: #475569;
  background-color: #e2e8f0;
  border-radius: 4px;
  padding: 4px 8px;
}

.review-link {
  font-size: 0.85rem;
  color: var(--bg-primary);
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
}

.review-link:hover {
  color: var(--accent-mint-hover);
}

/* Content & Review Block Styling */
.content-review-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.content-review-section h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}

.content-review-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: var(--accent-mint);
  border-radius: 2px;
}

/* .content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
} */

.content-review-section p {
  font-size: 1rem;
  color: var(--text-dark-gray);
  margin-bottom: 20px;
}

.content-review-section h3 {
  font-size: 1.3rem;
  margin: 0 0 15px;
}

.content-review-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.content-review-section ul li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--text-dark-gray);
}

.content-review-section ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--bg-light);
  background-color: #059669; /* Soft checkmark green */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

/* Responsive Table Styles */
.table-container-wrapper {
  margin-top: 50px;
  background-color: #f8fafc;
  border-radius: var(--border-radius);
  padding: 25px 15px;
  border: 1px solid var(--border-light);
}

.table-section-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.scroll-indicator {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dark-gray);
  margin-bottom: 15px;
  background-color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-review-section table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px; /* Forces scroll on mobile, preventing overlap */
  text-align: left;
}

.content-review-section table th {
  background-color: var(--bg-primary);
  color: var(--text-light);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 15px;
  text-transform: uppercase;
}

.content-review-section table td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: var(--text-dark-gray);
}

.content-review-section table tbody tr:nth-child(even) {
  background-color: rgba(
    10,
    62,
    41,
    0.03
  ); /* Soft emerald tint for zebra striping */
}

.content-review-section table tbody tr:hover {
  background-color: rgba(10, 62, 41, 0.06);
}

.table-casino-name {
  color: var(--bg-primary);
}

.rating-cell {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--bg-primary);
}

/* Accordion FAQ Block Styling */
.faq-section {
  background-color: var(--bg-light-gray);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-details {
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 62, 41, 0.2);
}

.faq-summary {
  list-style: none; /* Hide default arrow */
  outline: none;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 18px 24px;
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none; /* Hide standard Chrome marker */
}

.accordion-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background-color: var(--bg-primary);
  transition: var(--transition);
}

/* Horizontal bar */
.accordion-icon::before {
  width: 14px;
  height: 2px;
}

/* Vertical bar */
.accordion-icon::after {
  width: 2px;
  height: 14px;
}

/* Accordion state transition when open */
.faq-details[open] .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-details[open] .accordion-icon::before {
  background-color: var(--accent-mint-hover);
}

.faq-content {
  padding: 0 24px 20px;
  border-top: 1px solid #f1f5f9;
  animation: slideDown 0.3s ease-out;
}

.faq-content p {
  font-size: 0.95rem;
  color: var(--text-dark-gray);
  line-height: 1.6;
}

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

/* Footer Section & Regulatory Styling */
.site-footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  border-top: 2px solid var(--accent-gold);
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-heading {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: "Outfit", sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-mint);
  padding-left: 4px;
}

/* Mandatory Compliance Block (EEEP / 21+) */
.footer-compliance {
  background-color: rgba(4, 31, 20, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
}

.compliance-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.compliance-badge {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-red {
  background-color: #dc2626; /* Warning red */
  color: var(--text-light);
}

.badge-green {
  background-color: #059669;
  color: var(--text-light);
}

.badge-outline {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.compliance-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.7;
}

.compliance-text strong {
  color: var(--text-light);
}

/* Footer Bottom (Copyright) */
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  background-color: #02110b;
}

.copyright-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive Media Queries (Desktop Viewports) */
@media (min-width: 768px) {
  /* Larger Typography */
  .section-title {
    font-size: 2.3rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  /* Layout alignments */
  .hero-cta-group {
    flex-direction: row;
  }

  .hero-cta-group .cta-button {
    width: auto;
  }

  /* Footer adaptation */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-col.links-col {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 30px;
  }

  .compliance-wrapper {
    flex-direction: row;
    text-align: left;
    gap: 30px;
  }

  .compliance-badges {
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  /* Header layout changes */
  .burger-menu {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .nav-link {
    font-family: "Outfit", sans-serif;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-mint);
    transition: var(--transition);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .header-actions {
    display: block;
  }

  /* Showcase Cards turn to row layout */
  .casino-card {
    flex-direction: row;
    align-items: center;
    padding: 20px 30px;
    gap: 30px;
  }

  .card-logo-col {
    margin: 0;
    flex: 0 0 130px;
  }

  .card-info-col {
    flex: 1;
  }

  .card-cta-col {
    flex: 0 0 220px;
    border-left: 1px solid var(--border-light);
    padding-left: 30px;
  }

  .casino-card.featured .card-cta-col {
    border-left-color: rgba(223, 183, 108, 0.3);
  }

  /* Scroll indicator not needed on desktop */
  .scroll-indicator {
    display: none;
  }
}

/* Mobile Sidebar (Active State toggled via JS) */
@media (max-width: 1023px) {
  html,
  body {
    overflow-x: hidden;
  }

  .main-nav {
    position: fixed;
    top: 56px;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - 56px);
    background-color: var(--bg-secondary);
    z-index: 999;
    display: block;
    padding: 40px 20px;
    border-left: 1px solid var(--border-emerald);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);

    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.4s,
      top 0.3s ease,
      height 0.3s ease;
  }

  .main-nav.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-header.scrolled .main-nav {
    top: 48px;
    height: calc(100vh - 48px);
  }

  .nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .nav-link {
    font-family: "Outfit", sans-serif;
    color: var(--text-light);
    font-size: 1.15rem;
    font-weight: 600;
    display: block;
  }

  .nav-link:hover {
    color: var(--accent-mint);
  }
}

.logo-link .logo-icon {
	width: 128px;
}

.footer-logo-link .logo-icon {
	width: 256px;
}
