/* =========================================
   FASTEST PAYOUT ONLINE CASINO NZ
   Luxury Casino Theme — Light & Gold
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  --gold: #D4AF37;
  --gold-light: #F2D06B;
  --gold-dark: #B8972E;
  --gold-pale: #FBF5E0;
  --navy: #1A1A2E;
  --navy-light: #252545;
  --charcoal: #2C2C3A;
  --slate: #4A4A5A;
  --body-text: #3A3A4A;
  --muted: #8A8A9A;
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-section: #F4F2ED;
  --border: #E8E5DD;
  --border-gold: rgba(212, 175, 55, 0.3);
  --green: #2ECC71;
  --red: #E74C3C;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 860px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1E1E38 100%);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(212,175,55,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(212,175,55,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #B0B0C8;
}

.hero-meta-item strong { color: #FFFFFF; font-weight: 600; }

.hero-subtitle {
  font-size: 17px;
  color: #B0B0C8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* ---------- HEADINGS ---------- */
h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 52px 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.8vw, 23px);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
  margin: 36px 0 14px;
}

h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

/* ---------- PARAGRAPHS & TEXT ---------- */
p {
  margin-bottom: 18px;
}

strong {
  font-weight: 600;
  color: var(--charcoal);
}

/* ---------- LISTS ---------- */
ul, ol {
  margin: 16px 0 20px 0;
  padding-left: 24px;
}

ul li, ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}

ul li::marker {
  color: var(--gold);
}

ol li::marker {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ---------- TABLES ---------- */
.table-wrap {
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: auto;
}

/* Allow text wrapping in all table cells on desktop */
thead th, tbody td {
  white-space: normal;
  word-wrap: break-word;
}

thead th {
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

thead th:first-child { border-radius: var(--radius) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius) 0 0; }

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

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

tbody tr:nth-child(even) td {
  background: var(--bg-section);
}

tbody tr:hover td {
  background: var(--gold-pale);
  transition: background var(--transition);
}

/* Casino name in table */
.casino-name-cell {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- MAIN CASINO TABLE ---------- */
.main-table-section {
  background: var(--bg-section);
  margin: 32px -24px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.main-table-section h2 {
  margin-top: 0;
}

.main-table .play-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(212,175,55,0.25);
  white-space: nowrap;
}

.main-table .play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
  color: var(--navy);
}

.main-table .rating-cell {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 15px;
}

.main-table .same-day-yes {
  color: var(--green);
  font-weight: 600;
}

/* ---------- CASINO REVIEW CARDS ---------- */
.casino-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--transition);
}

.casino-card:hover {
  box-shadow: var(--shadow-md);
}

.casino-card.rank-1 {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.casino-card.rank-1::before {
  content: '🏆 #1 TOP PICK';
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.casino-card h3 {
  margin-top: 0;
  padding-right: 80px;
}

.casino-card .card-rating {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.casino-card .card-speed {
  display: inline-block;
  background: var(--gold-pale);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.casino-card .card-speed::before {
  content: '⚡ ';
}

.casino-card .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.casino-card .pros-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.casino-card .pros-cons li {
  padding: 5px 0 5px 22px;
  position: relative;
  margin-bottom: 4px;
}

.casino-card .pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.casino-card .cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.casino-card .pros-label,
.casino-card .cons-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.pros-label { color: var(--green); }
.cons-label { color: var(--red); }

.casino-card .card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.casino-card .best-for {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.casino-card .best-for strong {
  color: var(--charcoal);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
  white-space: nowrap;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,175,55,0.45);
  color: var(--navy);
}

.btn-play::after {
  content: '→';
  font-size: 16px;
  transition: transform var(--transition);
}

.btn-play:hover::after {
  transform: translateX(3px);
}

/* ---------- METHODOLOGY SECTION ---------- */
.methodology-box {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

/* ---------- INFO BOXES ---------- */
.info-box {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 15px;
}

.warning-box {
  background: #FFF5F5;
  border-left: 4px solid var(--red);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 15px;
}

/* ---------- HOW-TO SECTIONS ---------- */
.how-to-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
  counter-reset: step-counter;
}

.how-to-section h4 {
  counter-increment: step-counter;
  border-left-color: var(--gold);
  padding-left: 44px;
  position: relative;
  margin-top: 28px;
}

.how-to-section h4:first-of-type {
  margin-top: 14px;
}

.how-to-section h4::before {
  content: counter(step-counter);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
  margin: 40px 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  font-weight: 600 !important;
  color: var(--navy) !important;
  padding: 16px 20px;
  margin: 0 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  background: var(--bg-card);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--gold-pale);
}

.faq-question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
}

.faq-answer {
  padding: 0 20px 16px 60px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- RESPONSIBLE GAMBLING ---------- */
.rg-section {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
}

.rg-section h2 {
  border-bottom-color: var(--red);
  margin-top: 0;
}

.rg-section h2::after {
  background: var(--red);
}

.legal-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- AUTHOR BOX ---------- */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-display);
}

.author-info {
  font-size: 14px;
  line-height: 1.5;
}

.author-info .author-names {
  font-weight: 600;
  color: var(--charcoal);
}

.author-info .author-roles {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: #B0B0C8;
  padding: 48px 24px 32px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about h3 {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 12px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: #8A8AAA;
}

.footer-links h4 {
  color: var(--gold-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
  border-left: none;
  padding-left: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
  padding-left: 0;
}

.footer-links a {
  color: #8A8AAA;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: #6A6A8A;
}

.footer-disclaimer {
  font-size: 12px;
  color: #5A5A7A;
  max-width: 580px;
  line-height: 1.6;
}

.footer-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 800;
  font-size: 11px;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .header-inner { padding: 12px 16px; }
  .site-logo img { height: 34px; }
  .header-badge { font-size: 10px; padding: 5px 10px; }
  .header-badge::before { width: 16px; height: 16px; font-size: 9px; }

  .hero { padding: 36px 16px 32px; }

  .main-content { padding: 28px 16px 40px; }

  h2 { margin-top: 40px; font-size: 22px; }
  h3 { font-size: 19px; }

  /* Allow horizontal scroll on secondary tables for mobile */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { white-space: nowrap; }

  /* ---- MAIN TABLE → MOBILE CARDS ---- */
  .main-table-section .table-wrap {
    overflow: visible;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .main-table-section .main-table,
  .main-table-section .main-table thead,
  .main-table-section .main-table tbody,
  .main-table-section .main-table tr,
  .main-table-section .main-table th,
  .main-table-section .main-table td {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .main-table-section .main-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }

  .main-table-section .main-table tbody tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .main-table-section .main-table tbody tr:nth-child(even) {
    background: var(--bg-card);
  }

  .main-table-section .main-table tbody td {
    padding: 4px 0;
    border-bottom: none;
    background: transparent !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
  }

  .main-table-section .main-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
  }

  .main-table-section .main-table tbody td:first-child {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
  }

  .main-table-section .main-table tbody td:first-child::before {
    display: none;
  }

  .main-table-section .main-table tbody td:last-child {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    justify-content: center;
  }

  .main-table-section .main-table tbody td:last-child::before {
    display: none;
  }

  .main-table-section .main-table .play-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
  }

  .main-table-section .main-table .rating-cell {
    font-size: 16px;
  }
  /* ---- END MOBILE CARDS ---- */

  .casino-card { padding: 20px 16px; }
  .casino-card h3 { padding-right: 0; font-size: 18px; }
  .casino-card .card-rating {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
  .casino-card .pros-cons {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-table-section { margin: 24px -16px; padding: 24px 16px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .how-to-section { padding: 20px 16px; }

  .author-box { flex-direction: column; text-align: center; }

  .casino-card .card-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-play { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 8px; }
  .hero h1 { font-size: 24px; }
  .hero-subtitle { font-size: 15px; }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .site-header, .site-footer, .back-to-top, .btn-play, .play-btn { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  h2 { page-break-after: avoid; }
  .casino-card { break-inside: avoid; border: 1px solid #ccc; }
}
