/*
 * big baller club - Core Stylesheet
 * File: css/big-baller-club.css
 * All custom classes use the pg88- prefix.
 * Mobile-first responsive design (max-width: 430px), root font 62.5%.
 * Color palette: #2C3E50 | #00B8D4 | #FFFFFF | #D4AF37 | #34495E | #C0C0C0
 */

:root {
  --pg88-primary: #00B8D4;
  --pg88-bg: #2C3E50;
  --pg88-bg-alt: #34495E;
  --pg88-text: #FFFFFF;
  --pg88-gold: #D4AF37;
  --pg88-silver: #C0C0C0;
  --pg88-dark: #1f2d3a;
  --pg88-radius: 1.2rem;
  --pg88-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  --pg88-header-h: 6rem;
  --pg88-bottom-h: 6.4rem;
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pg88-bg);
  color: var(--pg88-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pg88-primary); text-decoration: none; }

/* ---------- Layout helpers ---------- */
.pg88-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg88-wrapper { padding: 1.6rem 1.2rem; }
.pg88-section { padding: 2rem 1.2rem; }
.pg88-section-alt { background: var(--pg88-bg-alt); }

/* ---------- Header ---------- */
.pg88-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg88-header-h);
  background: var(--pg88-bg);
  border-bottom: 0.2rem solid var(--pg88-gold);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: var(--pg88-shadow);
}

.pg88-header-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.pg88-header-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--pg88-gold), var(--pg88-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg88-bg);
  font-weight: 800;
  font-size: 1.6rem;
}

.pg88-header-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg88-text);
  line-height: 1.8rem;
}

.pg88-header-name span { color: var(--pg88-gold); }

.pg88-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg88-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.4rem;
  padding: 0 1.4rem;
  border-radius: 2.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.pg88-btn-primary {
  background: linear-gradient(135deg, var(--pg88-gold), #f0c850);
  color: var(--pg88-bg);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

.pg88-btn-secondary {
  background: transparent;
  color: var(--pg88-text);
  border: 0.15rem solid var(--pg88-primary);
}

.pg88-btn:hover { transform: translateY(-0.1rem); }
.pg88-btn:active { transform: scale(0.96); }

.pg88-menu-btn {
  background: transparent;
  border: none;
  color: var(--pg88-text);
  font-size: 2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile menu ---------- */
.pg88-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.pg88-overlay-active { opacity: 1; visibility: visible; }

.pg88-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: var(--pg88-bg-alt);
  z-index: 9999;
  padding: 2rem 1.6rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.pg88-menu-open { right: 0; }

.pg88-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 0.1rem solid var(--pg88-primary);
}

.pg88-menu-title { font-size: 1.8rem; font-weight: 700; color: var(--pg88-gold); }

.pg88-menu-close {
  background: transparent;
  border: none;
  color: var(--pg88-text);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

.pg88-menu-list { list-style: none; }
.pg88-menu-list li { margin-bottom: 0.4rem; }

.pg88-menu-list a {
  display: block;
  padding: 1.2rem 1rem;
  color: var(--pg88-text);
  font-size: 1.4rem;
  border-radius: 0.8rem;
  transition: background 0.15s ease;
}

.pg88-menu-list a:hover,
.pg88-menu-list a:focus { background: var(--pg88-primary); color: var(--pg88-bg); }

.pg88-menu-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Main content offset for fixed header ---------- */
.pg88-main {
  padding-top: var(--pg88-header-h);
  padding-bottom: var(--pg88-bottom-h);
  min-height: 100vh;
}

/* ---------- Carousel ---------- */
.pg88-carousel {
  position: relative;
  width: 100%;
  height: 22rem;
  overflow: hidden;
  border-radius: var(--pg88-radius);
  margin: 1.6rem 0;
  box-shadow: var(--pg88-shadow);
}

.pg88-carousel-track { position: relative; width: 100%; height: 100%; }

.pg88-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg88-slide-active { opacity: 1; }

.pg88-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg88-carousel-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(44, 62, 80, 0.78);
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--pg88-gold);
}

.pg88-carousel-caption h3 { font-size: 1.6rem; color: var(--pg88-text); }
.pg88-carousel-caption p { font-size: 1.2rem; color: var(--pg88-silver); margin-top: 0.2rem; }

.pg88-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1.2rem;
  display: flex;
  gap: 0.5rem;
}

.pg88-carousel-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.pg88-dot-active { background: var(--pg88-gold); }

/* ---------- Headings ---------- */
.pg88-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg88-gold);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 0.4rem solid var(--pg88-primary);
}

.pg88-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pg88-text);
  line-height: 2.6rem;
  margin: 1rem 0;
}

.pg88-h1 span { color: var(--pg88-gold); }

.pg88-subtitle {
  font-size: 1.3rem;
  color: var(--pg88-silver);
  margin-bottom: 1.2rem;
}

/* ---------- Filter chips ---------- */
.pg88-filter-bar {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.8rem 0 1.2rem;
  -webkit-overflow-scrolling: touch;
}

.pg88-filter-chip {
  flex: 0 0 auto;
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
  background: var(--pg88-bg-alt);
  color: var(--pg88-text);
  font-size: 1.2rem;
  font-weight: 600;
  border: 0.15rem solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.pg88-chip-active {
  background: var(--pg88-primary);
  color: var(--pg88-bg);
  border-color: var(--pg88-gold);
}

/* ---------- Game grid ---------- */
.pg88-game-section { margin-bottom: 2.4rem; }

.pg88-game-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pg88-game-section-header h2 {
  font-size: 1.6rem;
  color: var(--pg88-gold);
  font-weight: 700;
}

.pg88-game-section-header .pg88-section-count {
  font-size: 1.1rem;
  color: var(--pg88-silver);
}

.pg88-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.pg88-card {
  background: var(--pg88-bg-alt);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 0.1rem solid rgba(0, 184, 212, 0.2);
}

.pg88-card:hover { transform: translateY(-0.2rem); box-shadow: var(--pg88-shadow); }
.pg88-card:active { transform: scale(0.95); }

.pg88-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--pg88-dark);
}

.pg88-card-name {
  padding: 0.6rem 0.4rem;
  font-size: 1.05rem;
  color: var(--pg88-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---------- Promo / content cards ---------- */
.pg88-promo-card {
  background: linear-gradient(135deg, var(--pg88-bg-alt), var(--pg88-dark));
  border-radius: var(--pg88-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 0.15rem solid var(--pg88-gold);
  box-shadow: var(--pg88-shadow);
}

.pg88-promo-card h3 {
  font-size: 1.5rem;
  color: var(--pg88-gold);
  margin-bottom: 0.6rem;
}

.pg88-promo-card p {
  font-size: 1.25rem;
  color: var(--pg88-silver);
  margin-bottom: 1rem;
  line-height: 1.7rem;
}

.pg88-text-link {
  color: var(--pg88-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.pg88-gold-link {
  color: var(--pg88-gold);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Feature list ---------- */
.pg88-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg88-feature-item {
  background: var(--pg88-bg-alt);
  border-radius: 1rem;
  padding: 1.2rem;
  text-align: center;
  border: 0.1rem solid rgba(0, 184, 212, 0.25);
}

.pg88-feature-item .pg88-feature-icon {
  font-size: 2.4rem;
  color: var(--pg88-primary);
  margin-bottom: 0.4rem;
}

.pg88-feature-item h4 {
  font-size: 1.25rem;
  color: var(--pg88-text);
  margin-bottom: 0.3rem;
}

.pg88-feature-item p { font-size: 1.1rem; color: var(--pg88-silver); }

/* ---------- Testimonials ---------- */
.pg88-testimonial {
  background: var(--pg88-bg-alt);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--pg88-gold);
}

.pg88-testimonial p { font-size: 1.25rem; color: var(--pg88-text); font-style: italic; }
.pg88-testimonial .pg88-testimonial-author {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  color: var(--pg88-silver);
}

/* ---------- Payment methods ---------- */
.pg88-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg88-payment-badge {
  background: var(--pg88-bg-alt);
  border-radius: 0.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pg88-text);
  border: 0.1rem solid var(--pg88-silver);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Winners ---------- */
.pg88-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--pg88-bg-alt);
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
}

.pg88-winner-row .pg88-winner-name { font-size: 1.2rem; color: var(--pg88-text); }
.pg88-winner-row .pg88-winner-amount { font-size: 1.3rem; color: var(--pg88-gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.pg88-faq-item {
  background: var(--pg88-bg-alt);
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  padding: 1.2rem;
  border: 0.1rem solid rgba(0, 184, 212, 0.2);
}

.pg88-faq-item h3 { font-size: 1.35rem; color: var(--pg88-gold); margin-bottom: 0.4rem; }
.pg88-faq-item p { font-size: 1.2rem; color: var(--pg88-silver); line-height: 1.6rem; }

/* ---------- CTA banner ---------- */
.pg88-cta-banner {
  background: linear-gradient(135deg, var(--pg88-primary), #0090a8);
  border-radius: var(--pg88-radius);
  padding: 1.8rem;
  text-align: center;
  margin: 1.6rem 0;
  box-shadow: var(--pg88-shadow);
}

.pg88-cta-banner h3 { font-size: 1.8rem; color: var(--pg88-text); margin-bottom: 0.4rem; }
.pg88-cta-banner p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.pg88-footer {
  background: var(--pg88-dark);
  padding: 2.4rem 1.2rem;
  border-top: 0.2rem solid var(--pg88-gold);
}

.pg88-footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--pg88-gold); margin-bottom: 0.6rem; }
.pg88-footer-desc { font-size: 1.2rem; color: var(--pg88-silver); margin-bottom: 1.2rem; line-height: 1.6rem; }

.pg88-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.pg88-footer-links a {
  font-size: 1.15rem;
  color: var(--pg88-text);
  padding: 0.5rem 1rem;
  background: var(--pg88-bg-alt);
  border-radius: 0.8rem;
}

.pg88-footer-links a:hover { color: var(--pg88-gold); }

.pg88-footer-copyright {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 0.1rem solid var(--pg88-bg-alt);
  font-size: 1.1rem;
  color: var(--pg88-silver);
  text-align: center;
}

/* ---------- Bottom navigation ---------- */
.pg88-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg88-bottom-h);
  background: var(--pg88-dark);
  border-top: 0.2rem solid var(--pg88-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.pg88-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg88-silver);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pg88-nav-btn .pg88-nav-icon { font-size: 2.2rem; line-height: 1; }
.pg88-nav-btn .pg88-nav-label { font-size: 1rem; font-weight: 600; }

.pg88-nav-btn:hover { color: var(--pg88-primary); }
.pg88-nav-btn:active { transform: scale(0.9); }

.pg88-nav-active { color: var(--pg88-gold); }
.pg88-nav-active .pg88-nav-icon { color: var(--pg88-gold); }

.pg88-nav-promo {
  position: relative;
  color: var(--pg88-primary);
}
.pg88-nav-promo .pg88-nav-icon { color: var(--pg88-primary); }

/* ---------- Utility ---------- */
.pg88-text-center { text-align: center; }
.pg88-mt-1 { margin-top: 1rem; }
.pg88-mb-1 { margin-bottom: 1rem; }
.pg88-prose p { font-size: 1.25rem; color: var(--pg88-silver); line-height: 1.8rem; margin-bottom: 0.8rem; }
.pg88-prose strong { color: var(--pg88-text); }

/* ---------- Desktop: hide bottom nav ---------- */
@media (min-width: 769px) {
  .pg88-bottom-nav { display: none; }
  .pg88-main { padding-bottom: 2rem; }
}

/* ---------- Small phone tweaks ---------- */
@media (max-width: 360px) {
  .pg88-grid { grid-template-columns: repeat(2, 1fr); }
  .pg88-header-name { font-size: 1.4rem; }
  .pg88-btn { padding: 0 1rem; font-size: 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
