/**
 * WinPH - Design CSS Module
 * Prefix: pg2a-
 * Color palette: #4DB6AC | #273746 | #E0F2F1 | #DC143C | #EEEEEE | #40E0D0
 */

/* CSS Variables */
:root {
  --pg2a-primary: #4DB6AC;
  --pg2a-dark: #273746;
  --pg2a-light: #E0F2F1;
  --pg2a-accent: #DC143C;
  --pg2a-neutral: #EEEEEE;
  --pg2a-turquoise: #40E0D0;
  --pg2a-bg: #1a2332;
  --pg2a-bg-light: #1f2d3f;
  --pg2a-text: #E0F2F1;
  --pg2a-text-muted: #a0b4c0;
  --pg2a-border: #2c3e50;
  --pg2a-card-bg: #1e2d3d;
  --pg2a-shadow: rgba(0, 0, 0, 0.3);
  --pg2a-radius: 8px;
  --pg2a-radius-lg: 14px;
}

/* Reset & Base */
*, *::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: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg2a-bg);
  color: var(--pg2a-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--pg2a-turquoise); transition: color 0.2s; }
a:hover { color: var(--pg2a-primary); }

/* Container */
.pg2a-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.pg2a-wrapper { width: 100%; overflow-x: hidden; }

/* Header */
.pg2a-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg2a-dark) 0%, #1a2a3a 100%);
  border-bottom: 2px solid var(--pg2a-primary);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.pg2a-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.pg2a-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.pg2a-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pg2a-logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg2a-turquoise);
  letter-spacing: 0.5px;
}

.pg2a-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg2a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--pg2a-radius);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.pg2a-btn-register {
  background: linear-gradient(135deg, var(--pg2a-accent) 0%, #b01030 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

.pg2a-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(220, 20, 60, 0.5); }

.pg2a-btn-login {
  background: transparent;
  color: var(--pg2a-turquoise);
  border: 2px solid var(--pg2a-turquoise);
}

.pg2a-btn-login:hover { background: var(--pg2a-turquoise); color: var(--pg2a-dark); }

.pg2a-menu-toggle {
  background: none;
  border: none;
  color: var(--pg2a-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.pg2a-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.pg2a-overlay-active { display: block; }

.pg2a-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg2a-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg2a-menu-active { right: 0; }

.pg2a-menu-close {
  background: none;
  border: none;
  color: var(--pg2a-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1rem;
}

.pg2a-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg2a-turquoise);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--pg2a-primary);
}

.pg2a-menu-link {
  display: block;
  padding: 1.2rem 0;
  color: var(--pg2a-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--pg2a-border);
  transition: color 0.2s, padding-left 0.2s;
}

.pg2a-menu-link:hover {
  color: var(--pg2a-turquoise);
  padding-left: 0.8rem;
}

/* Bottom Navigation */
.pg2a-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg2a-dark) 0%, #141e2b 100%);
  border-top: 2px solid var(--pg2a-primary);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

.pg2a-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pg2a-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 0;
  position: relative;
}

.pg2a-bottom-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s;
}

.pg2a-bottom-nav-btn:hover,
.pg2a-bottom-nav-btn.pg2a-nav-active {
  color: var(--pg2a-turquoise);
}

.pg2a-bottom-nav-btn.pg2a-nav-active::after {
  background: var(--pg2a-turquoise);
}

.pg2a-bottom-nav-btn .pg2a-nav-icon { font-size: 2.2rem; margin-bottom: 2px; }
.pg2a-bottom-nav-btn .pg2a-nav-label { font-size: 1rem; font-weight: 600; }

.pg2a-btn-pressed { transform: scale(0.92); }

/* Main Content */
.pg2a-main {
  padding-top: 60px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .pg2a-main { padding-bottom: 72px; }
}

/* Carousel */
.pg2a-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: var(--pg2a-radius);
  margin-bottom: 2rem;
}

.pg2a-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pg2a-slide-active { opacity: 1; }

.pg2a-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg2a-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
}

.pg2a-carousel-prev { left: 8px; }
.pg2a-carousel-next { right: 8px; }

/* Section */
.pg2a-section {
  padding: 2rem 0;
}

.pg2a-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg2a-turquoise);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg2a-section-title i, .pg2a-section-title .material-icons {
  font-size: 2.2rem;
  color: var(--pg2a-primary);
}

/* Game Grid */
.pg2a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pg2a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.pg2a-game-item:hover { transform: translateY(-3px); }

.pg2a-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg2a-radius);
  object-fit: cover;
  border: 2px solid var(--pg2a-border);
  transition: border-color 0.2s;
}

.pg2a-game-item:hover .pg2a-game-img { border-color: var(--pg2a-primary); }

.pg2a-game-name {
  font-size: 1.1rem;
  color: var(--pg2a-text);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Category Label */
.pg2a-cat-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg2a-primary);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--pg2a-accent);
}

/* Card */
.pg2a-card {
  background: var(--pg2a-card-bg);
  border-radius: var(--pg2a-radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pg2a-border);
}

.pg2a-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg2a-turquoise);
  margin-bottom: 1rem;
}

.pg2a-card-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--pg2a-text-muted);
}

/* Promo Button */
.pg2a-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg2a-accent), #b01030);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2.4rem;
  border-radius: var(--pg2a-radius);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.pg2a-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4); }

/* Promo Text Link */
.pg2a-promo-link {
  color: var(--pg2a-accent);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.pg2a-promo-link:hover { color: #ff4060; text-decoration: underline; }

/* Footer */
.pg2a-footer {
  background: var(--pg2a-dark);
  padding: 2.5rem 1.2rem 1.5rem;
  border-top: 2px solid var(--pg2a-primary);
  margin-top: 2rem;
}

.pg2a-footer-desc {
  font-size: 1.3rem;
  color: var(--pg2a-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pg2a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg2a-footer-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--pg2a-bg-light);
  color: var(--pg2a-text);
  font-size: 1.2rem;
  border-radius: var(--pg2a-radius);
  border: 1px solid var(--pg2a-border);
  transition: all 0.2s;
}

.pg2a-footer-link:hover {
  background: var(--pg2a-primary);
  color: #fff;
}

.pg2a-footer-copy {
  font-size: 1.2rem;
  color: var(--pg2a-text-muted);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pg2a-border);
}

/* Utility */
.pg2a-text-center { text-align: center; }
.pg2a-text-accent { color: var(--pg2a-accent); }
.pg2a-text-turquoise { color: var(--pg2a-turquoise); }
.pg2a-text-muted { color: var(--pg2a-text-muted); }
.pg2a-mb-1 { margin-bottom: 1rem; }
.pg2a-mb-2 { margin-bottom: 2rem; }
.pg2a-mt-1 { margin-top: 1rem; }
.pg2a-mt-2 { margin-top: 2rem; }

/* Feature Grid */
.pg2a-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pg2a-feature-item {
  background: var(--pg2a-card-bg);
  border-radius: var(--pg2a-radius);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--pg2a-border);
  transition: border-color 0.2s;
}

.pg2a-feature-item:hover { border-color: var(--pg2a-primary); }

.pg2a-feature-icon { font-size: 2.8rem; color: var(--pg2a-turquoise); margin-bottom: 0.8rem; }

.pg2a-feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pg2a-text);
  margin-bottom: 0.4rem;
}

.pg2a-feature-desc {
  font-size: 1.2rem;
  color: var(--pg2a-text-muted);
  line-height: 1.4;
}

/* Testimonial */
.pg2a-testimonial {
  background: var(--pg2a-card-bg);
  border-radius: var(--pg2a-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--pg2a-primary);
}

.pg2a-testimonial-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pg2a-turquoise);
}

.pg2a-testimonial-text {
  font-size: 1.3rem;
  color: var(--pg2a-text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
  font-style: italic;
}

/* FAQ */
.pg2a-faq-item {
  background: var(--pg2a-card-bg);
  border-radius: var(--pg2a-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pg2a-border);
}

.pg2a-faq-q {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg2a-turquoise);
  margin-bottom: 0.6rem;
}

.pg2a-faq-a {
  font-size: 1.3rem;
  color: var(--pg2a-text-muted);
  line-height: 1.6;
}

/* Winner List */
.pg2a-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--pg2a-border);
}

.pg2a-winner-name { font-size: 1.3rem; color: var(--pg2a-text); font-weight: 600; }
.pg2a-winner-game { font-size: 1.2rem; color: var(--pg2a-primary); }
.pg2a-winner-amount { font-size: 1.3rem; color: var(--pg2a-accent); font-weight: 700; }

/* Payment Icons Row */
.pg2a-payment-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pg2a-payment-item {
  background: var(--pg2a-card-bg);
  padding: 0.8rem 1.4rem;
  border-radius: var(--pg2a-radius);
  font-size: 1.3rem;
  color: var(--pg2a-text);
  border: 1px solid var(--pg2a-border);
  font-weight: 600;
}

/* Responsive: Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg2a-bottom-nav { display: none; }
  .pg2a-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
  .pg2a-footer { max-width: 430px; margin-left: auto; margin-right: auto; }
}

/* Responsive mobile tweaks */
@media (max-width: 320px) {
  .pg2a-game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pg2a-feature-grid { grid-template-columns: 1fr; }
}

/* H1 styling */
.pg2a-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pg2a-turquoise);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* Paragraph */
.pg2a-p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--pg2a-text-muted);
  margin-bottom: 1.2rem;
}
