/* ============================================
   Main stylesheet - frsportbrands.info
   Last touched: March 2024
   TODO: clean up the body bg stuff at some point
   ============================================ */

/* body background - dimmed img1, had issues with z-index before, fixed now */
body {
  background-image: url('../images/img1.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  min-height: 100vh;
}

/* overlay to darken the bg photo - value was 0.82 but looked too dark on mobile */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.91);
  z-index: 0;
}

/* everything above the overlay */
body > * {
  position: relative;
  z-index: 1;
}

/* ---- age popup overlay ---- */
#age-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#age-modal-box {
  background: #fff;
  border: 2px solid #111;
  max-width: 440px;
  width: 92%;
  padding: 2.2rem 2rem;
}

/* underage popup - shows after clicking <18 */
#underage-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.88);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#underage-overlay.show-it {
  display: flex;
}

#underage-msg {
  background: #fff;
  border: 2px solid #dc3545;
  max-width: 420px;
  width: 92%;
  padding: 2rem;
}

/* cookie banner - bottom fixed */
#cookie-bar {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  z-index: 8888;
  padding: 0.85rem 1.2rem;
  display: none; /* shown via JS */
  font-size: 0.85rem;
}

#cookie-bar.visible {
  display: block;
}

/* 18+ warning bar - right under navbar */
#warn-bar {
  background: #111;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  text-align: center;
}

/* ---- navbar tweaks ---- */
/* kept navbar white, black text and border bottom */
#main-nav {
  border-bottom: 2px solid #111;
  background: #fff !important;
}

#nav-logo-img {
  height: 42px;
  width: auto;
}

/* hero and brands-section base rules removed - now handled in dark theme block below */

/* individual brand card - tried with shadow but it looked off */
.brand-card-wrap {
  border: 1.5px solid #ddd;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.18s;
  height: 100%;
}

.brand-card-wrap:hover {
  border-color: #111;
  box-shadow: 0 4px 14px rgba(0,0,0,0.09);
}

.brand-logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

/* rating stars - just static for now, maybe dynamic later */
.star-rating span {
  color: #111;
  font-size: 1.05rem;
}

/* table comparison section */
#compare-section {
  padding: 3.5rem 0;
}

#compare-table thead {
  background: #111;
  color: #fff;
}

/* info/feature boxes */
#features-section {
  background: #f8f8f8;
  padding: 3.5rem 0;
}

.feat-box {
  border-left: 3px solid #111;
  padding-left: 1rem;
}

/* responsible gambling partners - footer-like mini section */
#rg-partners-section {
  padding: 2.5rem 0;
  border-top: 1.5px solid #ddd;
}

.rg-logo-link img {
  max-height: 38px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}

.rg-logo-link:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ---- footer ---- */
#main-footer {
  background: #111;
  color: #ccc;
  font-size: 0.82rem;
  padding: 2.5rem 0 1.2rem;
  border-top: 3px solid #000;
}

#main-footer a {
  color: #ccc;
  text-decoration: none;
}

#main-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

#footer-logo {
  max-height: 36px;
}

/* page inner layout */
.page-wrap {
  background: #fff;
  min-height: 60vh;
}

/* contact form */
#contact-form-section input,
#contact-form-section textarea,
#contact-form-section select {
  border: 1.5px solid #aaa;
  border-radius: 0;
}

#contact-form-section input:focus,
#contact-form-section textarea:focus {
  border-color: #111;
  box-shadow: none;
}

/* info page - article-like layout, mimicking the reference */
#info-article h2 {
  font-size: 1.45rem;
  font-weight: 700;
  border-bottom: 2px solid #111;
  padding-bottom: 0.4rem;
  margin-top: 2rem;
}

#info-article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.4rem;
}

/* responsible gambling page */
#rg-content h2 {
  border-left: 4px solid #111;
  padding-left: 0.7rem;
}

/* table of contents box on info page */
#toc-box {
  border: 1.5px solid #111;
  background: #f9f9f9;
  padding: 1.2rem 1.5rem;
}

#toc-box a {
  color: #111;
}

#toc-box a:hover {
  color: #555;
}

/* misc utility */
.btn-dark-custom {
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-dark-custom:hover {
  background: #fff;
  color: #111;
}

.btn-outline-dark-custom {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  border-radius: 0;
  font-weight: 600;
}

.btn-outline-dark-custom:hover {
  background: #111;
  color: #fff;
}

/* section headings style - reused across pages */
.section-title-main {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.section-title-main::after {
  content: '';
  display: block;
  height: 3px;
  background: #111;
  margin-top: 0.3rem;
}

/* mobile fixes - generic, non-homepage */
@media (max-width: 768px) {
  #age-modal-box {
    padding: 1.5rem 1.2rem;
  }
  .brand-logo-img {
    max-height: 38px;
  }
}

/* ============================================
   HOMEPAGE DARK THEME
   Only active when body has .body-dark
   (homepage only - other pages stay white)
   ============================================ */

/* override the white overlay on homepage - show the dark bg photo instead */
.body-dark::before {
  background: rgba(10, 5, 25, 0.82);
}

/* dark gradient over the bg image, wine/purple tone like reference */
.body-dark {
  background-color: #1a0a2e;
}

/* homepage navbar - transparent dark, no white bg */
.body-dark #main-nav {
  background: rgba(15, 7, 30, 0.75) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

/* nav links white on dark bg */
.body-dark #main-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
}

.body-dark #main-nav .nav-link:hover {
  color: #fff !important;
}

/* warn bar on homepage - slightly different shade */
.body-dark #warn-bar {
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.76rem;
}

/* ---- HERO ---- */
#hero-section {
  padding: 4rem 0 3rem;
}

/* big uppercase headline - matches reference font weight and size */
#hero-headline {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}

#hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

/* trust badges row - small pill items */
.hero-badge-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}

/* ---- BRANDS SECTION ---- */
#brands-section {
  background: transparent;
  padding: 2rem 0 3rem;
}

/* dark card - matches reference: dark navy/indigo background */
.brand-card-dark {
  background: #1c1240;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 1rem;
  position: relative;
  overflow: visible;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.brand-card-dark:hover {
  border-color: rgba(255,200,0,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* inner flex row padding */
.bc-inner {
  padding: 1.1rem 1.4rem;
}

/* "MeilleurChoix" badge - positioned top-left, red pill like reference */
.bc-top-badge {
  position: absolute;
  top: -11px;
  left: 16px;
  background: #e0001b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(224,0,27,0.45);
}

/* logo column - fixed width box */
.bc-logo-col {
  min-width: 110px;
  max-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* brand logo sizing inside dark cards */
.bc-logo-img {
  max-height: 46px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  /* some logos are dark so keep them as-is, no invert */
}

/* offer label - small grey text above bonus */
.bc-offer-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* bonus text - white, slightly larger */
.bc-bonus-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* score column */
.bc-score-col {
  min-width: 70px;
}

/* big score number like 9.8, gold-ish */
.bc-score-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffc107;
  line-height: 1.1;
}

/* stars below score */
.bc-stars {
  color: #ffc107;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* CTA column */
.bc-cta-col {
  min-width: 160px;
  text-align: right;
}

/* yellow CTA button - main action on cards */
.btn-yellow-cta {
  display: inline-block;
  background: #f5a623;
  /* gradient to match reference warm orange-yellow */
  background: linear-gradient(135deg, #f5c518 0%, #e07b00 100%);
  color: #1a0a2e;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  transition: filter 0.18s, transform 0.12s;
  white-space: nowrap;
}

.btn-yellow-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #1a0a2e;
  text-decoration: none;
}

/* ---- FOOTER on homepage ---- */
/* footer has different treatment on homepage - darker, more opaque */
.body-dark #main-footer {
  background: rgba(8, 4, 18, 0.92);
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* separator line above footer logos */
.footer-logos-row {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* legal text blocks */
.footer-legal-item {
  margin-bottom: 1.4rem;
}

.footer-legal-h {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.footer-legal-p {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-legal-list {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  padding-left: 1.2rem;
  margin-top: 0.4rem;
}

.footer-legal-list a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.footer-legal-list a:hover {
  color: #fff;
}

/* footer nav links row */
.footer-nav-links {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-nav-a {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-a:hover {
  color: #fff;
  text-decoration: underline;
}

/* footer bottom logo + copyright */
#footer-logo {
  max-height: 40px;
  opacity: 0.85;
}

.footer-copyright {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  margin-bottom: 0;
}

/* ---- responsive adjustments for dark homepage ---- */
@media (max-width: 768px) {
  #hero-headline {
    font-size: 1.9rem;
  }
  .bc-inner {
    padding: 1rem;
  }
  .bc-cta-col {
    min-width: 100%;
    text-align: center;
  }
  .btn-yellow-cta {
    width: 100%;
    text-align: center;
    display: block;
  }
  .bc-logo-col {
    min-width: 90px;
  }
  .bc-score-num {
    font-size: 1.3rem;
  }
}
