/**
 * Okada Manila - Core Stylesheet
 * File: css/theme-bcd0.css
 * Prefix: sbcd-
 * Palette: #0097A7 | #F08080 | #CD853F | #8B0000 | #2C3E50
 * Mobile-first, max-width 430px, rem units (root 62.5%).
 * All comments in English.
 */

:root {
  --sbcd-primary: #0097A7;
  --sbcd-secondary: #F08080;
  --sbcd-accent: #CD853F;
  --sbcd-deep: #8B0000;
  --sbcd-bg: #2C3E50;
  --sbcd-bg-dark: #1c2a36;
  --sbcd-bg-light: #34495e;
  --sbcd-text: #f4f6f8;
  --sbcd-text-muted: #b8c2cc;
  --sbcd-white: #ffffff;
  --sbcd-gold: #f5c451;
  --sbcd-radius: 1.2rem;
  --sbcd-radius-sm: 0.8rem;
  --sbcd-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  --sbcd-header-h: 5.6rem;
  --sbcd-bottomnav-h: 6.2rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: linear-gradient(160deg, var(--sbcd-bg-dark) 0%, var(--sbcd-bg) 55%, var(--sbcd-bg-light) 100%);
  color: var(--sbcd-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sbcd-secondary); text-decoration: none; }

/* Layout container, capped at 430px for mobile-first design */
.sbcd-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.sbcd-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.sbcd-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--sbcd-deep) 0%, var(--sbcd-bg) 100%);
  border-bottom: 0.2rem solid var(--sbcd-gold);
  box-shadow: var(--sbcd-shadow);
}
.sbcd-header-inner {
  max-width: 430px; margin: 0 auto; height: var(--sbcd-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; gap: 0.8rem;
}
.sbcd-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.sbcd-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.sbcd-logo-text { font-size: 1.7rem; font-weight: 800; color: var(--sbcd-gold); white-space: nowrap; letter-spacing: 0.03rem; }
.sbcd-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.sbcd-menu-btn {
  background: transparent; border: 0.1rem solid var(--sbcd-gold); color: var(--sbcd-gold);
  width: 3.6rem; height: 3.6rem; border-radius: 0.6rem; font-size: 1.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Auth buttons */
.sbcd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border: none; cursor: pointer; font-weight: 700; border-radius: var(--sbcd-radius-sm); transition: transform 0.15s ease, filter 0.15s ease; }
.sbcd-btn:active { transform: scale(0.96); }
.sbcd-btn-register { background: linear-gradient(135deg, var(--sbcd-secondary), var(--sbcd-deep)); color: var(--sbcd-white); padding: 0.8rem 1.4rem; font-size: 1.3rem; box-shadow: 0 0.3rem 0.8rem rgba(240,128,128,0.4); }
.sbcd-btn-login { background: var(--sbcd-primary); color: var(--sbcd-white); padding: 0.8rem 1.4rem; font-size: 1.3rem; }

/* ===== Mobile slide-down menu ===== */
.sbcd-mobile-menu {
  position: fixed; top: var(--sbcd-header-h); left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: var(--sbcd-bg-dark); border-bottom: 0.2rem solid var(--sbcd-gold);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.sbcd-mobile-menu.sbcd-menu-open { max-height: 50rem; }
.sbcd-mobile-menu ul { list-style: none; padding: 0.8rem 1.2rem; }
.sbcd-mobile-menu li { border-bottom: 0.1rem solid rgba(255,255,255,0.08); }
.sbcd-mobile-menu li:last-child { border-bottom: none; }
.sbcd-mobile-menu a { display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 0.4rem; color: var(--sbcd-text); font-size: 1.4rem; font-weight: 600; }
.sbcd-mobile-menu a:hover { color: var(--sbcd-gold); }

/* ===== Main content ===== */
.sbcd-main { padding-top: calc(var(--sbcd-header-h) + 1.2rem); padding-bottom: 1.2rem; }

/* ===== Hero carousel ===== */
.sbcd-carousel { position: relative; width: 100%; max-width: 430px; margin: 0 auto 2rem; border-radius: var(--sbcd-radius); overflow: hidden; box-shadow: var(--sbcd-shadow); }
.sbcd-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.sbcd-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.sbcd-slide img { width: 100%; height: 100%; object-fit: cover; }
.sbcd-slide.sbcd-slide-active { opacity: 1; }
.sbcd-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,30,40,0.78) 0%, rgba(20,30,40,0.15) 70%); display: flex; flex-direction: column; justify-content: center; padding: 1.6rem; }
.sbcd-slide-title { font-size: 1.9rem; font-weight: 800; color: var(--sbcd-white); margin-bottom: 0.4rem; }
.sbcd-slide-sub { font-size: 1.2rem; color: var(--sbcd-gold); margin-bottom: 0.8rem; }
.sbcd-slide-cta { background: var(--sbcd-secondary); color: var(--sbcd-white); padding: 0.6rem 1.4rem; border-radius: var(--sbcd-radius-sm); font-weight: 700; font-size: 1.2rem; align-self: flex-start; }
.sbcd-dots { position: absolute; bottom: 0.8rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.6rem; }
.sbcd-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.sbcd-dot.sbcd-dot-active { background: var(--sbcd-gold); }

/* ===== Section titles ===== */
.sbcd-section { margin-bottom: 2.4rem; }
.sbcd-section-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.sbcd-section-icon { font-size: 2rem; color: var(--sbcd-gold); }
.sbcd-section-title { font-size: 1.9rem; font-weight: 800; color: var(--sbcd-white); }
.sbcd-section-sub { font-size: 1.3rem; color: var(--sbcd-text-muted); margin: -0.6rem 0 1.2rem; }

/* ===== Game grid (compact icon layout) ===== */
.sbcd-game-block { margin-bottom: 2.6rem; }
.sbcd-game-block-title { font-size: 1.7rem; font-weight: 800; color: var(--sbcd-gold); margin-bottom: 1rem; padding-left: 0.6rem; border-left: 0.4rem solid var(--sbcd-primary); }
.sbcd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.sbcd-game-item { display: flex; flex-direction: column; align-items: center; background: var(--sbcd-bg-light); border-radius: var(--sbcd-radius-sm); padding: 0.6rem 0.4rem; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; border: 0.1rem solid rgba(245,196,81,0.15); }
.sbcd-game-item:hover { transform: translateY(-0.3rem); box-shadow: 0 0.3rem 0.8rem rgba(0,151,167,0.4); border-color: var(--sbcd-gold); }
.sbcd-game-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.6rem; margin-bottom: 0.4rem; }
.sbcd-game-name { font-size: 1rem; color: var(--sbcd-text); text-align: center; line-height: 1.2; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===== Cards / modules ===== */
.sbcd-card { background: linear-gradient(145deg, var(--sbcd-bg-light), var(--sbcd-bg-dark)); border-radius: var(--sbcd-radius); padding: 1.6rem; margin-bottom: 1.6rem; box-shadow: var(--sbcd-shadow); border: 0.1rem solid rgba(245,196,81,0.12); }
.sbcd-card h2 { font-size: 1.7rem; color: var(--sbcd-gold); margin-bottom: 0.8rem; font-weight: 800; }
.sbcd-card h3 { font-size: 1.4rem; color: var(--sbcd-secondary); margin: 1rem 0 0.4rem; font-weight: 700; }
.sbcd-card p { font-size: 1.3rem; color: var(--sbcd-text); margin-bottom: 0.8rem; line-height: 1.5; }
.sbcd-card ul { list-style: none; padding-left: 0; }
.sbcd-card li { font-size: 1.3rem; color: var(--sbcd-text); padding: 0.4rem 0 0.4rem 1.6rem; position: relative; line-height: 1.5; }
.sbcd-card li::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--sbcd-gold); position: absolute; left: 0; font-size: 1rem; top: 0.6rem; }

/* Promo text link (bold, eye-catching) */
.sbcd-promo-link { color: var(--sbcd-secondary); font-weight: 800; cursor: pointer; border-bottom: 0.15rem dashed var(--sbcd-secondary); }
.sbcd-promo-link:hover { color: var(--sbcd-gold); border-bottom-color: var(--sbcd-gold); }

/* Big play-now CTA button */
.sbcd-cta { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 1.6rem 0; }
.sbcd-cta-btn { background: linear-gradient(135deg, var(--sbcd-secondary), var(--sbcd-deep)); color: var(--sbcd-white); padding: 1.2rem 3rem; font-size: 1.5rem; font-weight: 800; border-radius: 2.4rem; border: none; cursor: pointer; box-shadow: 0 0.4rem 1.2rem rgba(240,128,128,0.45); transition: transform 0.15s; }
.sbcd-cta-btn:active { transform: scale(0.96); }

/* RTP compact data table */
.sbcd-rtp-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 0.1rem solid rgba(255,255,255,0.08); font-size: 1.3rem; }
.sbcd-rtp-row:last-child { border-bottom: none; }
.sbcd-rtp-name { color: var(--sbcd-text); font-weight: 600; }
.sbcd-rtp-val { color: var(--sbcd-gold); font-weight: 800; }
.sbcd-rtp-bar { width: 100%; height: 0.6rem; background: rgba(255,255,255,0.1); border-radius: 0.4rem; margin-top: 0.3rem; overflow: hidden; }
.sbcd-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--sbcd-primary), var(--sbcd-gold)); }

/* Testimonials */
.sbcd-testi { background: var(--sbcd-bg-light); border-radius: var(--sbcd-radius-sm); padding: 1.2rem; margin-bottom: 1rem; border-left: 0.3rem solid var(--sbcd-secondary); }
.sbcd-testi-name { font-size: 1.3rem; color: var(--sbcd-gold); font-weight: 700; margin-bottom: 0.3rem; }
.sbcd-testi-text { font-size: 1.2rem; color: var(--sbcd-text-muted); line-height: 1.5; }

/* Winners showcase */
.sbcd-winner { display: flex; align-items: center; gap: 0.8rem; background: var(--sbcd-bg-light); padding: 0.8rem; border-radius: var(--sbcd-radius-sm); margin-bottom: 0.6rem; }
.sbcd-winner-ava { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--sbcd-primary); display: flex; align-items: center; justify-content: center; color: var(--sbcd-white); font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.sbcd-winner-info { flex: 1; min-width: 0; }
.sbcd-winner-name { font-size: 1.2rem; color: var(--sbcd-text); font-weight: 700; }
.sbcd-winner-game { font-size: 1.1rem; color: var(--sbcd-text-muted); }
.sbcd-winner-amount { font-size: 1.3rem; color: var(--sbcd-gold); font-weight: 800; }

/* Payment methods */
.sbcd-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.sbcd-pay-item { background: var(--sbcd-white); border-radius: 0.6rem; padding: 0.8rem 0.4rem; text-align: center; font-size: 1rem; font-weight: 700; color: var(--sbcd-bg); display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.sbcd-pay-item i { font-size: 1.8rem; color: var(--sbcd-primary); }

/* App download CTA */
.sbcd-app-card { background: linear-gradient(135deg, var(--sbcd-primary), var(--sbcd-bg)); border-radius: var(--sbcd-radius); padding: 1.6rem; text-align: center; margin-bottom: 1.6rem; }
.sbcd-app-card h3 { color: var(--sbcd-white); font-size: 1.6rem; margin-bottom: 0.6rem; }
.sbcd-app-card p { color: var(--sbcd-text); font-size: 1.3rem; margin-bottom: 1rem; }
.sbcd-app-btn { background: var(--sbcd-gold); color: var(--sbcd-bg-dark); padding: 1rem 2.4rem; border-radius: 2rem; font-weight: 800; font-size: 1.4rem; border: none; cursor: pointer; }

/* Reveal animation */
.sbcd-reveal { opacity: 0; transform: translateY(2rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.sbcd-reveal-in { opacity: 1; transform: translateY(0); }

/* ===== Footer ===== */
.sbcd-footer { background: var(--sbcd-bg-dark); border-top: 0.2rem solid var(--sbcd-gold); padding: 2rem 1.2rem; margin-top: 2rem; }
.sbcd-footer-inner { max-width: 430px; margin: 0 auto; }
.sbcd-footer-brand { font-size: 1.3rem; color: var(--sbcd-text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.sbcd-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.sbcd-footer-promos button { background: var(--sbcd-deep); color: var(--sbcd-white); border: none; padding: 0.7rem 1.2rem; border-radius: var(--sbcd-radius-sm); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.sbcd-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 1rem; }
.sbcd-footer-links a { color: var(--sbcd-text-muted); font-size: 1.2rem; }
.sbcd-footer-links a:hover { color: var(--sbcd-gold); }
.sbcd-footer-copy { font-size: 1.1rem; color: var(--sbcd-text-muted); border-top: 0.1rem solid rgba(255,255,255,0.1); padding-top: 1rem; }

/* ===== Mobile bottom navigation (fixed, 5 buttons) ===== */
.sbcd-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--sbcd-bottomnav-h);
  background: linear-gradient(180deg, var(--sbcd-bg) 0%, var(--sbcd-bg-dark) 100%);
  border-top: 0.15rem solid var(--sbcd-gold);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.4);
}
.sbcd-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--sbcd-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  cursor: pointer; padding: 0.4rem 0; transition: color 0.2s, transform 0.15s;
}
.sbcd-bottomnav-btn i, .sbcd-bottomnav-btn span.material-symbols-outlined, .sbcd-bottomnav-btn .ion-icon { font-size: 2.4rem; }
.sbcd-bottomnav-btn .ion-icon { font-size: 2.4rem; }
.sbcd-bottomnav-label { font-size: 1.1rem; font-weight: 600; }
.sbcd-bottomnav-btn:active { transform: scale(0.92); color: var(--sbcd-gold); }
.sbcd-bottomnav-active { color: var(--sbcd-secondary) !important; }
.sbcd-bottomnav-active i, .sbcd-bottomnav-active .ion-icon { color: var(--sbcd-gold); }
.sbcd-bottomnav-badge { position: absolute; top: 0.6rem; right: 1.4rem; background: var(--sbcd-deep); color: var(--sbcd-white); font-size: 0.9rem; font-weight: 700; border-radius: 50%; width: 1.6rem; height: 1.6rem; display: flex; align-items: center; justify-content: center; }
.sbcd-bottomnav-btn { position: relative; }

/* Mobile bottom padding so content is not hidden behind fixed nav */
@media (max-width: 768px) {
  .sbcd-main { padding-bottom: calc(var(--sbcd-bottomnav-h) + 1.2rem); }
}

/* Desktop: hide mobile bottom nav, widen container */
@media (min-width: 769px) {
  .sbcd-bottomnav { display: none; }
  .sbcd-container, .sbcd-wrapper, .sbcd-header-inner, .sbcd-footer-inner, .sbcd-carousel, .sbcd-mobile-menu { max-width: 430px; }
}

/* High-contrast focus for accessibility */
.sbcd-btn:focus-visible, .sbcd-bottomnav-btn:focus-visible, .sbcd-game-item:focus-visible, .sbcd-menu-btn:focus-visible {
  outline: 0.2rem solid var(--sbcd-gold); outline-offset: 0.2rem;
}
