/* ============================================================
 * pgjili.click - Shared theme stylesheet
 * Every custom class uses the "sfcf-" prefix.
 * Palette: #FFEF94 | #DAA520 | #FAFAFA | #1A1A1A | #FFE135
 * Mobile-first: base styles target <=430px, then scale up.
 * ============================================================ */

:root {
  --sfcf-primary: #DAA520;       /* goldenrod */
  --sfcf-accent: #FFE135;        /* sunshine yellow */
  --sfcf-soft: #FFEF94;          /* soft cream-yellow */
  --sfcf-bg: #1A1A1A;            /* near-black background */
  --sfcf-surface: #242320;       /* card surface */
  --sfcf-surface-2: #2e2b25;     /* raised surface */
  --sfcf-text: #FAFAFA;          /* light text */
  --sfcf-muted: #b9b3a3;         /* muted text */
  --sfcf-border: #3a362d;        /* subtle border */
  --sfcf-danger: #ff5a5f;
  --sfcf-success: #36d399;
  --sfcf-radius: 14px;
  --sfcf-radius-sm: 10px;
  --sfcf-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --sfcf-header-h: 60px;
  --sfcf-bottomnav-h: 62px;
  --sfcf-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* Reset ----------------------------------------------------- */
* { box-sizing: border-box; }
html {
  /* root font 62.5% => 1rem = 10px for easy sizing */
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sfcf-font);
  background: var(--sfcf-bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(218, 165, 32, 0.12), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(255, 225, 53, 0.08), transparent 36%);
  background-attachment: fixed;
  color: var(--sfcf-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sfcf-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.6rem; line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }

/* Layout primitives ----------------------------------------- */
.sfcf-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.sfcf-wrapper { padding-top: calc(var(--sfcf-header-h) + 0.8rem); padding-bottom: 2rem; }
.sfcf-section { padding: 2.2rem 0; }
.sfcf-section--tight { padding: 1.4rem 0; }
.sfcf-section--alt {
  background: linear-gradient(180deg, rgba(255, 239, 148, 0.05), rgba(26, 26, 26, 0));
}
.sfcf-grid {
  display: grid;
  gap: 1rem;
}
.sfcf-grid--games {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.sfcf-grid--cols2 { grid-template-columns: repeat(2, 1fr); }
.sfcf-grid--cols4 { grid-template-columns: repeat(4, 1fr); }

.sfcf-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.sfcf-reveal.sfcf-is-visible { opacity: 1; transform: none; }

/* Header ---------------------------------------------------- */
.sfcf-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sfcf-header-h);
  background: linear-gradient(180deg, #201d18, #1a1a1a);
  border-bottom: 1px solid var(--sfcf-border);
  z-index: 1000;
  transition: box-shadow .25s ease, background .25s ease;
}
.sfcf-header.sfcf-is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55); }
.sfcf-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.sfcf-brand { display: flex; align-items: center; gap: 0.7rem; flex: 1; min-width: 0; }
.sfcf-brand img { width: 28px; height: 28px; border-radius: 8px; }
.sfcf-brand-name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, var(--sfcf-accent), var(--sfcf-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sfcf-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.sfcf-menu-btn {
  background: transparent;
  border: 1px solid var(--sfcf-border);
  color: var(--sfcf-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Buttons --------------------------------------------------- */
.sfcf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: var(--sfcf-radius-sm);
  font-weight: 700;
  font-size: 1.45rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.sfcf-btn:hover { text-decoration: none; transform: translateY(-1px); }
.sfcf-btn:active { transform: translateY(0); }
.sfcf-btn--primary {
  background: linear-gradient(135deg, var(--sfcf-accent), var(--sfcf-primary));
  color: #1a1a1a;
  box-shadow: 0 6px 18px rgba(218, 165, 32, 0.35);
}
.sfcf-btn--ghost {
  background: transparent;
  border-color: var(--sfcf-primary);
  color: var(--sfcf-accent);
}
.sfcf-btn--block { width: 100%; }
.sfcf-btn--lg { min-height: 52px; font-size: 1.6rem; }

/* Mobile dropdown menu -------------------------------------- */
.sfcf-mobile-menu {
  position: fixed;
  top: var(--sfcf-header-h);
  left: 0; right: 0;
  background: #1c1a16;
  border-bottom: 1px solid var(--sfcf-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.sfcf-mobile-menu.sfcf-is-open { max-height: 70vh; overflow-y: auto; box-shadow: var(--sfcf-shadow); }
.sfcf-mobile-menu-inner { padding: 0.8rem 1.2rem 1.4rem; display: grid; gap: 0.4rem; }
.sfcf-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 0.8rem;
  color: var(--sfcf-text);
  font-size: 1.5rem;
  border-radius: var(--sfcf-radius-sm);
  border: 1px solid transparent;
}
.sfcf-mobile-menu a:hover, .sfcf-mobile-menu a:focus {
  background: rgba(255, 225, 53, 0.08);
  border-color: var(--sfcf-border);
  text-decoration: none;
}
.sfcf-mobile-menu a i, .sfcf-mobile-menu a span.micon { color: var(--sfcf-primary); width: 22px; text-align: center; }

/* Hero / Carousel ------------------------------------------- */
.sfcf-carousel {
  position: relative;
  border-radius: var(--sfcf-radius);
  overflow: hidden;
  box-shadow: var(--sfcf-shadow);
}
.sfcf-carousel-track { position: relative; }
.sfcf-carousel-slide {
  position: relative;
  display: none;
}
.sfcf-carousel-slide.sfcf-is-active { display: block; }
.sfcf-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.sfcf-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
  color: var(--sfcf-text);
}
.sfcf-carousel-cap strong { color: var(--sfcf-accent); display: block; font-size: 1.7rem; }
.sfcf-carousel-dots {
  position: absolute;
  bottom: 10px; right: 12px;
  display: flex; gap: 6px;
}
.sfcf-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; padding: 0; cursor: pointer;
}
.sfcf-carousel-dot.sfcf-is-active { background: var(--sfcf-accent); }

/* Cards & game tiles ---------------------------------------- */
.sfcf-card {
  background: var(--sfcf-surface);
  border: 1px solid var(--sfcf-border);
  border-radius: var(--sfcf-radius);
  padding: 1.2rem;
}
.sfcf-card-title { font-size: 1.6rem; color: var(--sfcf-accent); margin-bottom: 0.6rem; }
.sfcf-card p { color: var(--sfcf-muted); font-size: 1.4rem; }

.sfcf-game-tile {
  display: block;
  background: var(--sfcf-surface-2);
  border: 1px solid var(--sfcf-border);
  border-radius: var(--sfcf-radius-sm);
  padding: 0.6rem 0.4rem 0.7rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.sfcf-game-tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--sfcf-primary);
  box-shadow: 0 6px 14px rgba(218, 165, 32, 0.25);
}
.sfcf-game-tile img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 0.5rem;
}
.sfcf-game-name {
  color: var(--sfcf-text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
  display: block;
}

/* Section heading ------------------------------------------- */
.sfcf-heading { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.sfcf-heading h2 { margin: 0; flex: 1; font-size: 1.9rem; }
.sfcf-heading .sfcf-pill {
  background: rgba(255, 225, 53, 0.12);
  color: var(--sfcf-accent);
  font-size: 1.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 53, 0.25);
}
.sfcf-divider { height: 1px; background: var(--sfcf-border); margin: 1.6rem 0; }

/* Lists ----------------------------------------------------- */
.sfcf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.sfcf-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--sfcf-muted); }
.sfcf-list li i, .sfcf-list li .micon { color: var(--sfcf-primary); margin-top: 0.35rem; }

/* Inline promo link ----------------------------------------- */
.sfcf-promo-link {
  color: var(--sfcf-accent);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 225, 53, 0.5);
  cursor: pointer;
}
.sfcf-promo-link:hover { text-decoration: none; color: var(--sfcf-soft); }

/* Steps / how-to ------------------------------------------- */
.sfcf-steps { counter-reset: step; display: grid; gap: 0.8rem; }
.sfcf-step {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.4rem;
  background: var(--sfcf-surface);
  border: 1px solid var(--sfcf-border);
  border-radius: var(--sfcf-radius-sm);
}
.sfcf-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--sfcf-accent), var(--sfcf-primary));
  color: #1a1a1a;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}

/* RTP / data bars ------------------------------------------ */
.sfcf-rtp-row { margin-bottom: 0.8rem; }
.sfcf-rtp-top { display: flex; justify-content: space-between; font-size: 1.3rem; margin-bottom: 0.3rem; }
.sfcf-rtp-top strong { color: var(--sfcf-accent); }
.sfcf-rtp-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.sfcf-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--sfcf-primary), var(--sfcf-accent)); border-radius: 999px; }

/* Testimonials / winners ----------------------------------- */
.sfcf-quote {
  background: var(--sfcf-surface);
  border-left: 3px solid var(--sfcf-primary);
  border-radius: var(--sfcf-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
}
.sfcf-quote p { margin: 0 0 0.5rem; color: var(--sfcf-text); font-size: 1.4rem; }
.sfcf-quote cite { color: var(--sfcf-muted); font-style: normal; font-size: 1.25rem; }

.sfcf-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.9rem;
  background: var(--sfcf-surface);
  border: 1px solid var(--sfcf-border);
  border-radius: var(--sfcf-radius-sm);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.sfcf-winner strong { color: var(--sfcf-accent); }

/* Payment grid --------------------------------------------- */
.sfcf-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.sfcf-pay {
  background: var(--sfcf-surface);
  border: 1px solid var(--sfcf-border);
  border-radius: var(--sfcf-radius-sm);
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--sfcf-muted);
}
.sfcf-pay i, .sfcf-pay .micon { color: var(--sfcf-primary); font-size: 2rem; }

/* Footer ---------------------------------------------------- */
.sfcf-footer {
  background: #14130f;
  border-top: 1px solid var(--sfcf-border);
  padding: 2.2rem 0 calc(var(--sfcf-bottomnav-h) + 1.4rem);
  margin-top: 2rem;
}
.sfcf-footer-brand { font-size: 1.5rem; color: var(--sfcf-muted); margin-bottom: 1rem; }
.sfcf-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.sfcf-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.sfcf-footer-links a {
  color: var(--sfcf-muted);
  font-size: 1.3rem;
  padding: 0.4rem 0;
}
.sfcf-footer-links a:hover { color: var(--sfcf-accent); }
.sfcf-copy { color: var(--sfcf-muted); font-size: 1.2rem; border-top: 1px solid var(--sfcf-border); padding-top: 1rem; }

/* Bottom navigation (mobile only) --------------------------- */
.sfcf-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--sfcf-bottomnav-h);
  background: linear-gradient(180deg, #201d18, #14130f);
  border-top: 1px solid var(--sfcf-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.sfcf-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  color: var(--sfcf-muted);
  font-size: 1.1rem;
  text-decoration: none;
  position: relative;
  transition: color .2s ease, transform .15s ease;
}
.sfcf-bottomnav a:hover { text-decoration: none; }
.sfcf-bottomnav a:active { transform: scale(0.92); }
.sfcf-bottomnav a i, .sfcf-bottomnav a .micon, .sfcf-bottomnav a ion-icon {
  font-size: 22px;
  line-height: 1;
}
.sfcf-bottomnav a span { font-size: 1.05rem; letter-spacing: 0.2px; }
.sfcf-bottomnav a.sfcf-is-active { color: var(--sfcf-accent); }
.sfcf-bottomnav a.sfcf-is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 3px;
  background: var(--sfcf-accent);
  border-radius: 0 0 4px 4px;
}
.sfcf-bottomnav a.sfcf-nav-cta {
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--sfcf-accent), var(--sfcf-primary));
  margin: 6px 4px;
  border-radius: 12px;
}
.sfcf-bottomnav a.sfcf-nav-cta span { color: #1a1a1a; font-weight: 700; }
.sfcf-bottomnav a.sfcf-nav-cta::before { display: none; }

/* Utilities ------------------------------------------------- */
.sfcf-text-center { text-align: center; }
.sfcf-mt-1 { margin-top: 0.6rem; }
.sfcf-mt-2 { margin-top: 1.2rem; }
.sfcf-mb-0 { margin-bottom: 0; }
.sfcf-hide-mobile { display: none; }
.sfcf-badge {
  display: inline-block;
  background: var(--sfcf-danger);
  color: #fff;
  font-size: 1rem;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: top;
}

/* Mobile bottom padding so content isn't covered ----------- */
main { padding-bottom: 0; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Bottom nav is mobile-only -------------------------------- */
@media (min-width: 769px) {
  .sfcf-bottomnav { display: none; }
  .sfcf-footer { padding-bottom: 2.2rem; }
  .sfcf-container { max-width: 760px; }
  .sfcf-grid--games { grid-template-columns: repeat(6, 1fr); }
}

/* Tight <=430px optimisations ------------------------------ */
@media (max-width: 430px) {
  body { font-size: 1.4rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  .sfcf-container { padding: 0 1.1rem; }
  .sfcf-grid--games { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
  .sfcf-game-tile img { height: 66px; }
  .sfcf-carousel-slide img { height: 170px; }
  .sfcf-pay-grid { grid-template-columns: repeat(3, 1fr); }
  .sfcf-btn { padding: 0 1rem; font-size: 1.35rem; }
  .sfcf-brand-name { font-size: 1.7rem; }
  .sfcf-footer-links { grid-template-columns: repeat(2, 1fr); }
}
