/* =========================================================
   ROYAL REELS AUSTRALIA — STYLESHEET
   Author: Royal Reels AU Review Team
   Last updated: 15 July 2026
   ========================================================= */

/* ===== RESET / BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0e0e14;
  color: #d0d0d8;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: #ffd700;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}

/* ===== STICKY HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid #2a2a38;
  padding: 14px 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  color: #ffd700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo-image {
  width: 180px;
  height: auto;
  display: block;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.header-nav a {
  color: #d0d0d8;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a:focus-visible {
  color: #ffd700;
  background: rgba(255, 184, 0, 0.08);
  border-color: rgba(255, 184, 0, 0.22);
  text-decoration: none;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.age-badge-sm {
  border: 2px solid #e11d48;
  color: #fff;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary {
  background: #ffb800;
  color: #000;
}
.btn-primary:hover {
  background: #ffd700;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.35);
}
.btn-outline {
  background: transparent;
  color: #ffb800;
  border-color: #ffb800;
}
.btn-outline:hover {
  background: rgba(255, 184, 0, 0.12);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-green {
  background: #00c853;
  color: #000;
}
.btn-green:hover {
  background: #00e676;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.35);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(90deg, #a8194f 0%, #4a1874 100%);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.hero-logo {
  width: min(92vw, 520px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.hero .hero-wordmark {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 3px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
  line-height: 1.05;
}
.hero-subtitle {
  color: #fff;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  margin-bottom: 32px;
  opacity: 0.95;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== POKIE TILES ===== */

.pokies-section {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}

.pokies-heading {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.pokies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Main card style */
.pokie-tile {
  aspect-ratio: 3/4; /* Preserves your original aspect ratio */
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

/* Hover effects */
.pokie-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Slot cover image styling */
.pokie-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fits the image nicely without stretching */
  display: block;
}

/* Overlay for text and dark gradient to ensure high contrast */
.pokie-overlay {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Places text at the bottom */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none; /* Allows click events to pass to parent element */
}

/* Game title styling */
.pokie-tile .name {
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 15px);
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Badge styling (HOT, TOP, NEW, etc.) */
.pokie-tile .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffd700;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 800;
  z-index: 2; /* Keeps badge above image and overlay */
}

.show-more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* ===== MAIN CONTAINER ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 12px;
}
.page-breadcrumbs {
  color: #9d9daa;
  font-size: 13px;
  margin-bottom: 12px;
}
.page-breadcrumbs a { color: #bfc0c9; }
.page-breadcrumbs a:hover { color: #ffd700; }
.page-hero-card {
  background: linear-gradient(135deg, rgba(168, 25, 79, 0.18) 0%, rgba(74, 24, 116, 0.22) 100%);
  border: 1px solid rgba(255, 184, 0, 0.16);
  border-radius: 18px;
  padding: 28px;
}
.page-hero-card h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin-bottom: 12px;
}
.page-hero-card p {
  max-width: 900px;
  color: #d8d8df;
}
.page-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 6px;
}
.page-link-card {
  background: #1c1c26;
  border: 1px solid #2a2a38;
  border-radius: 14px;
  padding: 18px;
  color: #d0d0d8;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.page-link-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 184, 0, 0.35);
  background: #232331;
}
.page-link-card strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}
.page-link-card span {
  font-size: 14px;
  color: #b3b4bf;
}

/* ===== H1 + TRUST BAR ===== */
.article-h1 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin: 24px 0 12px;
  overflow-wrap: anywhere;
}
.trust-bar {
  color: #a0a0ac;
  font-size: 14px;
  padding: 10px 16px;
  background: #1c1c26;
  border-left: 3px solid #ffb800;
  border-radius: 6px;
  margin-bottom: 20px;
}
.trust-bar strong { color: #ffd700; }
.fast-facts {
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.08) 0%, rgba(255, 184, 0, 0.02) 100%);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 10px;
  padding: 14px 20px;
  color: #e8e8ee;
  font-size: 15px;
  margin-bottom: 24px;
}
.fast-facts strong { color: #ffd700; }

/* ===== TOC ===== */
.toc {
  background: #1c1c26;
  border: 1px solid #2a2a38;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 32px;
}
.toc summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffd700;
  font-size: 17px;
  list-style: none;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: "📖"; }
.toc summary::after {
  content: " ▼";
  margin-left: auto;
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
}
.toc[open] summary::after { content: " ▲"; }
.toc ol {
  margin-top: 16px;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.toc li {
  margin: 6px 0;
  break-inside: avoid;
}
.toc a {
  color: #d0d0d8;
  font-size: 14px;
}
.toc a:hover { color: #ffd700; }

/* ===== SECTION CARDS ===== */
section.card {
  background: #1c1c26;
  border: 1px solid #2a2a38;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: 80px;
  overflow: hidden;
}
section.card h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  padding-bottom: 12px;
  border-bottom: 2px solid #2a2a38;
}
section.card h3 {
  color: #ffd700;
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}
section.card h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin: 16px 0 8px;
}
section.card p {
  margin-bottom: 14px;
  color: #d0d0d8;
}
section.card ul,
section.card ol {
  margin: 12px 0 12px 22px;
}
section.card li {
  margin-bottom: 8px;
  color: #d0d0d8;
}
section.card strong { color: #fff; }

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 8px;
}
table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #1c1c26;
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a38;
  vertical-align: top;
}
thead th {
  background: #2a2a38;
  color: #ffd700;
  font-weight: 700;
  border-left: 3px solid #ffb800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}
thead th:not(:first-child) { border-left: none; }
tbody tr:nth-child(even) { background: #22222e; }
tbody tr:nth-child(odd)  { background: #1c1c26; }
tbody tr:hover { background: #2a2a38; }
td a { color: #ffd700; }

/* ===== CALLOUTS ===== */
.callout {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.55;
  background: #22222e;
}
.callout.warning { border-left: 4px solid #ffb800; background: rgba(255, 184, 0, 0.06); }
.callout.tip     { border-left: 4px solid #0ea5e9; background: rgba(14, 165, 233, 0.06); }
.callout.danger  { border-left: 4px solid #e11d48; background: rgba(225, 29, 72, 0.08); color: #fff; font-weight: 500; }
.callout.orange  { border-left: 4px solid #ea580c; background: rgba(234, 88, 12, 0.06); }

/* ===== GREEN CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(90deg, #00c853 0%, #00a844 100%);
  color: #000;
  text-align: center;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.25);
}
.cta-banner h3 {
  color: #000 !important;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
}
.cta-banner p {
  color: #003315;
  margin-bottom: 16px;
  font-weight: 600;
}
.cta-banner .btn {
  background: #000;
  color: #ffd700;
  border-color: #000;
  padding: 14px 36px;
  font-size: 17px;
}
.cta-banner .btn:hover { background: #1a1a1a; }

/* ===== BAR CHART ===== */
.bar-chart { margin: 20px 0; }
.bar-row { margin-bottom: 18px; }
.bar-label {
  color: #e8e8ee;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.bar-track {
  background: #0e0e14;
  border-radius: 6px;
  height: 30px;
  overflow: hidden;
  border: 1px solid #2a2a38;
}
.bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #000;
  font-weight: 800;
  font-size: 13px;
  transition: width 1s ease-out;
}
.bar-green { background: linear-gradient(90deg, #10b981, #059669); width: 100%; }
.bar-blue  { background: linear-gradient(90deg, #0ea5e9, #0284c7); width: 80%;  }
.bar-amber { background: linear-gradient(90deg, #f59e0b, #d97706); width: 60%;  }
.chart-caption {
  color: #a0a0ac;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}

/* ===== FAQ ===== */
.faq-item {
  background: #22222e;
  border: 1px solid #2a2a38;
  border-radius: 10px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: #ffd700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "❓";
  flex-shrink: 0;
}
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: #ffb800;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid #2a2a38; }
.faq-body {
  padding: 14px 20px 18px;
  color: #d0d0d8;
}
.faq-body p { margin: 0; }

/* ===== BACK-TO-TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffb800;
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 90;
  transition: transform 0.15s;
}
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top.visible { display: flex; }

/* ===== FOOTER ===== */
footer.site-footer {
  background: #0a0a12;
  border-top: 1px solid #2a2a38;
  padding: 48px 24px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #ffd700;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.footer-col p {
  color: #a0a0ac;
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  padding: 6px 0;
  font-size: 14px;
  color: #a0a0ac;
}
.footer-col a { color: #d0d0d8; }
.footer-col a:hover { color: #ffd700; }
.footer-bottom {
  border-top: 1px solid #2a2a38;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #7c7c88;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.age-badge {
  border: 2px solid #e11d48;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 14px;
  display: inline-block;
}
.footer-bottom p {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== AUTHOR CARDS ===== */
.author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #22222e;
  border: 1px solid #2a2a38;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}
.author-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #ffb800;
  object-fit: cover;
  flex-shrink: 0;
}
.author-card-meta {
  flex: 1;
  min-width: 0;
}
.author-card-meta .author-name {
  color: #ffd700;
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 4px;
}
.author-card-meta .author-role {
  color: #a0a0ac;
  font-size: 14px;
  margin: 0 0 8px;
}
.author-card-meta .author-bio-short {
  color: #d0d0d8;
  font-size: 14px;
  margin: 0 0 8px;
  line-height: 1.55;
}
.author-card-meta a.author-link {
  font-size: 14px;
  font-weight: 700;
}

/* Author page hero */
.author-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.author-hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid #ffb800;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.author-hero-text { flex: 1; min-width: 260px; }
.author-hero-text h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
}
.author-hero-text .author-title-line {
  color: #ffd700;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}
.author-hero-text .author-meta-line {
  color: #a0a0ac;
  font-size: 14px;
  margin-bottom: 14px;
}
.author-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 10px;
}
.author-stat {
  background: #1c1c26;
  border: 1px solid #2a2a38;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.author-stat .num {
  display: block;
  color: #ffd700;
  font-weight: 900;
  font-size: 24px;
}
.author-stat .lbl {
  color: #a0a0ac;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.credentials-list li { margin-bottom: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-nav {
    order: 3;
    width: 100%;
  }
  .header-right {
    justify-content: center;
  }
  .page-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pokies-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 1; }
  section.card { padding: 24px 20px; }
  .logo-image { width: 160px; }
  .header-nav a { font-size: 13px; }
  .page-hero-card { padding: 22px; }
}
@media (max-width: 800px) {
  .author-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-hero-photo { width: 180px; height: 180px; }
}
@media (max-width: 700px) {
  main,
  .pokies-section,
  .page-hero,
  .header-inner,
  footer.site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero { padding: 44px 16px; }
  .hero-logo { width: min(88vw, 360px); }
  .hero-subtitle { font-size: 17px; }
  .hero-ctas { gap: 12px; }
  .page-link-grid { grid-template-columns: 1fr; }
  .page-link-card { padding: 16px; }
}
@media (max-width: 600px) {
  .pokies-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
  .logo { width: 100%; justify-content: center; }
  .logo-image { width: 150px; }
  .header-right {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .header-nav {
    gap: 8px 6px;
  }
  .header-nav a {
    font-size: 12px;
    padding: 5px 8px;
  }
  .author-card { flex-direction: column; align-items: center; text-align: center; }
  .author-card img { width: 80px; height: 80px; }
  .author-hero { justify-content: center; text-align: center; }
  .author-hero-photo { width: 150px; height: 150px; }
  .btn { padding: 8px 12px; font-size: 13px; }
  .btn-lg {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  section.card { padding: 20px 16px; }
  .article-h1 { font-size: 24px; }
  .cta-banner { padding: 24px 16px; }
  .toc { padding: 14px 16px; }
  .toc a { font-size: 13px; }
  .trust-bar,
  .fast-facts,
  .callout { padding: 14px; }
  .faq-item summary,
  th,
  td { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 420px) {
  .pokies-grid { grid-template-columns: 1fr; }
  .age-badge-sm { font-size: 11px; }
  .header-nav { justify-content: center; }
  .hero-subtitle { font-size: 16px; }
  .page-hero-card h1 { font-size: 26px; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .hero-ctas, .cta-banner, .back-to-top, footer.site-footer { display: none; }
  body { background: #fff; color: #000; }
  section.card { border: 1px solid #999; background: #fff; color: #000; break-inside: avoid; }
  section.card h2, section.card h3, section.card h4, .article-h1 { color: #000; }
}
