/*
Theme Name: Olympia Insider
Theme URI: https://pick3results.com/
Author: Olympia Insider AU
Description: Custom theme for Olympia Insider AU — an independent affiliate site about Olympia Casino AU. Sibling design to an earlier bronze/marble affiliate theme about the same casino; this pass uses a distinct sapphire/ember palette and different type system on purpose, to read as its own site rather than a reskin.
Version: 1.0.0
Text Domain: olympia-insider
*/

:root{
  /* Black & Gold v2 — a punchier, higher-contrast take: true near-black
     ground instead of a brown-black, a brighter warm-metallic gold as the
     primary accent, and a more saturated crimson as the secondary accent.
     Variable NAMES kept the same across palette passes on purpose, so every
     template referencing var(--sapphire) / var(--ember) picks up whichever
     palette is live here without per-file edits. */
  --bg: #07070a;
  --surface: #15121a;
  --surface-2: #1d1824;
  --sapphire: #f2b93d;      /* primary accent — brighter, more saturated gold */
  --sapphire-soft: #f2b93d26;
  --ivory: #f7f2e7;         /* body text on dark — warm ivory, not stark white */
  --muted: #b7ac9a;
  --muted-dim: #6f6656;
  --line: #f2b93d24;

  /* Secondary accent, used sparingly — a more saturated crimson */
  --ember: #d1273f;
  --ember-soft: #d1273f22;

  /* Back-compat aliases so any ported markup using the old variable names
     still resolves to the new palette without per-file edits. */
  --gold: var(--sapphire);
  --gold-soft: var(--sapphire-soft);
  --white: var(--ivory);
  --patina: var(--ember);
  --patina-soft: var(--ember-soft);

  /* Type roles — swapped for a more editorial-luxury pairing */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{box-sizing:border-box;}
body.oi{
  background: linear-gradient(180deg, var(--bg), #05050a 40%, var(--bg));
  color: var(--ivory);
  font-family: var(--font-body);
  margin:0;
  line-height:1.55;
}
.container{max-width:1180px; margin:0 auto; padding:0 24px;}
a{color:inherit;}
img{max-width:100%; height:auto; display:block; border-radius:12px;}

/* Header */
.site-header{position:sticky; top:0; z-index:30; background:#05050acc; backdrop-filter:blur(14px); border-bottom:1px solid var(--line);}
.site-header .container{display:flex; align-items:center; justify-content:space-between; padding:16px 24px;}
.site-logo img{height:40px; border-radius:0;}
.main-nav ul{list-style:none; display:flex; flex-wrap:wrap; gap:18px; margin:0; padding:0; font-size:13px; color:var(--muted);}
.main-nav a{text-decoration:none;}
.main-nav a:hover{color:var(--ivory);}

/* Dropdown submenu — WP auto-adds .menu-item-has-children / .sub-menu when
   pages are nested under a parent in Appearance > Menus (here: the full
   "Games" mega-dropdown). Desktop: hover/focus. Mobile: caret tap-toggle. */
.main-nav li{position:relative;}
.main-nav .sub-menu{
  list-style:none; margin:0; padding:6px; display:none; flex-direction:column; gap:0;
  position:absolute; top:100%; left:0; min-width:220px; z-index:40;
  background:var(--surface); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 14px 30px -10px #000000a0;
}
.main-nav li.menu-item-has-children > a{display:inline-flex; align-items:center; gap:5px;}
.main-nav .submenu-caret{display:none;}
@media (min-width:901px){
  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu{display:flex;}
  .main-nav .sub-menu a{display:block; padding:9px 10px; border-radius:6px; white-space:nowrap;}
  .main-nav .sub-menu a:hover{background:var(--sapphire-soft); color:var(--ivory);}
}
.header-cta{display:flex; align-items:center; gap:12px;}
.btn{display:inline-block; font-weight:700; font-size:14px; padding:10px 22px; border-radius:6px; text-decoration:none; border:1px solid var(--line); text-align:center;}
.btn-ghost{background:#ffffff08; color:var(--ivory);}
.btn-gold{background:var(--sapphire); color:#1c1206; border:none;}
.age-badge{font-family:monospace; font-size:11px; border:1px solid var(--line); border-radius:6px; padding:3px 7px; color:var(--muted);}

/* Hero / banner */
.hero-banner img{border-radius:16px; width:100%;}
.hero{padding:56px 0 24px; text-align:center;}
.hero h1{font-size:clamp(32px,5vw,52px); margin:0 0 16px; font-weight:600;}
.hero p.lead{color:var(--muted); max-width:560px; margin:0 auto 28px; font-size:17px;}

/* Content pages */
.page-content{padding:48px 0 80px;}
.page-content h1{font-size:36px; margin-bottom:16px; font-family:var(--font-display);}
.page-content h2{font-size:26px; margin:40px 0 12px; font-family:var(--font-display);}
.page-content h3{font-size:20px; margin:24px 0 10px;}
.page-content p{margin:0 0 16px; color:#d9cdb0;}
.page-content a:not(.btn):not(.btn-cta-center){color:var(--sapphire); text-decoration:underline;}
.page-content table{width:100%; border-collapse:collapse; margin:20px 0;}
.page-content th, .page-content td{border:1px solid var(--line); padding:10px; text-align:left; font-size:14px;}
.page-content th{background:var(--surface);}
/* Table of contents — page-only block (never used in blog posts), redone
   as a numbered "on this page" card instead of a plain bordered box. */
.toc{
  background:linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--line); border-left:3px solid var(--sapphire);
  border-radius:0 12px 12px 0; padding:18px 22px 20px; margin:22px 0;
}
.toc::before{
  content:'On this page'; display:block; font-family:var(--font-mono);
  font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--sapphire); margin-bottom:10px;
}
.toc ul{margin:0; padding:0; list-style:none; counter-reset:toc-counter; columns:1;}
.toc li{counter-increment:toc-counter; margin-bottom:7px;}
.toc li:last-child{margin-bottom:0;}
.toc li::before{
  content:counter(toc-counter, decimal-leading-zero); font-family:var(--font-mono);
  font-size:11px; color:var(--ember); margin-right:9px;
}
.toc a{
  color:var(--muted); text-decoration:none; font-size:14px;
  border-bottom:1px solid transparent; transition:color .15s ease, border-color .15s ease;
}
.toc a:hover{color:var(--ivory); border-bottom-color:var(--sapphire);}
@media (min-width:640px){
  .toc ul{columns:2; column-gap:28px;}
  .toc li{break-inside:avoid;}
}

.disclosure{font-size:13px; color:var(--muted-dim); font-style:italic;}
.rg-box{background:var(--sapphire-soft); border:1px solid var(--line); border-radius:10px; padding:16px 20px; margin:24px 0;}

/* Legacy/placeholder photography helper — kept for parity with the sibling
   theme's naming, even though this site starts from placeholders. */
.bronze-photo{filter: saturate(75%) brightness(0.95) contrast(1.05) hue-rotate(6deg);}

/* SEO/AI-search content blocks */
.key-takeaways{background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--sapphire); border-radius:0 10px 10px 0; padding:18px 22px; margin:24px 0;}
.key-takeaways p{font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--sapphire); margin:0 0 10px;}
.key-takeaways ul{margin:0; padding-left:18px;}
.key-takeaways li{font-size:14.5px; color:var(--ivory); line-height:1.55; margin-bottom:6px;}
.key-takeaways li:last-child{margin-bottom:0;}

.snippet-box{background:linear-gradient(155deg, var(--surface-2), var(--surface)); border:1px solid var(--line); border-radius:12px; padding:20px 24px; margin:24px 0; font-size:15px; line-height:1.65; color:var(--ivory);}
.snippet-box strong{color:var(--sapphire);}

.criteria-box{border:1px solid var(--line); border-radius:12px; padding:22px 24px; margin:24px 0;}
.criteria-box h4{font-family:var(--font-display); font-size:15px; color:var(--ember); margin:0 0 4px;}
.criteria-box p{font-size:14px; color:var(--muted); margin:0 0 14px;}
.criteria-box dl{margin:0; display:grid; gap:12px;}
.criteria-box dt{font-size:14px; font-weight:600; color:var(--ivory); margin:0;}
.criteria-box dd{font-size:13.5px; color:var(--muted); margin:2px 0 0;}

/* Game grid */
.game-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:20px; margin:24px 0;}
.game-card{background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden;}

/* Info cards: icon-badge + text blocks */
.info-card{
  background:linear-gradient(180deg, var(--surface-2), var(--surface));
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px 18px 22px;
  text-align:center;
  position:relative;
  transition:transform .18s ease, border-color .18s ease;
}
.info-card:hover{transform:translateY(-3px); border-color:var(--sapphire-soft);}
.info-card::before{
  content:''; position:absolute; top:-1px; left:20%; right:20%; height:2px;
  background:linear-gradient(90deg, transparent, var(--sapphire), transparent);
  border-radius:2px; opacity:0; transition:opacity .18s ease;
}
.info-card:hover::before{opacity:1;}
.info-icon{
  width:46px; height:46px; margin:0 auto 14px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #fbd878, var(--sapphire) 70%);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; line-height:1;
  box-shadow:0 6px 16px -6px #000000aa, inset 0 1px 0 #ffffff40;
}
.info-eyebrow{font-family:monospace; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--sapphire); margin-bottom:6px;}
.info-value{font-family:var(--font-display); font-size:18px; font-weight:600; color:var(--ivory); line-height:1.25;}
.info-card h4{font-family:var(--font-display); font-size:15px; font-weight:600; margin:0 0 6px; color:var(--ivory);}
.info-card p{font-size:12.5px; color:var(--muted); margin:0; line-height:1.45;}
.info-card a{color:inherit; text-decoration:none;}
.info-card a:hover{color:var(--sapphire);}
.game-card img{border-radius:0;}
.game-card .meta{padding:14px;}
.game-card .meta h4{margin:0 0 4px; font-size:15px;}
.game-card .meta span{font-size:12px; color:var(--muted);}

/* Stat/quick-facts row */
.stat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:24px 0 32px;}
.stat-grid-3{grid-template-columns:repeat(3,1fr);}
.step-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:20px 0;}
.step-grid-5{grid-template-columns:repeat(5,1fr);}
.compare-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:20px 0;}

/* Recent posts slider (sitewide, near footer) */
.recent-posts-section{padding:56px 0 8px;}
.recent-posts-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:12px;}
.recent-posts-head h2{font-family:var(--font-display); font-size:26px; margin:0; color:var(--ivory);}
.recent-posts-viewall{white-space:nowrap;}

.recent-posts-slider-wrap{position:relative;}
.recent-posts-track{
  display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none; padding-bottom:4px;
}
.recent-posts-track::-webkit-scrollbar{display:none;}

.recent-post-card{
  flex:0 0 calc(25% - 13.5px); scroll-snap-align:start;
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  overflow:hidden; text-decoration:none; color:inherit; display:block;
  transition:transform .18s ease, border-color .18s ease;
}
.recent-post-card:hover{transform:translateY(-3px); border-color:var(--sapphire-soft);}
.recent-post-thumb{aspect-ratio:16/10; background:var(--surface-2); overflow:hidden;}
.recent-post-thumb img{width:100%; height:100%; object-fit:cover; border-radius:0; display:block;}
.recent-post-thumb-fallback{width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:32px; opacity:0.5;}
.recent-post-body{padding:16px;}
.recent-post-date{font-family:monospace; font-size:11px; letter-spacing:.05em; color:var(--sapphire); text-transform:uppercase;}
.recent-post-card h4{font-family:var(--font-display); font-size:15px; margin:6px 0 6px; color:var(--ivory); line-height:1.3;}
.recent-post-card p{font-size:12.5px; color:var(--muted); margin:0; line-height:1.45;}

.rp-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:50%;
  background:#1d1824ee; border:1px solid var(--line); color:var(--ivory);
  display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2;
}
.rp-arrow svg{width:18px; height:18px;}
.rp-prev{left:-19px;}
.rp-next{right:-19px;}
.rp-arrow:hover{border-color:var(--sapphire-soft);}

/* Centered mid-page CTA button — replaces the old per-page inline-styled
   anchor tags with one shared, consistent component. */
.btn-cta-center{
  display:block; width:fit-content; margin:22px auto;
  padding:13px 30px; font-size:14.5px; font-weight:700;
  background:var(--sapphire); color:#1c1206; border:none; border-radius:8px;
  text-decoration:none; text-align:center; letter-spacing:.01em;
  box-shadow:0 10px 24px -12px #f2b93d66;
  transition:transform .16s ease, box-shadow .16s ease;
}
.btn-cta-center:hover{transform:translateY(-2px); box-shadow:0 14px 28px -12px #f2b93d8c;}

/* Game / product spec strip — Provider, RTP, Volatility, Max win and
   similar quick-facts rows. Replaces the old flat inline-styled flex row
   with a card-style strip: a top accent line per cell, a mono-caps label,
   and the highlighted cell (typically max win) picked out in ember. */
.spec-strip{
  display:flex; flex-wrap:wrap;
  background:var(--surface); border:1px solid var(--line); border-radius:12px;
  overflow:hidden; margin-bottom:26px;
  box-shadow:0 16px 30px -22px #000000cc;
}
.spec-item{
  flex:1; min-width:130px; padding:16px 18px 15px;
  border-right:1px solid var(--line); border-top:2px solid var(--sapphire);
  position:relative; background:linear-gradient(180deg, var(--sapphire-soft), transparent 60%);
}
.spec-item:last-child{border-right:none;}
.spec-item.spec-highlight{border-top-color:var(--ember); background:linear-gradient(180deg, var(--ember-soft), transparent 60%);}
.spec-label{
  font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--sapphire); display:flex; align-items:center; gap:5px;
}
.spec-item.spec-highlight .spec-label{color:var(--ember);}
.spec-label::before{content:'◆'; font-size:8px; opacity:.8;}
.spec-value{
  color:var(--ivory); font-weight:700; font-size:16px; margin-top:7px;
  font-family:var(--font-display); line-height:1.2;
}
.spec-item.spec-highlight .spec-value{color:var(--ember);}

/* Byline strip — page-only E-E-A-T line (blog posts use their own inline
   author/date line in single.php, untouched). Redone as a row of pill
   chips instead of a plain dot-separated text line. */
.byline-strip{
  display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center;
  margin:0 0 26px; padding-bottom:16px; border-bottom:1px solid var(--line);
}
.byline-chip, .byline-item{
  font-size:12px; color:var(--muted); padding:5px 12px; border-radius:20px;
  border:1px solid var(--line); background:var(--surface); line-height:1.3;
}
.byline-chip-accent{color:var(--sapphire); border-color:var(--sapphire-soft); font-weight:600;}
.byline-updated{color:var(--ember); border-color:var(--ember-soft);}

/* Image placeholder slot — page-only (blog posts use a real featured
   image, not this component). Redone with corner brackets like a camera
   framing guide instead of a plain dashed box. */
.img-slot{
  position:relative; border:1px solid var(--line); border-radius:14px;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:9px; padding:24px; margin:24px 0; text-align:center; overflow:hidden;
}
.img-slot-corner{position:absolute; width:22px; height:22px; opacity:.7;}
.img-slot-corner-tl{top:10px; left:10px; border-top:2px solid var(--sapphire); border-left:2px solid var(--sapphire); border-radius:4px 0 0 0;}
.img-slot-corner-br{bottom:10px; right:10px; border-bottom:2px solid var(--ember); border-right:2px solid var(--ember); border-radius:0 0 4px 0;}
.img-slot-icon{color:var(--sapphire); opacity:.6;}
.img-slot-label{margin:0; font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--sapphire);}
.img-slot-caption{margin:0; font-size:13.5px; color:var(--muted); max-width:380px; line-height:1.5;}

/* FAQ accordion — every page ends with an FAQ section; these were plain
   h3/p pairs with no visual treatment. Redone as native <details> cards
   so questions collapse by default instead of dumping every answer on
   the page at once. Page-only: blog posts don't use this pattern. */
.faq-item{
  background:var(--surface); border:1px solid var(--line); border-radius:10px;
  margin:10px 0; padding:0; overflow:hidden;
}
.faq-item + h2, .faq-item + .btn-cta-center{margin-top:28px;}
.faq-q{
  list-style:none; cursor:pointer; padding:15px 46px 15px 18px; position:relative;
  font-family:var(--font-display); font-size:15.5px; font-weight:600; color:var(--ivory);
  line-height:1.4;
}
.faq-q::-webkit-details-marker{display:none;}
.faq-q::after{
  content:'+'; position:absolute; right:16px; top:50%; transform:translateY(-50%);
  font-family:var(--font-mono); font-size:18px; color:var(--sapphire);
  transition:transform .18s ease;
}
.faq-item[open] .faq-q::after{transform:translateY(-50%) rotate(45deg); color:var(--ember);}
.faq-item[open] .faq-q{border-bottom:1px solid var(--line);}
.faq-a{padding:4px 18px 16px;}
.faq-a p{margin:0; color:#d9cdb0; font-size:14.5px;}

/* Pillars (welcome pack) */
.pillars{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin:32px 0;}
.pillar{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:22px 18px; text-align:center;}
.pillar .num{font-size:11px; letter-spacing:.08em; color:var(--sapphire); text-transform:uppercase; margin-bottom:8px;}
.pillar .amount{font-size:24px; font-weight:700; margin-bottom:4px;}
.pillar .meta{font-size:12px; color:var(--muted); border-top:1px solid var(--line); padding-top:10px; margin-top:12px; display:flex; justify-content:space-between;}

/* Footer */
.site-footer{border-top:1px solid var(--line); padding:40px 0;}
.footer-links{display:flex; flex-wrap:wrap; gap:22px; justify-content:center; font-size:13px; color:var(--muted-dim); margin-top:20px;}
.footer-links a{text-decoration:none;}

/* Mobile nav toggle button (hidden on desktop) */
.nav-toggle{
  display:none; align-items:center; justify-content:center;
  width:40px; height:40px; padding:0;
  background:none; border:1px solid var(--line); border-radius:6px;
  color:var(--ivory); cursor:pointer;
}
.nav-toggle svg{width:20px; height:20px; display:block;}
.nav-toggle .icon-close{display:none;}
.nav-toggle.is-active .icon-open{display:none;}
.nav-toggle.is-active .icon-close{display:block;}

/* Tables scroll horizontally instead of breaking layout */
.table-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch; margin:20px 0;}
.page-content table{margin:0; min-width:480px;}

/* ============ Responsive breakpoints ============ */
@media (max-width: 900px){
  .container{padding:0 18px;}
  .pillars{grid-template-columns:repeat(2,1fr);}
  .stat-grid{grid-template-columns:repeat(2,1fr);}
  .stat-grid-3{grid-template-columns:repeat(3,1fr);}
  .step-grid{grid-template-columns:1fr;}
  .step-grid-5{grid-template-columns:repeat(3,1fr);}
  .recent-post-card{flex:0 0 calc(50% - 9px);}
  .game-grid{grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); gap:14px;}
  .hero{padding:40px 0 20px;}

  .site-header .container{padding:12px 16px; flex-wrap:wrap;}
  .site-logo img{height:28px;}
  .nav-toggle{display:inline-flex; order:3;}
  .main-nav{
    display:none; order:5; width:100%;
    background:var(--surface); border:1px solid var(--line); border-radius:10px;
    margin-top:12px; padding:8px;
  }
  .main-nav.is-open{display:block;}
  .main-nav ul{flex-direction:column; gap:0;}
  .main-nav li{border-bottom:1px solid var(--line);}
  .main-nav li:last-child{border-bottom:none;}
  .main-nav a{display:block; padding:12px 10px; font-size:15px;}

  .main-nav li.menu-item-has-children{display:flex; flex-wrap:wrap; align-items:center;}
  .main-nav li.menu-item-has-children > a{flex:1; border-bottom:none;}
  .main-nav .submenu-caret{
    display:flex; align-items:center; justify-content:center;
    width:40px; height:40px; background:none; border:none; color:var(--muted);
    font-size:12px; cursor:pointer; transition:transform .15s ease;
  }
  .main-nav li.submenu-open .submenu-caret{transform:rotate(180deg); color:var(--sapphire);}
  .main-nav .sub-menu{
    display:none; position:static; width:100%; box-shadow:none; border:none;
    background:var(--surface-2); border-radius:8px; margin:0 0 8px; padding:4px;
  }
  .main-nav li.submenu-open .sub-menu{display:flex;}
  .main-nav .sub-menu a{padding:10px 14px; font-size:14px;}
  .header-cta{order:2; gap:8px;}
  .header-cta .btn{padding:8px 14px; font-size:13px;}
}

@media (max-width: 640px){
  .container{padding:0 16px;}
  .header-cta .age-badge{display:none;}
  .header-cta .btn-ghost{display:none;}

  .hero h1{font-size:28px; line-height:1.15;}
  .hero p.lead{font-size:15px;}
  .hero div[style*="display:flex"]{flex-direction:column; align-items:center;}

  .page-content h1{font-size:26px;}
  .page-content h2{font-size:21px; margin:32px 0 10px;}
  .page-content h3{font-size:18px;}
  .page-content p, .page-content li{font-size:15px;}

  .pillars{grid-template-columns:1fr; gap:12px;}
  .stat-grid{grid-template-columns:repeat(2,1fr); gap:10px;}
  .stat-grid-3{grid-template-columns:repeat(2,1fr);}
  .step-grid-5{grid-template-columns:repeat(2,1fr);}
  .compare-grid{grid-template-columns:1fr;}

  .game-grid{grid-template-columns:repeat(2, 1fr); gap:10px;}
  .game-card .meta h4{font-size:13px;}
  .game-card .meta span{font-size:11px;}

  .rg-box, .page-content .rg-box{padding:14px 16px;}
  .spec-strip{flex-wrap:wrap;}
  .spec-item{flex:0 0 50%; border-bottom:1px solid var(--line);}
  .spec-item:nth-child(2n){border-right:none;}
  .spec-item:nth-last-child(-n+2){border-bottom:none;}
  div[style*="justify-content:space-between"]{flex-direction:column; align-items:flex-start !important;}

  .site-footer{padding:28px 0;}
  .footer-links{gap:14px 18px; font-size:12px;}
}
