/* ArenaPlus TV - Main Stylesheet */
/* All classes use pg99- prefix for namespace isolation */

/* CSS Variables */
:root {
  --pg99-primary: #9370DB;
  --pg99-primary-dark: #7B52C0;
  --pg99-secondary: #FFCC02;
  --pg99-accent: #FFC0CB;
  --pg99-success: #BAFFC9;
  --pg99-bg-dark: #1A1A2E;
  --pg99-bg-card: #22223B;
  --pg99-bg-section: #16213E;
  --pg99-text-light: #F0F0F0;
  --pg99-text-muted: #BBBBBB;
  --pg99-text-dark: #333333;
  --pg99-border: #2A2A4A;
  --pg99-gold: #FFCC02;
  --pg99-gradient-main: linear-gradient(135deg, #9370DB 0%, #7B52C0 100%);
  --pg99-gradient-gold: linear-gradient(135deg, #FFCC02 0%, #FFD700 100%);
  --pg99-radius: 8px;
  --pg99-radius-lg: 12px;
  --pg99-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg99-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
  --pg99-transition: all 0.3s ease;
}

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

/* Header */
.pg99-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: var(--pg99-bg-dark); border-bottom: 1px solid var(--pg99-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000; backdrop-filter: blur(10px);
}
.pg99-header-logo {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
}
.pg99-header-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg99-header-logo span { font-size: 1.5rem; font-weight: 700; color: var(--pg99-secondary); }
.pg99-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg99-btn-register, .pg99-btn-login {
  padding: 0.5rem 1.2rem; border-radius: var(--pg99-radius); font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: var(--pg99-transition);
}
.pg99-btn-register {
  background: var(--pg99-gradient-gold); color: var(--pg99-text-dark);
}
.pg99-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,204,2,0.5); }
.pg99-btn-login {
  background: transparent; color: var(--pg99-secondary);
  border: 1px solid var(--pg99-secondary);
}
.pg99-btn-login:hover { background: rgba(255,204,2,0.1); }
.pg99-menu-toggle {
  background: none; border: none; color: var(--pg99-text-light);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.pg99-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease;
}
.pg99-overlay-active { opacity: 1; pointer-events: auto; }
.pg99-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
  background: var(--pg99-bg-card); z-index: 9999; padding: 2rem 1.5rem;
  transition: right 0.3s ease; overflow-y: auto;
}
.pg99-menu-active { right: 0; }
.pg99-mobile-menu .pg99-menu-close {
  background: none; border: none; color: var(--pg99-text-light);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1.2rem;
}
.pg99-mobile-menu nav a {
  display: block; padding: 1.2rem 0; font-size: 1.4rem; color: var(--pg99-text-light);
  border-bottom: 1px solid var(--pg99-border); transition: var(--pg99-transition);
}
.pg99-mobile-menu nav a:hover { color: var(--pg99-secondary); padding-left: 0.8rem; }

/* Carousel */
.pg99-carousel {
  position: relative; width: 100%; margin-top: 56px; overflow: hidden;
  aspect-ratio: 16/9; background: var(--pg99-bg-section);
}
.pg99-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease; cursor: pointer;
}
.pg99-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg99-slide-active { opacity: 1; }
.pg99-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pg99-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--pg99-transition); border: none;
}
.pg99-dot-active { background: var(--pg99-secondary); transform: scale(1.2); }

/* Main Content */
main { padding: 0 1.2rem 2rem; }
.pg99-section { margin: 2rem 0; }
.pg99-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pg99-text-light);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg99-primary);
}
.pg99-section-title .material-icons {
  font-size: 2rem; vertical-align: middle; margin-right: 0.4rem; color: var(--pg99-secondary);
}

/* Game Grid */
.pg99-game-category-title {
  font-size: 1.5rem; font-weight: 600; color: var(--pg99-secondary);
  margin: 1.5rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--pg99-primary); padding-left: 0.8rem;
}
.pg99-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.pg99-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--pg99-transition); border-radius: var(--pg99-radius);
  padding: 0.4rem;
}
.pg99-game-item:hover { transform: translateY(-2px); background: rgba(147,112,219,0.1); }
.pg99-game-item img {
  width: 72px; height: 72px; border-radius: var(--pg99-radius);
  border: 1px solid var(--pg99-border); object-fit: cover;
}
.pg99-game-item span {
  font-size: 1.1rem; color: var(--pg99-text-muted); margin-top: 0.3rem;
  text-align: center; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 80px;
}

/* Promo Link Styles */
.pg99-promo-link {
  display: inline-block; color: var(--pg99-secondary); font-weight: 700;
  cursor: pointer; transition: var(--pg99-transition);
}
.pg99-promo-link:hover { color: var(--pg99-accent); text-decoration: underline; }
.pg99-promo-btn {
  display: inline-block; padding: 1rem 2.4rem; border-radius: var(--pg99-radius-lg);
  background: var(--pg99-gradient-gold); color: var(--pg99-text-dark);
  font-size: 1.4rem; font-weight: 700; cursor: pointer; border: none;
  transition: var(--pg99-transition); text-align: center;
}
.pg99-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,204,2,0.4); }
.pg99-promo-btn-outline {
  display: inline-block; padding: 0.8rem 1.8rem; border-radius: var(--pg99-radius);
  background: transparent; border: 2px solid var(--pg99-primary);
  color: var(--pg99-primary); font-size: 1.3rem; font-weight: 600;
  cursor: pointer; transition: var(--pg99-transition);
}
.pg99-promo-btn-outline:hover { background: var(--pg99-primary); color: #fff; }

/* Content Cards */
.pg99-card {
  background: var(--pg99-bg-card); border-radius: var(--pg99-radius-lg);
  padding: 1.5rem; margin-bottom: 1.2rem; border: 1px solid var(--pg99-border);
  box-shadow: var(--pg99-shadow);
}
.pg99-card h3 {
  font-size: 1.5rem; color: var(--pg99-secondary); margin-bottom: 0.8rem;
}
.pg99-card p {
  font-size: 1.3rem; color: var(--pg99-text-muted); line-height: 1.6;
}

/* RTP Table */
.pg99-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.pg99-rtp-table th {
  background: var(--pg99-primary-dark); color: var(--pg99-text-light);
  padding: 0.6rem 0.8rem; text-align: left; font-weight: 600;
}
.pg99-rtp-table td {
  padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--pg99-border);
  color: var(--pg99-text-muted);
}
.pg99-rtp-table tr:hover td { background: rgba(147,112,219,0.08); }
.pg99-rtp-high { color: var(--pg99-success); font-weight: 600; }

/* Testimonials */
.pg99-testimonial {
  background: var(--pg99-bg-card); border-radius: var(--pg99-radius);
  padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--pg99-primary);
}
.pg99-testimonial p { font-size: 1.3rem; color: var(--pg99-text-muted); font-style: italic; }
.pg99-testimonial strong { color: var(--pg99-secondary); }

/* Winners */
.pg99-winner-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.8rem;
  background: var(--pg99-bg-card); border-radius: var(--pg99-radius);
  margin-bottom: 0.6rem; border: 1px solid var(--pg99-border);
}
.pg99-winner-item img { width: 40px; height: 40px; border-radius: 50%; }
.pg99-winner-info { flex: 1; }
.pg99-winner-name { font-size: 1.2rem; color: var(--pg99-text-light); font-weight: 600; }
.pg99-winner-amount { font-size: 1.1rem; color: var(--pg99-secondary); }
.pg99-winner-game { font-size: 1rem; color: var(--pg99-text-muted); }

/* Payment Methods */
.pg99-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.pg99-payment-item {
  background: var(--pg99-bg-card); border-radius: var(--pg99-radius);
  padding: 0.8rem 1.2rem; border: 1px solid var(--pg99-border);
  font-size: 1.2rem; color: var(--pg99-text-muted); display: flex;
  align-items: center; gap: 0.4rem;
}

/* Footer */
.pg99-footer {
  background: var(--pg99-bg-section); border-top: 1px solid var(--pg99-border);
  padding: 2rem 1.2rem 10rem; margin-top: 2rem;
}
.pg99-footer-brand {
  font-size: 1.3rem; color: var(--pg99-text-muted); line-height: 1.6;
  margin-bottom: 1.5rem;
}
.pg99-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem;
}
.pg99-footer-links a {
  display: inline-block; padding: 0.5rem 1rem; background: var(--pg99-bg-card);
  border-radius: var(--pg99-radius); font-size: 1.1rem; color: var(--pg99-text-muted);
  border: 1px solid var(--pg99-border); transition: var(--pg99-transition);
}
.pg99-footer-links a:hover { color: var(--pg99-secondary); border-color: var(--pg99-primary); }
.pg99-footer-copy {
  font-size: 1.1rem; color: var(--pg99-text-muted); text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--pg99-border);
}

/* Bottom Navigation */
.pg99-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: var(--pg99-bg-dark); border-top: 1px solid var(--pg99-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; backdrop-filter: blur(10px);
}
.pg99-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; cursor: pointer;
  transition: var(--pg99-transition); border: none; background: none;
  color: var(--pg99-text-muted); gap: 2px; padding: 0;
}
.pg99-bottom-nav-item:hover, .pg99-bottom-nav-item:focus {
  color: var(--pg99-secondary); transform: scale(1.1);
}
.pg99-bottom-nav-item span.pg99-nav-label {
  font-size: 1rem; line-height: 1;
}
.pg99-bottom-nav-item i, .pg99-bottom-nav-item .material-icons {
  font-size: 22px;
}
.pg99-bottom-nav-item.active { color: var(--pg99-secondary); }

/* Mobile App CTA */
.pg99-app-cta {
  background: var(--pg99-gradient-main); border-radius: var(--pg99-radius-lg);
  padding: 1.5rem; text-align: center;
}
.pg99-app-cta h3 { color: var(--pg99-secondary); margin-bottom: 0.6rem; }
.pg99-app-cta p { color: var(--pg99-text-light); font-size: 1.2rem; margin-bottom: 1rem; }

/* FAQ */
.pg99-faq-item { margin-bottom: 1rem; }
.pg99-faq-item h4 { font-size: 1.3rem; color: var(--pg99-primary); margin-bottom: 0.4rem; }
.pg99-faq-item p { font-size: 1.2rem; color: var(--pg99-text-muted); line-height: 1.5; }

/* Help Page Styles */
.pg99-help-section { margin-bottom: 2rem; }
.pg99-help-section h2 {
  font-size: 1.6rem; color: var(--pg99-secondary); margin-bottom: 1rem;
  border-bottom: 1px solid var(--pg99-border); padding-bottom: 0.5rem;
}
.pg99-help-section p, .pg99-help-section li {
  font-size: 1.3rem; color: var(--pg99-text-muted); line-height: 1.6;
}
.pg99-help-section ol { padding-left: 2rem; }
.pg99-help-section ol li { margin-bottom: 0.6rem; list-style: decimal; }
.pg99-step-card {
  background: var(--pg99-bg-card); border-radius: var(--pg99-radius);
  padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--pg99-primary);
}
.pg99-step-card h4 { font-size: 1.3rem; color: var(--pg99-primary); margin-bottom: 0.4rem; }
.pg99-step-card p { font-size: 1.2rem; color: var(--pg99-text-muted); }

/* Internal Links */
.pg99-internal-link {
  color: var(--pg99-primary); text-decoration: underline;
  transition: var(--pg99-transition);
}
.pg99-internal-link:hover { color: var(--pg99-accent); }

/* Responsive */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .pg99-bottom-nav { display: none; }
  .pg99-menu-toggle { display: none; }
}
