/* ============================================================
 * DigiPlus - theme.css
 * Shared visual theme. All custom classes use the "vcfd-" prefix.
 * Palette: #2C2C2C bg | #FFEF94 | #FFE135 | #6F4E37 | #FAFAD2
 * ============================================================ */

:root {
  --vcfd-bg: #2C2C2C;
  --vcfd-bg-2: #1d1d1d;
  --vcfd-bg-3: #3a3a3a;
  --vcfd-yellow: #FFE135;
  --vcfd-yellow-soft: #FFEF94;
  --vcfd-cream: #FAFAD2;
  --vcfd-brown: #6F4E37;
  --vcfd-text: #FAFAD2;
  --vcfd-text-dim: #d6d2b8;
  --vcfd-border: rgba(255, 239, 148, 0.22);
  --vcfd-primary: #FFE135;
  --vcfd-accent: #6F4E37;
  --vcfd-radius: 14px;
  --vcfd-radius-sm: 9px;
  --vcfd-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at top, #3a3a3a 0%, #2C2C2C 45%, #1d1d1d 100%);
  color: var(--vcfd-text);
  line-height: 1.55;
  font-size: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--vcfd-yellow); text-decoration: none; }
a:hover { color: var(--vcfd-yellow-soft); text-decoration: underline; }

h1, h2, h3, h4 { color: #fff; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

.vcfd-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.vcfd-wrapper { padding-bottom: 96px; }
.vcfd-section { padding: 26px 0; }
.vcfd-section--alt { background: rgba(0,0,0,0.18); border-top: 1px solid var(--vcfd-border); border-bottom: 1px solid var(--vcfd-border); }

/* ===== Header ===== */
.vcfd-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(44,44,44,0.96), rgba(44,44,44,0.88));
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--vcfd-yellow);
  box-shadow: 0 3px 14px rgba(0,0,0,0.55);
}
.vcfd-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 58px;
}
.vcfd-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 1.7rem; }
.vcfd-brand img { width: 30px; height: 30px; border-radius: 6px; }
.vcfd-brand b { color: var(--vcfd-yellow); }

.vcfd-head-actions { display: flex; align-items: center; gap: 8px; }
.vcfd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 16px; border: none; border-radius: 22px;
  font-weight: 700; font-size: 1.35rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
}
.vcfd-btn:hover { transform: translateY(-1px); text-decoration: none; }
.vcfd-btn--primary { background: linear-gradient(180deg, #FFE872, #FFE135); color: #2C2C2C; box-shadow: 0 4px 0 #b59a00; }
.vcfd-btn--primary:hover { filter: brightness(1.05); color: #2C2C2C; }
.vcfd-btn--ghost { background: transparent; color: var(--vcfd-yellow); border: 2px solid var(--vcfd-yellow); }
.vcfd-btn--ghost:hover { background: rgba(255,225,53,0.12); }
.vcfd-btn--brown { background: linear-gradient(180deg, #8a6450, #6F4E37); color: var(--vcfd-cream); }
.vcfd-btn--block { display: flex; width: 100%; }
.vcfd-iconbtn {
  width: 40px; height: 40px; border: none; background: transparent; color: var(--vcfd-yellow);
  font-size: 2rem; cursor: pointer; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile dropdown menu ===== */
.vcfd-mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: var(--vcfd-bg-2); padding: 10px 14px 16px;
  border-bottom: 2px solid var(--vcfd-yellow);
}
.vcfd-mobile-menu.vcfd-menu-open { display: flex; }
.vcfd-mobile-menu a {
  display: block; padding: 12px 12px; color: var(--vcfd-cream);
  border-bottom: 1px solid rgba(255,239,148,0.12); font-weight: 600;
}
.vcfd-mobile-menu a:hover { background: rgba(255,225,53,0.12); color: var(--vcfd-yellow); }

/* Desktop nav links (hidden on mobile) */
.vcfd-nav-desktop { display: none; gap: 14px; align-items: center; }
.vcfd-nav-desktop a { color: var(--vcfd-cream); font-weight: 600; font-size: 1.3rem; }
.vcfd-nav-desktop a:hover { color: var(--vcfd-yellow); }

/* ===== Hero / Carousel ===== */
.vcfd-carousel {
  position: relative; border-radius: var(--vcfd-radius); overflow: hidden;
  box-shadow: var(--vcfd-shadow); background: #111;
}
.vcfd-carousel-track { position: relative; }
.vcfd-carousel-slide {
  display: none; position: relative; height: 190px;
}
.vcfd-carousel-slide.vcfd-slide-active { display: block; }
.vcfd-carousel-slide img { width: 100%; height: 190px; object-fit: cover; }
.vcfd-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%);
  color: #fff;
}
.vcfd-carousel-caption b { color: var(--vcfd-yellow); font-size: 1.7rem; display: block; }
.vcfd-carousel-caption span { font-size: 1.2rem; color: var(--vcfd-yellow-soft); }
.vcfd-carousel-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; z-index: 5; }
.vcfd-carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.vcfd-carousel-dot.vcfd-dot-active { background: var(--vcfd-yellow); }

/* ===== Chips / filter ===== */
.vcfd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.vcfd-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: var(--vcfd-bg-3);
  color: var(--vcfd-cream); font-size: 1.25rem; font-weight: 600; cursor: pointer; border: 1px solid transparent;
}
.vcfd-chip.vcfd-chip-active { background: var(--vcfd-yellow); color: #2C2C2C; border-color: var(--vcfd-yellow); }

/* ===== Section heading ===== */
.vcfd-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vcfd-section-head h2 { margin: 0; font-size: 1.85rem; color: #fff; }
.vcfd-section-head h2 span { color: var(--vcfd-yellow); }
.vcfd-link-more { color: var(--vcfd-yellow); font-size: 1.25rem; font-weight: 600; }

/* ===== Game grids ===== */
.vcfd-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.vcfd-grid--4 { grid-template-columns: repeat(4, 1fr); }
.vcfd-card {
  background: linear-gradient(180deg, #3a3a3a, #232323);
  border: 1px solid var(--vcfd-border); border-radius: var(--vcfd-radius-sm);
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.vcfd-card:hover { transform: translateY(-3px); border-color: var(--vcfd-yellow); box-shadow: 0 8px 18px rgba(0,0,0,0.55); }
.vcfd-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #111; }
.vcfd-card-name { padding: 6px 4px; font-size: 1.15rem; color: var(--vcfd-cream); text-align: center; font-weight: 600; line-height: 1.2; min-height: 32px; }
.vcfd-card-badge { background: var(--vcfd-yellow); color: #2C2C2C; font-size: 1rem; padding: 2px 6px; border-radius: 6px; font-weight: 700; display: inline-block; margin-bottom: 4px; }

/* ===== Hero CTA banner ===== */
.vcfd-cta {
  background: linear-gradient(120deg, #6F4E37 0%, #FFE135 100%);
  border-radius: var(--vcfd-radius); padding: 18px; color: #2C2C2C;
  text-align: center; box-shadow: var(--vcfd-shadow);
}
.vcfd-cta h2 { color: #2C2C2C; margin-bottom: 6px; }
.vcfd-cta p { color: #2C2C2C; margin-bottom: 12px; }
.vcfd-cta .vcfd-btn { background: #2C2C2C; color: var(--vcfd-yellow); box-shadow: 0 4px 0 #000; }

/* ===== Info / feature blocks ===== */
.vcfd-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.vcfd-feature {
  background: rgba(255,239,148,0.06); border: 1px solid var(--vcfd-border);
  border-radius: var(--vcfd-radius-sm); padding: 14px; text-align: center;
}
.vcfd-feature .vcfd-feature-icon { font-size: 2.6rem; color: var(--vcfd-yellow); margin-bottom: 6px; }
.vcfd-feature h3 { font-size: 1.4rem; margin-bottom: 4px; color: #fff; }
.vcfd-feature p { font-size: 1.2rem; margin: 0; color: var(--vcfd-text-dim); }

/* ===== Steps ===== */
.vcfd-steps { counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.vcfd-step { display: flex; gap: 12px; background: rgba(0,0,0,0.22); border-radius: var(--vcfd-radius-sm); padding: 12px; border: 1px solid var(--vcfd-border); }
.vcfd-step-num { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--vcfd-yellow); color: #2C2C2C; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.vcfd-step h3 { font-size: 1.45rem; margin: 0 0 4px; color: #fff; }
.vcfd-step p { margin: 0; font-size: 1.25rem; color: var(--vcfd-text-dim); }

/* ===== Testimonials ===== */
.vcfd-testi { background: rgba(0,0,0,0.25); border-left: 4px solid var(--vcfd-yellow); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.vcfd-testi p { margin: 0 0 6px; font-size: 1.25rem; color: var(--vcfd-cream); }
.vcfd-testi b { color: var(--vcfd-yellow); }

/* ===== Payment pills ===== */
.vcfd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.vcfd-pill { background: rgba(255,239,148,0.08); border: 1px solid var(--vcfd-border); color: var(--vcfd-cream); padding: 8px 14px; border-radius: 20px; font-size: 1.2rem; font-weight: 600; }

/* ===== RTP table ===== */
.vcfd-rtp-table { width: 100%; border-collapse: collapse; background: rgba(0,0,0,0.22); border-radius: 10px; overflow: hidden; }
.vcfd-rtp-table th, .vcfd-rtp-table td { padding: 9px 10px; font-size: 1.2rem; text-align: left; border-bottom: 1px solid var(--vcfd-border); }
.vcfd-rtp-table th { background: var(--vcfd-brown); color: var(--vcfd-yellow-soft); }
.vcfd-rtp-table td b { color: var(--vcfd-yellow); }

/* ===== Winners ===== */
.vcfd-winner { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: rgba(0,0,0,0.25); border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--vcfd-border); }
.vcfd-winner span { color: var(--vcfd-cream); font-size: 1.2rem; }
.vcfd-winner b { color: var(--vcfd-yellow); font-size: 1.3rem; }

/* ===== FAQ ===== */
.vcfd-faq { background: rgba(0,0,0,0.22); border: 1px solid var(--vcfd-border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.vcfd-faq-head { padding: 12px 14px; cursor: pointer; font-weight: 700; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.vcfd-faq-head i { color: var(--vcfd-yellow); }
.vcfd-faq-body { padding: 0 14px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--vcfd-text-dim); font-size: 1.2rem; }
.vcfd-faq.vcfd-faq-open .vcfd-faq-body { padding: 0 14px 14px; max-height: 360px; }

/* ===== Footer ===== */
.vcfd-footer { background: var(--vcfd-bg-2); border-top: 2px solid var(--vcfd-yellow); padding: 24px 0 30px; margin-top: 20px; }
.vcfd-footer p { font-size: 1.2rem; color: var(--vcfd-text-dim); }
.vcfd-footer h4 { color: var(--vcfd-yellow); font-size: 1.4rem; margin-top: 12px; margin-bottom: 8px; }
.vcfd-footer-links { display: flex; flex-direction: column; gap: 4px; }
.vcfd-footer-links a { color: var(--vcfd-cream); font-size: 1.2rem; }
.vcfd-footer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vcfd-footer-buttons .vcfd-btn { flex: 1 1 calc(50% - 8px); min-height: 36px; font-size: 1.2rem; }
.vcfd-copy { font-size: 1.1rem; color: var(--vcfd-text-dim); text-align: center; padding-top: 14px; border-top: 1px solid var(--vcfd-border); margin-top: 14px; }

/* ===== Bottom nav (mobile only) ===== */
.vcfd-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px;
  background: linear-gradient(180deg, rgba(44,44,44,0.98), rgba(20,20,20,0.99));
  border-top: 2px solid var(--vcfd-yellow);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.55);
}
.vcfd-bottomnav-btn {
  flex: 1 1 0; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--vcfd-cream); background: transparent; border: none;
  font-size: 1.05rem; font-weight: 600; gap: 2px; cursor: pointer; padding: 4px 2px;
  transition: color .15s ease, transform .15s ease;
}
.vcfd-bottomnav-btn:hover { color: var(--vcfd-yellow); transform: translateY(-1px); }
.vcfd-bottomnav-btn .material-icons,
.vcfd-bottomnav-btn ion-icon,
.vcfd-bottomnav-btn i { font-size: 24px; line-height: 1; }
.vcfd-bottomnav-btn span { font-size: 1.05rem; }
.vcfd-bottomnav-active { color: var(--vcfd-yellow) !important; }
.vcfd-bottomnav-active::after {
  content: ""; display: block; width: 26px; height: 3px; background: var(--vcfd-yellow);
  border-radius: 2px; margin-top: 2px;
}

/* Back-to-top */
.vcfd-top {
  position: fixed; right: 14px; bottom: 76px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--vcfd-yellow); color: #2C2C2C; border: none; font-size: 2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.vcfd-top.vcfd-top-visible { opacity: 1; pointer-events: auto; }

/* ===== Inline promo link styling ===== */
.vcfd-promo-text {
  color: var(--vcfd-yellow); font-weight: 800; cursor: pointer;
  border-bottom: 2px dashed var(--vcfd-yellow);
}
.vcfd-promo-text:hover { color: var(--vcfd-yellow-soft); }

/* ===== Helpers ===== */
.vcfd-mt { margin-top: 16px; }
.vcfd-mb0 { margin-bottom: 0; }
.vcfd-center { text-align: center; }
.vcfd-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vcfd-tag { display: inline-block; background: rgba(255,225,53,0.16); color: var(--vcfd-yellow); padding: 3px 8px; border-radius: 6px; font-size: 1.1rem; font-weight: 700; margin: 0 4px 4px 0; }

/* ===== Responsive (tablet / desktop) ===== */
@media (min-width: 768px) {
  body { background: radial-gradient(circle at top, #4a4a4a 0%, #2C2C2C 50%, #161616 100%); }
  .vcfd-container { max-width: 900px; padding: 0 20px; }
  .vcfd-header-inner { height: 64px; }
  .vcfd-iconbtn.vcfd-menu-toggle { display: none; }
  .vcfd-mobile-menu { display: none !important; }
  .vcfd-nav-desktop { display: flex; }
  .vcfd-grid { grid-template-columns: repeat(6, 1fr); }
  .vcfd-grid--4 { grid-template-columns: repeat(8, 1fr); }
  .vcfd-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .vcfd-carousel-slide, .vcfd-carousel-slide img { height: 280px; }
  /* Hide the fixed bottom nav on larger screens */
  .vcfd-bottomnav { display: none; }
  .vcfd-wrapper { padding-bottom: 30px; }
}
