/*
Theme Name: GamblingHub Canada
Theme URI: https://gamblinghub.ca/
Author: GamblingHub.ca
Description: A clean, responsive review theme for Canadian casino and slot content.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamblinghub
*/

:root {
  --gh-navy: #071a33;
  --gh-blue: #0a58ca;
  --gh-blue-2: #1473e6;
  --gh-orange: #ff8a1f;
  --gh-orange-dark: #d96500;
  --gh-red: #d8293a;
  --gh-ink: #142033;
  --gh-muted: #607087;
  --gh-line: #dce5ef;
  --gh-soft: #f2f7fc;
  --gh-white: #fff;
  --gh-shadow: 0 14px 36px rgba(7, 26, 51, 0.1);
  --gh-radius: 18px;
  --gh-container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--gh-white);
  color: var(--gh-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gh-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gh-orange-dark); }
button, input { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--gh-white);
  color: var(--gh-navy);
  border-radius: 8px;
}

.site-shell { width: min(calc(100% - 40px), var(--gh-container)); margin-inline: auto; }
.site-main { min-height: 55vh; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,229,239,.9);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-main {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}
.site-branding a { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo { width: 242px; max-height: 54px; }
.custom-logo { width: auto; max-width: 242px; max-height: 54px; }

.quick-search { position: relative; width: min(100%, 520px); justify-self: center; }
.quick-search__form { position: relative; }
.quick-search__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 52px 10px 17px;
  color: var(--gh-ink);
  background: var(--gh-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.quick-search__input:focus {
  background: var(--gh-white);
  border-color: var(--gh-blue-2);
  box-shadow: 0 0 0 4px rgba(20,115,230,.12);
}
.quick-search__button {
  position: absolute;
  top: 5px; right: 6px;
  display: grid;
  width: 36px; height: 36px;
  padding: 0;
  place-items: center;
  color: var(--gh-white);
  background: var(--gh-blue);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.quick-search__button:hover { background: var(--gh-orange-dark); }
.search-suggestions {
  position: absolute;
  top: calc(100% + 10px); right: 0; left: 0;
  display: none;
  overflow: hidden;
  background: var(--gh-white);
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  box-shadow: var(--gh-shadow);
}
.search-suggestions.is-open { display: block; }
.suggestion-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 14px;
  color: var(--gh-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gh-line);
}
.suggestion-link:last-child { border-bottom: 0; }
.suggestion-link:hover, .suggestion-link:focus { color: var(--gh-blue); background: var(--gh-soft); }
.suggestion-thumb { width: 48px; height: 42px; object-fit: cover; border-radius: 8px; background: var(--gh-soft); }
.suggestion-meta { display: block; color: var(--gh-muted); font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.suggestion-empty { margin: 0; padding: 14px 16px; color: var(--gh-muted); }

.menu-toggle { display: none; padding: 8px; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--gh-navy); }
.primary-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--gh-navy); font-size: .95rem; font-weight: 750; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--gh-orange-dark); }
.menu-placeholder { color: var(--gh-muted); font-size: .85rem; }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 70px;
  color: var(--gh-white);
  background:
    radial-gradient(circle at 85% 20%, rgba(255,138,31,.35), transparent 24%),
    radial-gradient(circle at 8% 100%, rgba(20,115,230,.5), transparent 35%),
    linear-gradient(125deg, #06172d 0%, #0a438d 68%, #0a58ca 100%);
}
.home-hero::after {
  position: absolute;
  right: -80px; bottom: -135px;
  width: 360px; height: 360px;
  content: "";
  border: 50px solid rgba(255,255,255,.05);
  border-radius: 50%;
}
.home-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { margin: 0 0 10px; color: #ffbd73; font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.home-hero h1 { max-width: 760px; margin: 0 0 17px; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.03; letter-spacing: -.045em; }
.home-hero__copy { max-width: 720px; color: #dceaff; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.home-hero__copy p:last-child { margin-bottom: 0; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-chip { padding: 7px 12px; color: #edf6ff; font-size: .82rem; font-weight: 700; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); }

.content-section { padding: 64px 0; }
.content-section:nth-child(odd) { background: var(--gh-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; color: var(--gh-navy); font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p { max-width: 520px; margin: 0; color: var(--gh-muted); }

.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.content-card {
  overflow: hidden;
  background: var(--gh-white);
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius);
  box-shadow: 0 6px 16px rgba(7,26,51,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.content-card:hover { transform: translateY(-7px); border-color: rgba(20,115,230,.35); box-shadow: var(--gh-shadow); }
.content-card__link { display: block; height: 100%; color: var(--gh-ink); text-decoration: none; }
.content-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dfeeff, #eff5fb); }
.content-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.content-card:hover .content-card__image { transform: scale(1.065); filter: saturate(1.08); }
.content-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--gh-blue); }
.content-card__placeholder svg { width: 54px; height: 54px; opacity: .65; }
.content-card__badge { position: absolute; top: 12px; left: 12px; padding: 5px 9px; color: var(--gh-white); background: rgba(7,26,51,.82); border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); }
.content-card__arrow { position: absolute; right: 13px; bottom: 13px; display: grid; width: 38px; height: 38px; place-items: center; color: var(--gh-white); background: var(--gh-orange); border-radius: 50%; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.content-card:hover .content-card__arrow { opacity: 1; transform: translateY(0); }
.content-card__body { padding: 17px 18px 19px; }
.content-card__title { margin: 0; color: var(--gh-navy); font-size: 1.08rem; line-height: 1.35; }
.content-card:hover .content-card__title { color: var(--gh-blue); }

.section-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 34px; }
.section-pagination a, .section-pagination span { display: grid; min-width: 40px; height: 40px; padding: 0 10px; place-items: center; color: var(--gh-navy); font-weight: 750; text-decoration: none; border: 1px solid var(--gh-line); border-radius: 10px; background: var(--gh-white); }
.section-pagination a:hover, .section-pagination .current { color: var(--gh-white); border-color: var(--gh-blue); background: var(--gh-blue); }

.page-header { padding: 58px 0 46px; color: var(--gh-white); background: linear-gradient(120deg, var(--gh-navy), var(--gh-blue)); }
.page-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
.page-header p { margin: 10px 0 0; color: #dceaff; }
.standard-content { padding: 55px 0 75px; }
.prose { max-width: 800px; }
.prose h2, .prose h3 { color: var(--gh-navy); line-height: 1.2; }
.prose img { border-radius: 14px; }

.review-hero { padding: 54px 0; background: var(--gh-soft); }
.review-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
.review-hero__image { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 22px; box-shadow: var(--gh-shadow); background: var(--gh-white); }
.review-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.review-hero h1 { margin: 7px 0 16px; color: var(--gh-navy); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
.review-summary { color: var(--gh-muted); font-size: 1.08rem; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 25px; }
.play-button { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; color: var(--gh-white); font-weight: 850; text-decoration: none; background: linear-gradient(135deg, var(--gh-orange), #ff6a00); border-radius: 12px; box-shadow: 0 10px 24px rgba(255,106,0,.25); transition: transform .2s, box-shadow .2s; }
.play-button:hover { color: var(--gh-white); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255,106,0,.34); }
.affiliate-note { color: var(--gh-muted); font-size: .78rem; }
.review-content { padding: 55px 0; }
.review-content__grid { display: grid; grid-template-columns: minmax(0, 820px) 270px; align-items: start; justify-content: space-between; gap: 54px; }
.review-sidebar { position: sticky; top: 110px; padding: 22px; background: var(--gh-soft); border: 1px solid var(--gh-line); border-radius: 16px; }
.review-sidebar h2 { margin: 0 0 10px; color: var(--gh-navy); font-size: 1.1rem; }
.review-sidebar p { margin: 0; color: var(--gh-muted); font-size: .9rem; }
.related-section { padding: 56px 0 72px; background: var(--gh-soft); }

.empty-state { max-width: 680px; margin: 70px auto; padding: 36px; text-align: center; background: var(--gh-soft); border: 1px solid var(--gh-line); border-radius: var(--gh-radius); }
.empty-state h1, .empty-state h2 { margin-top: 0; color: var(--gh-navy); }
.search-results-grid { padding: 48px 0 72px; }

.site-footer { padding: 38px 0; color: #cbd9e9; background: var(--gh-navy); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.footer-brand { width: 205px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-disclaimer { max-width: 780px; margin: 0; font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-links a { color: var(--gh-white); font-size: .87rem; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.footer-meta { margin-top: 8px; color: #9eb1c7; font-size: .8rem; text-align: right; }

@media (max-width: 1040px) {
  .header-main { grid-template-columns: 220px 1fr auto; gap: 18px; }
  .site-logo, .custom-logo { max-width: 210px; }
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .primary-menu { gap: 16px; }
  .review-content__grid { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
}

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .header-main { grid-template-columns: 1fr auto; min-height: 72px; }
  .quick-search { grid-column: 1 / -1; grid-row: 2; width: 100%; padding-bottom: 14px; }
  .menu-toggle { display: block; }
  .site-navigation { position: absolute; top: 72px; right: 20px; display: none; min-width: 220px; padding: 14px; background: var(--gh-white); border: 1px solid var(--gh-line); border-radius: 14px; box-shadow: var(--gh-shadow); }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-menu a { display: block; padding: 8px 10px; }
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  .site-shell { width: min(calc(100% - 28px), var(--gh-container)); }
  .site-logo, .custom-logo { max-width: 200px; }
  .home-hero { padding: 52px 0; }
  .content-section { padding: 48px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-card__media { aspect-ratio: 16 / 9; }
  .review-hero { padding: 34px 0; }
  .review-content { padding: 38px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
