/**
 * PlushPH - Theme Stylesheet
 * All classes use g9b5- prefix for namespace isolation
 * Mobile-first design, max-width 430px
 */

/* ===== CSS Variables ===== */
:root {
  --g9b5-primary: #A9A9A9;
  --g9b5-bg: #1C2833;
  --g9b5-text: #D3D3D3;
  --g9b5-accent: #A9A9A9;
  --g9b5-dark: #141D26;
  --g9b5-card: #1E2D3D;
  --g9b5-border: #2C3E50;
  --g9b5-highlight: #E8C547;
  --g9b5-success: #27AE60;
  --g9b5-danger: #E74C3C;
  font-size: 62.5%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--g9b5-bg);
  color: var(--g9b5-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--g9b5-highlight); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.g9b5-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g9b5-wrapper { padding: 1.5rem 0; }

/* ===== Header ===== */
.g9b5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g9b5-dark);
  border-bottom: 1px solid var(--g9b5-border);
  height: 5.4rem;
}
.g9b5-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.g9b5-logo { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.g9b5-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.g9b5-logo span { font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.g9b5-header-actions { display: flex; align-items: center; gap: 0.8rem; }
.g9b5-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: 2rem; font-size: 1.3rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  min-height: 3.6rem;
}
.g9b5-btn-register {
  background: var(--g9b5-highlight); color: var(--g9b5-dark);
}
.g9b5-btn-register:hover { background: #d4b03e; }
.g9b5-btn-login {
  background: transparent; color: var(--g9b5-text);
  border: 1.5px solid var(--g9b5-accent);
}
.g9b5-btn-login:hover { border-color: #fff; color: #fff; }
.g9b5-menu-toggle {
  background: none; border: none; color: var(--g9b5-text);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
  display: none;
}

/* ===== Mobile Menu ===== */
.g9b5-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; transition: opacity 0.3s;
}
.g9b5-overlay-active { display: block; opacity: 1; }
.g9b5-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--g9b5-dark); z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.g9b5-menu-active { right: 0; }
.g9b5-mobile-menu .g9b5-menu-close {
  background: none; border: none; color: var(--g9b5-text);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem;
}
.g9b5-mobile-menu ul { margin-top: 3rem; }
.g9b5-mobile-menu li { border-bottom: 1px solid var(--g9b5-border); }
.g9b5-mobile-menu a {
  display: block; padding: 1.2rem 0; color: var(--g9b5-text);
  font-size: 1.5rem; transition: color 0.2s;
}
.g9b5-mobile-menu a:hover { color: var(--g9b5-highlight); text-decoration: none; }

/* ===== Banner Carousel ===== */
.g9b5-carousel { position: relative; overflow: hidden; border-radius: 0.8rem; margin-top: 6.2rem; }
.g9b5-slide {
  display: none; cursor: pointer; position: relative;
}
.g9b5-slide-active { display: block; }
.g9b5-slide img { width: 100%; border-radius: 0.8rem; }
.g9b5-dots {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 0;
}
.g9b5-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--g9b5-border); cursor: pointer; transition: background 0.3s;
}
.g9b5-dot-active { background: var(--g9b5-highlight); }

/* ===== Section Headings ===== */
.g9b5-section-title {
  font-size: 2rem; font-weight: 700; color: #fff;
  margin: 2.5rem 0 1.2rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--g9b5-highlight);
  display: flex; align-items: center; gap: 0.6rem;
}
.g9b5-section-title i { color: var(--g9b5-highlight); font-size: 2rem; }

/* ===== Game Grid ===== */
.g9b5-game-section { margin: 1.5rem 0; }
.g9b5-category-title {
  font-size: 1.6rem; font-weight: 600; color: var(--g9b5-highlight);
  margin: 1.5rem 0 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.g9b5-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g9b5-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  background: var(--g9b5-card); border-radius: 0.8rem; padding: 0.6rem;
}
.g9b5-game-item:hover { transform: scale(1.04); }
.g9b5-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: 0.6rem; object-fit: cover;
}
.g9b5-game-item span {
  display: block; font-size: 1.1rem; color: var(--g9b5-text);
  margin-top: 0.4rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Content Sections ===== */
.g9b5-content-block {
  background: var(--g9b5-card); border-radius: 0.8rem;
  padding: 1.5rem; margin: 1.2rem 0;
  border: 1px solid var(--g9b5-border);
}
.g9b5-content-block h2 {
  font-size: 1.8rem; color: #fff; margin-bottom: 1rem;
}
.g9b5-content-block h3 {
  font-size: 1.5rem; color: var(--g9b5-highlight); margin: 1rem 0 0.5rem;
}
.g9b5-content-block p {
  font-size: 1.4rem; line-height: 1.6; margin-bottom: 0.8rem; color: var(--g9b5-text);
}
.g9b5-content-block ul { padding-left: 1.5rem; }
.g9b5-content-block li {
  list-style: disc; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--g9b5-text);
}

/* ===== Promo Links ===== */
.g9b5-promo-text {
  display: inline; color: var(--g9b5-highlight); font-weight: 600;
  cursor: pointer; text-decoration: underline;
}
.g9b5-promo-text:hover { color: #f0d060; }
.g9b5-promo-btn {
  display: block; text-align: center; padding: 1.2rem;
  background: linear-gradient(135deg, var(--g9b5-highlight), #d4a017);
  color: var(--g9b5-dark); font-size: 1.6rem; font-weight: 700;
  border-radius: 2rem; margin: 1.5rem 0; cursor: pointer;
  border: none; transition: transform 0.2s;
}
.g9b5-promo-btn:hover { transform: scale(1.03); text-decoration: none; }

/* ===== Stats Grid ===== */
.g9b5-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem; margin: 1rem 0;
}
.g9b5-stat-item {
  background: var(--g9b5-dark); border-radius: 0.6rem;
  padding: 1rem; text-align: center; border: 1px solid var(--g9b5-border);
}
.g9b5-stat-value {
  font-size: 2rem; font-weight: 700; color: var(--g9b5-highlight);
}
.g9b5-stat-label { font-size: 1.1rem; color: var(--g9b5-accent); margin-top: 0.3rem; }

/* ===== Testimonials ===== */
.g9b5-testimonial {
  background: var(--g9b5-dark); border-radius: 0.6rem;
  padding: 1.2rem; margin: 0.8rem 0; border-left: 3px solid var(--g9b5-highlight);
}
.g9b5-testimonial p { font-style: italic; font-size: 1.3rem; margin-bottom: 0.4rem; }
.g9b5-testimonial cite { font-size: 1.1rem; color: var(--g9b5-accent); }

/* ===== Payment Methods ===== */
.g9b5-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0;
}
.g9b5-payment-item {
  background: var(--g9b5-dark); padding: 0.6rem 1.2rem;
  border-radius: 2rem; font-size: 1.2rem; color: var(--g9b5-text);
  border: 1px solid var(--g9b5-border);
}

/* ===== Winners ===== */
.g9b5-winners-list { margin: 1rem 0; }
.g9b5-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--g9b5-border);
  font-size: 1.3rem;
}
.g9b5-winner-name { color: var(--g9b5-text); }
.g9b5-winner-amount { color: var(--g9b5-highlight); font-weight: 700; }

/* ===== Footer ===== */
.g9b5-footer {
  background: var(--g9b5-dark); padding: 2rem 0 3rem;
  border-top: 1px solid var(--g9b5-border); margin-top: 2rem;
}
.g9b5-footer-text {
  font-size: 1.3rem; color: var(--g9b5-accent); line-height: 1.5;
  margin-bottom: 1.5rem;
}
.g9b5-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem;
}
.g9b5-footer-links a {
  color: var(--g9b5-text); font-size: 1.2rem; padding: 0.4rem 0.8rem;
  background: var(--g9b5-card); border-radius: 0.4rem;
  transition: color 0.2s;
}
.g9b5-footer-links a:hover { color: var(--g9b5-highlight); text-decoration: none; }
.g9b5-footer-copy {
  font-size: 1.1rem; color: var(--g9b5-accent); text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--g9b5-border);
}

/* ===== Bottom Nav ===== */
.g9b5-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g9b5-dark);
  border-top: 1px solid var(--g9b5-highlight);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding: 0 0.4rem;
}
.g9b5-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5rem; cursor: pointer;
  background: none; border: none; color: var(--g9b5-accent);
  transition: all 0.2s; padding: 0.3rem;
}
.g9b5-nav-btn i, .g9b5-nav-btn .material-icons, .g9b5-nav-btn ion-icon {
  font-size: 2.2rem; margin-bottom: 0.2rem; transition: color 0.2s;
}
.g9b5-nav-btn span { font-size: 1rem; }
.g9b5-nav-btn:hover, .g9b5-nav-btn:focus { color: var(--g9b5-highlight); }
.g9b5-nav-btn:hover i, .g9b5-nav-btn:hover .material-icons, .g9b5-nav-btn:hover ion-icon {
  color: var(--g9b5-highlight); transform: scale(1.15);
}
.g9b5-nav-active { color: var(--g9b5-highlight); }
.g9b5-nav-active i, .g9b5-nav-active .material-icons, .g9b5-nav-active ion-icon {
  color: var(--g9b5-highlight);
}

/* ===== Main Content Spacer ===== */
main { padding-top: 5.4rem; }
@media (max-width: 768px) {
  main { padding-bottom: 7rem; }
  .g9b5-menu-toggle { display: block; }
  .g9b5-header-desktop-links { display: none; }
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .g9b5-bottom-nav { display: none; }
  .g9b5-menu-toggle { display: none; }
  .g9b5-header-desktop-links {
    display: flex; align-items: center; gap: 1.2rem;
  }
  .g9b5-header-desktop-links a {
    color: var(--g9b5-text); font-size: 1.3rem; transition: color 0.2s;
  }
  .g9b5-header-desktop-links a:hover { color: var(--g9b5-highlight); text-decoration: none; }
}

/* ===== Helpers ===== */
.g9b5-text-highlight { color: var(--g9b5-highlight); }
.g9b5-text-accent { color: var(--g9b5-accent); }
.g9b5-mb-1 { margin-bottom: 0.8rem; }
.g9b5-mb-2 { margin-bottom: 1.6rem; }
.g9b5-mt-1 { margin-top: 0.8rem; }
.g9b5-text-center { text-align: center; }
.g9b5-flex-center { display: flex; align-items: center; justify-content: center; }
