/**
 * Okebet App Download - Core Stylesheet
 * All classes use pga3- prefix for namespace isolation
 * Color palette: #273746 | #FFAA00 | #FFD700 | #F5DEB3 | #FF7F50
 */

/* CSS Variables */
:root {
  --pga3-bg-dark: #273746;
  --pga3-accent: #FFAA00;
  --pga3-gold: #FFD700;
  --pga3-light: #F5DEB3;
  --pga3-coral: #FF7F50;
  --pga3-bg-card: #1e2d3a;
  --pga3-bg-header: #1a2530;
  --pga3-text-light: #F5DEB3;
  --pga3-text-white: #ffffff;
  --pga3-text-muted: #a0b4c8;
  --pga3-border-subtle: rgba(255, 170, 0, 0.15);
  --pga3-radius: 8px;
  --pga3-radius-lg: 12px;
  --pga3-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --pga3-shadow-gold: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* Base Reset */
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--pga3-bg-dark);
  color: var(--pga3-text-light);
  margin: 0; padding: 0;
  line-height: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

/* Container */
.pga3-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; box-sizing: border-box; }
.pga3-wrapper { padding: 1.2rem 0; }

/* Header */
.pga3-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: var(--pga3-bg-header);
  border-bottom: 1px solid var(--pga3-border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; box-sizing: border-box; z-index: 1000;
  box-shadow: var(--pga3-shadow);
}
.pga3-header-left { display: flex; align-items: center; gap: 0.8rem; }
.pga3-header-logo { width: 28px; height: 28px; border-radius: 6px; }
.pga3-header-title { font-size: 1.4rem; font-weight: 700; color: var(--pga3-gold); white-space: nowrap; }
.pga3-header-right { display: flex; align-items: center; gap: 0.6rem; }
.pga3-btn-register, .pga3-btn-login {
  border: none; border-radius: 6px; font-size: 1.2rem;
  font-weight: 600; padding: 0.6rem 1.2rem; cursor: pointer;
  transition: all 0.2s ease;
}
.pga3-btn-register { background: var(--pga3-coral); color: #fff; }
.pga3-btn-register:hover { background: #ff6347; transform: scale(1.03); }
.pga3-btn-login { background: transparent; color: var(--pga3-accent); border: 1.5px solid var(--pga3-accent); }
.pga3-btn-login:hover { background: rgba(255, 170, 0, 0.1); }
.pga3-menu-toggle {
  background: none; border: none; color: var(--pga3-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Overlay */
.pga3-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.pga3-mobile-menu {
  position: fixed; top: 0; left: 0; width: 75%; max-width: 300px; height: 100%;
  background: var(--pga3-bg-header); z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding: 2rem 1.5rem; box-sizing: border-box; overflow-y: auto;
}
.pga3-mobile-menu-title { font-size: 1.6rem; color: var(--pga3-gold); margin-bottom: 2rem; font-weight: 700; }
.pga3-mobile-menu a {
  display: block; padding: 1.2rem 0; color: var(--pga3-text-light);
  text-decoration: none; font-size: 1.4rem; border-bottom: 1px solid var(--pga3-border-subtle);
  transition: color 0.2s;
}
.pga3-mobile-menu a:hover { color: var(--pga3-accent); }

/* Main content spacing */
.pga3-main { padding-top: 56px; }
@media (max-width: 768px) {
  .pga3-main { padding-bottom: 72px; }
}

/* Carousel */
.pga3-carousel { position: relative; width: 100%; overflow: hidden; border-radius: 0 0 var(--pga3-radius) var(--pga3-radius); }
.pga3-slide {
  display: none; opacity: 0; transition: opacity 0.5s ease; width: 100%; cursor: pointer;
}
.pga3-slide img { width: 100%; height: auto; display: block; }

/* Section headings */
.pga3-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pga3-gold);
  margin: 2rem 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pga3-accent);
  display: inline-block;
}
.pga3-section-subtitle {
  font-size: 1.4rem; color: var(--pga3-text-muted); margin-bottom: 1.2rem;
}

/* Game Grid */
.pga3-game-category { margin-bottom: 2rem; }
.pga3-game-category h3 {
  font-size: 1.5rem; color: var(--pga3-accent); margin: 0 0 1rem 0;
  padding-left: 0.8rem; border-left: 3px solid var(--pga3-coral);
}
.pga3-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.pga3-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  border-radius: var(--pga3-radius); padding: 0.6rem;
  background: var(--pga3-bg-card);
}
.pga3-game-item:hover { transform: scale(1.05); }
.pga3-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--pga3-radius);
  object-fit: cover;
}
.pga3-game-item p {
  font-size: 1.1rem; color: var(--pga3-text-light); margin: 0.4rem 0 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Content cards */
.pga3-card {
  background: var(--pga3-bg-card); border-radius: var(--pga3-radius-lg);
  padding: 1.6rem; margin-bottom: 1.6rem; box-shadow: var(--pga3-shadow);
  border: 1px solid var(--pga3-border-subtle);
}
.pga3-card h2 { font-size: 1.6rem; color: var(--pga3-gold); margin: 0 0 1rem; }
.pga3-card h3 { font-size: 1.4rem; color: var(--pga3-accent); margin: 1rem 0 0.6rem; }
.pga3-card p { font-size: 1.3rem; color: var(--pga3-text-light); margin: 0.5rem 0; line-height: 1.7; }
.pga3-card ul { padding-left: 1.6rem; margin: 0.5rem 0; }
.pga3-card li { font-size: 1.3rem; color: var(--pga3-text-light); margin: 0.4rem 0; line-height: 1.6; }

/* Promo link text */
.pga3-promo-link {
  color: var(--pga3-coral); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.pga3-promo-link:hover { color: var(--pga3-gold); }

/* Promo button */
.pga3-btn-promo {
  display: inline-block; background: linear-gradient(135deg, var(--pga3-coral), var(--pga3-accent));
  color: #fff; font-size: 1.4rem; font-weight: 700; padding: 1rem 2.4rem;
  border-radius: 50px; cursor: pointer; border: none;
  transition: all 0.25s ease; text-align: center; text-decoration: none;
}
.pga3-btn-promo:hover { transform: scale(1.04); box-shadow: var(--pga3-shadow-gold); }

/* FAQ items */
.pga3-faq-item { margin-bottom: 1.2rem; }
.pga3-faq-q { font-size: 1.3rem; font-weight: 700; color: var(--pga3-accent); margin-bottom: 0.4rem; }
.pga3-faq-a { font-size: 1.2rem; color: var(--pga3-text-light); line-height: 1.6; padding-left: 1rem; border-left: 2px solid var(--pga3-border-subtle); }

/* Winners list */
.pga3-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; background: var(--pga3-bg-card); border-radius: var(--pga3-radius);
  margin-bottom: 0.6rem; border: 1px solid var(--pga3-border-subtle);
}
.pga3-winner-name { font-size: 1.2rem; color: var(--pga3-gold); font-weight: 600; }
.pga3-winner-game { font-size: 1.1rem; color: var(--pga3-text-muted); }
.pga3-winner-amount { font-size: 1.3rem; color: var(--pga3-coral); font-weight: 700; }

/* Testimonials */
.pga3-testimonial {
  background: var(--pga3-bg-card); border-radius: var(--pga3-radius-lg);
  padding: 1.4rem; margin-bottom: 1rem;
  border-left: 3px solid var(--pga3-accent);
}
.pga3-testimonial-text { font-size: 1.2rem; color: var(--pga3-text-light); font-style: italic; margin-bottom: 0.6rem; }
.pga3-testimonial-author { font-size: 1.1rem; color: var(--pga3-accent); font-weight: 600; }

/* Payment icons */
.pga3-payment-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1rem 0; }
.pga3-payment-item {
  background: var(--pga3-bg-card); border-radius: var(--pga3-radius);
  padding: 0.8rem 1.4rem; font-size: 1.2rem; color: var(--pga3-text-light);
  border: 1px solid var(--pga3-border-subtle);
}

/* Stats bar */
.pga3-stats-bar {
  display: flex; justify-content: space-around; padding: 1.2rem 0;
  background: var(--pga3-bg-card); border-radius: var(--pga3-radius-lg);
  margin: 1rem 0;
}
.pga3-stat-item { text-align: center; }
.pga3-stat-number { font-size: 1.8rem; font-weight: 700; color: var(--pga3-coral); }
.pga3-stat-label { font-size: 1rem; color: var(--pga3-text-muted); }

/* Footer */
.pga3-footer {
  background: var(--pga3-bg-header); padding: 2rem 1.2rem;
  text-align: center; border-top: 1px solid var(--pga3-border-subtle);
}
.pga3-footer-brand { font-size: 1.3rem; color: var(--pga3-text-light); margin-bottom: 1rem; line-height: 1.6; }
.pga3-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.2rem; }
.pga3-footer-links a {
  font-size: 1.1rem; color: var(--pga3-accent); text-decoration: none;
  padding: 0.4rem 0.8rem; border: 1px solid var(--pga3-border-subtle); border-radius: 4px;
  transition: all 0.2s;
}
.pga3-footer-links a:hover { background: rgba(255, 170, 0, 0.1); }
.pga3-footer-copy { font-size: 1.1rem; color: var(--pga3-text-muted); margin-top: 1rem; }

/* Bottom Navigation */
.pga3-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: var(--pga3-bg-header);
  border-top: 1px solid var(--pga3-border-subtle);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
.pga3-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(--pga3-text-muted); cursor: pointer; transition: all 0.2s;
  padding: 0.2rem;
}
.pga3-bottom-nav-btn:hover { color: var(--pga3-accent); }
.pga3-bottom-nav-btn.pga3-bottom-active { color: var(--pga3-gold); }
.pga3-bottom-nav-btn i, .pga3-bottom-nav-btn span.material-symbols-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.pga3-bottom-nav-btn span.pga3-nav-label {
  font-size: 1rem; line-height: 1.2;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pga3-bottom-nav { display: none; }
  .pga3-main { padding-bottom: 0; }
}

/* Desktop navigation */
.pga3-desktop-nav {
  display: none;
}
@media (min-width: 769px) {
  .pga3-desktop-nav { display: flex; gap: 1.2rem; align-items: center; }
  .pga3-desktop-nav a { color: var(--pga3-text-light); text-decoration: none; font-size: 1.3rem; }
}

/* Responsive helpers */
@media (max-width: 768px) {
  .pga3-game-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
  .pga3-game-item p { font-size: 1rem; }
  .pga3-section-title { font-size: 1.6rem; }
}

/* CTA section */
.pga3-cta-section {
  text-align: center; padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--pga3-bg-card), rgba(255, 170, 0, 0.1));
  border-radius: var(--pga3-radius-lg); margin: 1.5rem 0;
}
.pga3-cta-section h2 { font-size: 1.8rem; color: var(--pga3-gold); margin-bottom: 1rem; }
.pga3-cta-section p { font-size: 1.3rem; color: var(--pga3-text-light); margin-bottom: 1.4rem; }

/* Achievement badges */
.pga3-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255, 215, 0, 0.1); border: 1px solid var(--pga3-accent);
  border-radius: 50px; padding: 0.4rem 1rem; font-size: 1.1rem;
  color: var(--pga3-gold); margin: 0.3rem;
}

/* Internal link style */
.pga3-internal-link {
  color: var(--pga3-accent); text-decoration: underline; cursor: pointer;
  transition: color 0.2s;
}
.pga3-internal-link:hover { color: var(--pga3-coral); }

/* Tricks/tips list */
.pga3-tricks-list { counter-reset: trick; }
.pga3-tricks-list li {
  counter-increment: trick; list-style: none; position: relative;
  padding-left: 2.8rem; margin-bottom: 0.8rem; font-size: 1.2rem;
  color: var(--pga3-text-light); line-height: 1.6;
}
.pga3-tricks-list li::before {
  content: counter(trick); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; background: var(--pga3-coral);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff;
}

/* Category highlight cards */
.pga3-cat-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--pga3-bg-card); border-radius: var(--pga3-radius);
  padding: 1rem; margin-bottom: 0.8rem; cursor: pointer;
  border: 1px solid var(--pga3-border-subtle); transition: all 0.2s;
}
.pga3-cat-card:hover { border-color: var(--pga3-accent); }
.pga3-cat-card-icon { font-size: 2.4rem; }
.pga3-cat-card h4 { font-size: 1.3rem; color: var(--pga3-gold); margin: 0 0 0.2rem; }
.pga3-cat-card p { font-size: 1.1rem; color: var(--pga3-text-muted); margin: 0; }
