/**
 * Okada Play - Theme Stylesheet
 * All classes use pgda- prefix for namespace isolation
 * Color palette: #1A1A2E | #20B2AA | #48D1CC | #00FFFF
 * Mobile-first design with max-width 430px
 */

/* === CSS Variables === */
:root {
  --pgda-primary: #20B2AA;
  --pgda-secondary: #48D1CC;
  --pgda-accent: #00FFFF;
  --pgda-bg-dark: #1A1A2E;
  --pgda-bg-card: #16213E;
  --pgda-bg-surface: #0F3460;
  --pgda-text-light: #E8E8E8;
  --pgda-text-muted: #A0AEC0;
  --pgda-text-accent: #00FFFF;
  --pgda-border: #2C3E6D;
  --pgda-success: #2ED573;
  --pgda-warning: #FFA502;
  --pgda-danger: #FF4757;
  --pgda-gradient: linear-gradient(135deg, #20B2AA, #00FFFF);
  --pgda-shadow: 0 4px 15px rgba(0, 255, 255, 0.15);
  --pgda-radius: 8px;
  --pgda-radius-lg: 12px;
  --pgda-header-h: 56px;
  --pgda-bottom-nav-h: 60px;
  font-size: 62.5%;
}

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

/* === Header === */
.pgda-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1A1A2E 0%, #0F1B33 100%);
  border-bottom: 1px solid var(--pgda-border);
  max-width: 430px;
  margin: 0 auto;
  height: var(--pgda-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}
.pgda-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pgda-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.pgda-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--pgda-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.pgda-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pgda-header-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--pgda-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pgda-btn-register {
  background: var(--pgda-gradient);
  color: #1A1A2E;
}
.pgda-btn-register:hover {
  transform: scale(1.05);
  box-shadow: var(--pgda-shadow);
}
.pgda-btn-login {
  background: transparent;
  border: 1px solid var(--pgda-primary);
  color: var(--pgda-primary);
}
.pgda-btn-login:hover {
  background: rgba(32, 178, 170, 0.15);
}
.pgda-menu-toggle {
  background: none;
  border: none;
  color: var(--pgda-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.pgda-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #16213E;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.pgda-menu-active {
  right: 0;
}
.pgda-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.pgda-overlay-active {
  opacity: 1;
  visibility: visible;
}
.pgda-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pgda-border);
}
.pgda-menu-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pgda-accent);
}
.pgda-menu-close {
  background: none;
  border: none;
  color: var(--pgda-text-muted);
  font-size: 2.4rem;
  cursor: pointer;
}
.pgda-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pgda-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--pgda-radius);
  color: var(--pgda-text-light);
  font-size: 1.5rem;
  transition: all 0.2s;
}
.pgda-menu-link:hover {
  background: rgba(32, 178, 170, 0.1);
  color: var(--pgda-accent);
}
.pgda-menu-link i, .pgda-menu-link .material-icons {
  font-size: 2rem;
  color: var(--pgda-primary);
}

/* === Main Content === */
.pgda-main {
  margin-top: var(--pgda-header-h);
  padding-bottom: 2rem;
}
@media (max-width: 768px) {
  .pgda-main {
    padding-bottom: 80px;
  }
}

/* === Carousel === */
.pgda-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--pgda-radius-lg) var(--pgda-radius-lg);
}
.pgda-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.pgda-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}
.pgda-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.pgda-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 0;
  background: var(--pgda-bg-dark);
}
.pgda-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pgda-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.pgda-dot-active {
  background: var(--pgda-accent);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

/* === Section Layout === */
.pgda-section {
  padding: 2rem 1.2rem;
}
.pgda-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--pgda-text-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pgda-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 2rem;
  background: var(--pgda-gradient);
  border-radius: 2px;
}

/* === Game Grid === */
.pgda-game-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pgda-primary);
  margin: 1.5rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pgda-accent);
}
.pgda-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.pgda-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.pgda-game-item:hover {
  transform: translateY(-2px);
}
.pgda-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pgda-radius);
  object-fit: cover;
  border: 1px solid var(--pgda-border);
}
.pgda-game-name {
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0.4rem;
  color: var(--pgda-text-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* === Content Card === */
.pgda-card {
  background: var(--pgda-bg-card);
  border-radius: var(--pgda-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pgda-border);
}
.pgda-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--pgda-accent);
}

/* === Promo Button === */
.pgda-promo-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--pgda-gradient);
  color: #1A1A2E;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: var(--pgda-radius);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.pgda-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--pgda-shadow);
}
.pgda-promo-link {
  color: var(--pgda-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.pgda-promo-link:hover {
  color: var(--pgda-primary);
}

/* === Footer === */
.pgda-footer {
  background: #0F1B33;
  padding: 2.5rem 1.2rem 3rem;
  border-top: 1px solid var(--pgda-border);
}
.pgda-footer-brand {
  font-size: 1.4rem;
  color: var(--pgda-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.pgda-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.pgda-footer-link {
  padding: 0.5rem 1.2rem;
  background: var(--pgda-bg-card);
  border: 1px solid var(--pgda-border);
  border-radius: var(--pgda-radius);
  color: var(--pgda-text-light);
  font-size: 1.2rem;
  transition: all 0.2s;
  cursor: pointer;
}
.pgda-footer-link:hover {
  border-color: var(--pgda-primary);
  color: var(--pgda-accent);
}
.pgda-footer-copy {
  font-size: 1.2rem;
  color: var(--pgda-text-muted);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pgda-border);
}

/* === Bottom Navigation === */
.pgda-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--pgda-bottom-nav-h);
  background: linear-gradient(180deg, #16213E 0%, #0F1B33 100%);
  border-top: 1px solid var(--pgda-border);
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .pgda-bottom-nav {
    display: flex;
  }
}
.pgda-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pgda-text-muted);
  transition: all 0.2s;
  padding: 0.3rem 0;
  position: relative;
}
.pgda-bottom-nav-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--pgda-accent);
  transition: width 0.2s;
}
.pgda-bottom-nav-btn:hover,
.pgda-nav-active {
  color: var(--pgda-accent);
}
.pgda-bottom-nav-btn:hover::after,
.pgda-nav-active::after {
  width: 30px;
}
.pgda-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}
.pgda-nav-label {
  font-size: 1rem;
  white-space: nowrap;
}

/* === Utility Classes === */
.pgda-text-center { text-align: center; }
.pgda-text-accent { color: var(--pgda-accent); }
.pgda-text-primary { color: var(--pgda-primary); }
.pgda-text-muted { color: var(--pgda-text-muted); }
.pgda-mb-1 { margin-bottom: 0.8rem; }
.pgda-mb-2 { margin-bottom: 1.5rem; }
.pgda-mb-3 { margin-bottom: 2rem; }
.pgda-mt-1 { margin-top: 0.8rem; }
.pgda-mt-2 { margin-top: 1.5rem; }
.pgda-p-1 { padding: 0.8rem; }
.pgda-p-2 { padding: 1.5rem; }
.pgda-flex { display: flex; }
.pgda-flex-col { flex-direction: column; }
.pgda-flex-center { align-items: center; justify-content: center; }
.pgda-flex-wrap { flex-wrap: wrap; }
.pgda-gap-1 { gap: 0.8rem; }
.pgda-gap-2 { gap: 1.5rem; }
.pgda-hidden { display: none; }

/* === Winner Ticker === */
.pgda-winner-ticker {
  background: rgba(32, 178, 170, 0.1);
  border: 1px solid var(--pgda-border);
  border-radius: var(--pgda-radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}
.pgda-winner-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pgda-warning);
  white-space: nowrap;
}
.pgda-winner-list {
  flex: 1;
  overflow: hidden;
  font-size: 1.2rem;
  color: var(--pgda-text-muted);
}

/* === Testimonial === */
.pgda-testimonial {
  background: var(--pgda-bg-card);
  border-radius: var(--pgda-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pgda-primary);
}
.pgda-testimonial-author {
  font-weight: 600;
  color: var(--pgda-accent);
  font-size: 1.3rem;
}
.pgda-testimonial-text {
  color: var(--pgda-text-muted);
  font-size: 1.3rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

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

/* === FAQ === */
.pgda-faq-item {
  background: var(--pgda-bg-card);
  border-radius: var(--pgda-radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--pgda-border);
}
.pgda-faq-q {
  font-weight: 600;
  color: var(--pgda-accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.pgda-faq-a {
  color: var(--pgda-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* === Responsive === */
@media (min-width: 769px) {
  .pgda-bottom-nav { display: none; }
}
@media (max-width: 320px) {
  .pgda-game-grid { grid-template-columns: repeat(3, 1fr); }
  .pgda-site-name { font-size: 1.5rem; }
}
