/* =====================================================================
   Buenas Gaming PH - style.css
   All custom classes use the "w780b-" prefix.
   Palette: #2E4057 (bg) | #00BFFF (accent) | #4682B4 (steel) | #F0F8FF (text)
   ===================================================================== */

:root {
  --w780b-primary: #00BFFF;
  --w780b-bg: #2E4057;
  --w780b-text: #F0F8FF;
  --w780b-steel: #4682B4;
  --w780b-dark: #1d2b3a;
  --w780b-darker: #15202b;
  --w780b-gold: #FFD166;
  --w780b-border: rgba(240, 248, 255, 0.12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--w780b-bg) 0%, var(--w780b-dark) 100%);
  color: var(--w780b-text);
  font-size: 1.5rem;
  line-height: 2.25rem;
  -webkit-font-smoothing: antialiased;
}

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

.w780b-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.w780b-wrapper { padding-top: 5.6rem; }

/* ---------------- Header ---------------- */
.w780b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5.6rem;
  background: rgba(21, 32, 43, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w780b-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.w780b-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.w780b-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w780b-text);
  font-weight: 700;
  font-size: 1.5rem;
}
.w780b-brand img { width: 2.8rem; height: 2.8rem; border-radius: 50%; }
.w780b-brand span b { color: var(--w780b-primary); }
.w780b-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w780b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.w780b-btn:hover { text-decoration: none; transform: translateY(-1px); }
.w780b-btn--login {
  background: transparent;
  color: var(--w780b-text);
  border: 1px solid var(--w780b-border);
}
.w780b-btn--register {
  background: linear-gradient(135deg, var(--w780b-primary), var(--w780b-steel));
  color: #04223a;
  box-shadow: 0 4px 14px rgba(0, 191, 255, 0.35);
}
.w780b-icon-btn {
  width: 3.4rem; height: 3.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--w780b-border);
  border-radius: 50%;
  color: var(--w780b-text);
  cursor: pointer;
}

/* ---------------- Mobile menu ---------------- */
.w780b-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  background: var(--w780b-darker);
  border-bottom: 1px solid var(--w780b-border);
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  z-index: 9999;
  max-height: 75vh;
  overflow-y: auto;
  padding: 1rem 1.2rem 2rem;
}
.w780b-menu--open { transform: translateY(0); }
.w780b-menu a {
  display: block;
  padding: 1rem 0.6rem;
  border-bottom: 1px solid var(--w780b-border);
  color: var(--w780b-text);
  font-size: 1.4rem;
}
.w780b-menu a:hover { color: var(--w780b-primary); text-decoration: none; }

/* ---------------- Hero carousel ---------------- */
.w780b-hero {
  position: relative;
  margin: 1rem 0;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.w780b-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.w780b-slide--active { display: block; }
.w780b-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.w780b-slide-caption {
  position: absolute;
  left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(21,32,43,0.7);
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  font-size: 1.25rem;
  color: var(--w780b-text);
}
.w780b-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 0;
}
.w780b-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(240,248,255,0.35);
  border: none; cursor: pointer;
}
.w780b-dot--active { background: var(--w780b-primary); }

/* ---------------- Headings / Sections ---------------- */
.w780b-section {
  margin: 2.2rem 0;
}
.w780b-h1 {
  font-size: 2rem; line-height: 2.6rem;
  margin: 1.4rem 0 0.8rem;
  color: var(--w780b-text);
}
.w780b-h1 b, .w780b-section h2 b { color: var(--w780b-primary); }
.w780b-section h2 {
  font-size: 1.7rem;
  margin: 1.6rem 0 0.8rem;
  color: var(--w780b-text);
  border-left: 4px solid var(--w780b-primary);
  padding-left: 0.8rem;
}
.w780b-section h3 {
  font-size: 1.4rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--w780b-gold);
}
.w780b-lead { color: rgba(240,248,255,0.86); margin-bottom: 1rem; }
.w780b-paragraph { margin: 0.6rem 0; color: rgba(240,248,255,0.92); }

.w780b-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}
.w780b-chip {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: rgba(70,130,180,0.25);
  border: 1px solid var(--w780b-border);
  color: var(--w780b-text);
  font-size: 1.2rem;
  cursor: pointer;
}
.w780b-chip--active {
  background: var(--w780b-primary);
  color: #04223a;
  border-color: var(--w780b-primary);
}

/* ---------------- Game grid ---------------- */
.w780b-game-section { margin: 1.4rem 0; }
.w780b-game-section h2 {
  font-size: 1.5rem;
  color: var(--w780b-text);
  border-left: 3px solid var(--w780b-gold);
  padding-left: 0.7rem;
  margin: 1rem 0 0.6rem;
}
.w780b-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.w780b-card {
  display: block;
  background: var(--w780b-darker);
  border: 1px solid var(--w780b-border);
  border-radius: 0.8rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.w780b-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,191,255,0.25); text-decoration: none; }
.w780b-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #0d1620;
}
.w780b-card-name {
  font-size: 1rem;
  color: var(--w780b-text);
  padding: 0.3rem 0.2rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Promo / feature cards ---------------- */
.w780b-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w780b-feature {
  background: rgba(70,130,180,0.15);
  border: 1px solid var(--w780b-border);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}
.w780b-feature .w780b-feature-icon { font-size: 2.2rem; color: var(--w780b-primary); }
.w780b-feature h3 { margin: 0.4rem 0 0.2rem; }
.w780b-feature p { margin: 0; font-size: 1.15rem; color: rgba(240,248,255,0.82); }

.w780b-promo-link {
  color: var(--w780b-primary);
  font-weight: 700;
}
.w780b-cta {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin: 1.4rem 0;
}
.w780b-cta .w780b-btn { flex: 1 1 auto; }

/* RTP / stats table */
.w780b-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--w780b-darker);
  border-radius: 0.8rem;
  overflow: hidden;
  font-size: 1.2rem;
}
.w780b-table th, .w780b-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--w780b-border);
  text-align: left;
}
.w780b-table th { background: rgba(70,130,180,0.3); color: var(--w780b-text); }

/* Testimonials */
.w780b-testimonial {
  background: var(--w780b-darker);
  border-left: 3px solid var(--w780b-gold);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  margin: 0.6rem 0;
  font-size: 1.25rem;
}
.w780b-testimonial b { color: var(--w780b-primary); }

/* Winners */
.w780b-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--w780b-border);
  font-size: 1.2rem;
}
.w780b-winner b { color: var(--w780b-gold); }

/* Payment chips */
.w780b-payments { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w780b-pay {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--w780b-darker);
  border: 1px solid var(--w780b-border);
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 1.15rem;
}

/* App download */
.w780b-app {
  background: linear-gradient(135deg, rgba(0,191,255,0.18), rgba(70,130,180,0.18));
  border: 1px solid var(--w780b-border);
  border-radius: 1.2rem;
  padding: 1.2rem;
  text-align: center;
}
.w780b-app img { border-radius: 0.8rem; margin: 0.6rem auto; }

/* FAQ */
.w780b-faq { margin: 0.6rem 0; }
.w780b-faq h3 { color: var(--w780b-gold); margin-bottom: 0.3rem; }
.w780b-faq p { margin-top: 0; color: rgba(240,248,255,0.88); }

/* Reveal animation */
.w780b-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.w780b-reveal--in { opacity: 1; transform: translateY(0); }

/* ---------------- Footer ---------------- */
.w780b-footer {
  background: var(--w780b-darker);
  border-top: 1px solid var(--w780b-border);
  margin-top: 2rem;
  padding: 2rem 1.2rem 9rem;
  font-size: 1.2rem;
  color: rgba(240,248,255,0.78);
}
.w780b-footer h3 { color: var(--w780b-text); font-size: 1.3rem; margin: 1rem 0 0.4rem; }
.w780b-footer a { color: var(--w780b-text); display: inline-block; padding: 0.25rem 0; }
.w780b-footer a:hover { color: var(--w780b-primary); }
.w780b-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0.8rem;
  margin: 0.6rem 0 1rem;
}
.w780b-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}
.w780b-footer-promos .w780b-btn {
  flex: 1 1 auto; min-height: 3rem; padding: 0 0.9rem; font-size: 1.15rem;
}
.w780b-copy { border-top: 1px solid var(--w780b-border); padding-top: 0.8rem; font-size: 1.1rem; }

/* ---------------- Mobile bottom nav ---------------- */
.w780b-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 6rem;
  background: rgba(21,32,43,0.98);
  border-top: 1px solid var(--w780b-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.w780b-bottomnav a {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: rgba(240,248,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}
.w780b-bottomnav a:hover { color: var(--w780b-primary); transform: translateY(-2px); text-decoration: none; }
.w780b-bottomnav a:active { transform: scale(0.94); }
.w780b-bottomnav a span.icon { font-size: 2rem; line-height: 1; }
.w780b-bottomnav a.active { color: var(--w780b-primary); }

/* ---------------- Desktop layout ---------------- */
@media (min-width: 769px) {
  body { font-size: 1.6rem; }
  .w780b-container { max-width: 960px; }
  .w780b-header-inner { max-width: 960px; }
  .w780b-bottomnav { display: none; }
  .w780b-footer { padding-bottom: 2rem; }
  .w780b-grid { grid-template-columns: repeat(8, 1fr); }
  .w780b-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: keep content clear of fixed bottom nav */
@media (max-width: 768px) {
  .w780b-wrapper { padding-bottom: 8rem; }
}
