/* Fair Play App - Main Stylesheet */
/* All classes use pg0e- prefix for namespace isolation */

/* CSS Variables */
:root {
  --pg0e-primary: #191970;
  --pg0e-secondary: #262626;
  --pg0e-accent: #48D1CC;
  --pg0e-light: #D3D3D3;
  --pg0e-highlight: #40E0D0;
  --pg0e-blue: #0000FF;
  --pg0e-bg: #0d0d1a;
  --pg0e-card: #1a1a2e;
  --pg0e-text: #e8e8e8;
  --pg0e-text-muted: #a0a0b0;
  --pg0e-gradient: linear-gradient(135deg, #191970 0%, #262626 50%, #0d0d1a 100%);
  --pg0e-radius: 8px;
  --pg0e-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

/* Header */
.pg0e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg0e-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--pg0e-accent);
  height: 52px;
}
.pg0e-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg0e-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.pg0e-header-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg0e-accent);
  white-space: nowrap;
}
.pg0e-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pg0e-header-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--pg0e-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.pg0e-btn-register {
  background: var(--pg0e-accent);
  color: var(--pg0e-primary);
}
.pg0e-btn-register:hover { background: var(--pg0e-highlight); }
.pg0e-btn-login {
  background: transparent;
  color: var(--pg0e-accent);
  border: 1px solid var(--pg0e-accent);
}
.pg0e-btn-login:hover { background: rgba(72,209,204,0.1); }
.pg0e-menu-toggle {
  background: none;
  border: none;
  color: var(--pg0e-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* Mobile Menu Overlay */
.pg0e-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pg0e-mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--pg0e-card);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  overflow-y: auto;
}
.pg0e-menu-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(72,209,204,0.2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pg0e-menu-header img {
  width: 32px; height: 32px; border-radius: 50%;
}
.pg0e-menu-header span {
  font-size: 1.6rem; font-weight: 700; color: var(--pg0e-accent);
}
.pg0e-menu-list {
  padding: 1rem 0;
}
.pg0e-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--pg0e-text);
  font-size: 1.4rem;
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}
.pg0e-menu-item:hover, .pg0e-menu-item:focus {
  background: rgba(72,209,204,0.08);
  color: var(--pg0e-accent);
  border-left-color: var(--pg0e-accent);
}
.pg0e-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--pg0e-light);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Main Content */
.pg0e-main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .pg0e-main { padding-bottom: 80px; }
}

/* Carousel */
.pg0e-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}
.pg0e-slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}
.pg0e-slide {
  min-width: 100%;
  display: none;
  cursor: pointer;
}
.pg0e-slide-active { display: block; }
.pg0e-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
}
.pg0e-slide-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.pg0e-slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}
.pg0e-dot-active { background: var(--pg0e-accent); }

/* Section */
.pg0e-section {
  padding: 1.5rem 1rem;
}
.pg0e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg0e-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(72,209,204,0.3);
}
.pg0e-section-subtitle {
  font-size: 1.4rem;
  color: var(--pg0e-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Game Grid */
.pg0e-game-section { margin-bottom: 1.5rem; }
.pg0e-game-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg0e-highlight);
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg0e-accent);
}
.pg0e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.pg0e-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pg0e-game-item:hover { transform: scale(1.05); }
.pg0e-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg0e-radius);
  border: 1px solid rgba(72,209,204,0.2);
  margin-bottom: 0.3rem;
}
.pg0e-game-name {
  font-size: 1.1rem;
  color: var(--pg0e-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Card */
.pg0e-card {
  background: var(--pg0e-card);
  border-radius: var(--pg0e-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--pg0e-shadow);
  border: 1px solid rgba(72,209,204,0.1);
}
.pg0e-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg0e-accent);
  margin-bottom: 0.8rem;
}
.pg0e-card-text {
  font-size: 1.3rem;
  color: var(--pg0e-text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* Promo Button */
.pg0e-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg0e-accent), var(--pg0e-highlight));
  color: var(--pg0e-primary);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}
.pg0e-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(72,209,204,0.4);
}
.pg0e-promo-text {
  color: var(--pg0e-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.pg0e-promo-text:hover { color: var(--pg0e-highlight); }

/* H1 */
.pg0e-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg0e-accent);
  text-align: center;
  padding: 1.2rem 1rem;
  line-height: 1.3;
}

/* Footer */
.pg0e-footer {
  background: var(--pg0e-secondary);
  padding: 2rem 1rem 1rem;
  border-top: 2px solid rgba(72,209,204,0.3);
}
.pg0e-footer-brand {
  font-size: 1.2rem;
  color: var(--pg0e-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.pg0e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.pg0e-footer-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(72,209,204,0.1);
  border: 1px solid rgba(72,209,204,0.2);
  border-radius: 4px;
  color: var(--pg0e-accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pg0e-footer-link:hover {
  background: rgba(72,209,204,0.2);
}
.pg0e-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg0e-text-muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Bottom Navigation */
.pg0e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg0e-primary);
  border-top: 2px solid var(--pg0e-accent);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}
.pg0e-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg0e-light);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.2rem;
}
.pg0e-bottom-nav-btn:hover, .pg0e-bottom-nav-btn.pg0e-btn-active {
  color: var(--pg0e-accent);
  transform: scale(1.08);
}
.pg0e-bottom-nav-btn i,
.pg0e-bottom-nav-btn .material-icons-outlined,
.pg0e-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.pg0e-bottom-nav-label {
  font-size: 1rem;
  color: inherit;
  white-space: nowrap;
}

/* Desktop hide bottom nav */
@media (min-width: 769px) {
  .pg0e-bottom-nav { display: none; }
}

/* Utilities */
.pg0e-text-center { text-align: center; }
.pg0e-mb-1 { margin-bottom: 1rem; }
.pg0e-mb-2 { margin-bottom: 2rem; }
.pg0e-flex { display: flex; }
.pg0e-flex-wrap { flex-wrap: wrap; }
.pg0e-gap-1 { gap: 1rem; }
.pg0e-hidden { display: none; }

/* List styles */
.pg0e-list-item {
  padding: 0.6rem 0;
  font-size: 1.3rem;
  color: var(--pg0e-text);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pg0e-list-item:last-child { border-bottom: none; }

/* Winner list */
.pg0e-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.2rem;
}
.pg0e-winner-name { color: var(--pg0e-accent); font-weight: 600; }
.pg0e-winner-amount { color: var(--pg0e-highlight); font-weight: 700; }
.pg0e-winner-game { color: var(--pg0e-text-muted); }

/* Testimonial */
.pg0e-testimonial {
  background: var(--pg0e-card);
  border-radius: var(--pg0e-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg0e-accent);
}
.pg0e-testimonial-user {
  font-weight: 600;
  color: var(--pg0e-accent);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.pg0e-testimonial-text {
  font-size: 1.2rem;
  color: var(--pg0e-text-muted);
  line-height: 1.5;
}

/* Payment icons row */
.pg0e-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding: 0.5rem 0;
}
.pg0e-payment-item {
  background: rgba(72,209,204,0.08);
  border: 1px solid rgba(72,209,204,0.15);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--pg0e-accent);
}

/* Back to top button */
.pg0e-back-top {
  position: fixed;
  bottom: 70px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: var(--pg0e-accent);
  color: var(--pg0e-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pg0e-shadow);
}

/* FAQ */
.pg0e-faq-item {
  margin-bottom: 1rem;
}
.pg0e-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg0e-accent);
  margin-bottom: 0.3rem;
}
.pg0e-faq-a {
  font-size: 1.3rem;
  color: var(--pg0e-text-muted);
  line-height: 1.6;
}

/* Features grid */
.pg0e-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.pg0e-feature-item {
  background: rgba(72,209,204,0.06);
  border: 1px solid rgba(72,209,204,0.15);
  border-radius: var(--pg0e-radius);
  padding: 1rem;
  text-align: center;
}
.pg0e-feature-icon {
  font-size: 2.4rem;
  color: var(--pg0e-accent);
  margin-bottom: 0.5rem;
}
.pg0e-feature-label {
  font-size: 1.2rem;
  color: var(--pg0e-text);
  font-weight: 500;
}

/* App download section */
.pg0e-app-section {
  background: linear-gradient(135deg, rgba(25,25,112,0.8), rgba(13,13,26,0.9));
  border-radius: var(--pg0e-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(72,209,204,0.2);
}
.pg0e-app-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg0e-accent);
  margin-bottom: 0.8rem;
}

/* Achievements */
.pg0e-achieve-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pg0e-achieve-label { font-size: 1.2rem; color: var(--pg0e-text-muted); }
.pg0e-achieve-value { font-size: 1.2rem; color: var(--pg0e-highlight); font-weight: 600; }

/* Safety badges */
.pg0e-badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pg0e-badge {
  background: rgba(72,209,204,0.1);
  border: 1px solid rgba(72,209,204,0.25);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 1.1rem;
  color: var(--pg0e-accent);
}
