/**
 * phcity.cfd - Core Design Stylesheet
 * Prefix: pgd5-
 * Color palette: #1C2833 (dark bg), #1E90FF (accent), #BBBBBB (light text)
 * Mobile-first responsive design, max-width: 430px
 */

/* CSS Variables */
:root {
  --pgd5-primary: #1E90FF;
  --pgd5-bg: #1C2833;
  --pgd5-bg-light: #2C3E50;
  --pgd5-bg-card: #1A252F;
  --pgd5-text: #BBBBBB;
  --pgd5-text-light: #E8E8E8;
  --pgd5-accent: #1E90FF;
  --pgd5-accent-hover: #4DA6FF;
  --pgd5-gold: #F0C040;
  --pgd5-green: #2ECC71;
  --pgd5-red: #E74C3C;
  --pgd5-border: #34495E;
  --pgd5-radius: 8px;
  --pgd5-shadow: 0 2px 12px rgba(0,0,0,0.3);
  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;
  background: var(--pgd5-bg);
  color: var(--pgd5-text);
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pgd5-accent); text-decoration: none; }
a:hover { color: var(--pgd5-accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.pgd5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, #1C2833 0%, #2C3E50 100%);
  border-bottom: 1px solid var(--pgd5-border);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pgd5-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.pgd5-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.pgd5-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgd5-primary);
  letter-spacing: 0.5px;
}
.pgd5-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pgd5-header-actions button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pgd5-btn-register {
  background: var(--pgd5-green);
  color: #fff;
}
.pgd5-btn-register:hover { background: #27AE60; }
.pgd5-btn-login {
  background: var(--pgd5-primary);
  color: #fff;
}
.pgd5-btn-login:hover { background: var(--pgd5-accent-hover); }
#pgd5-menu-btn {
  background: none;
  border: 1px solid var(--pgd5-border);
  color: var(--pgd5-text);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  padding: 0;
}

/* Mobile Menu */
#pgd5-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pgd5-bg-light);
  border-bottom: 2px solid var(--pgd5-primary);
  z-index: 9999;
  padding: 0.8rem 1rem;
  box-shadow: var(--pgd5-shadow);
}
#pgd5-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--pgd5-text-light);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--pgd5-border);
  transition: background 0.2s;
}
#pgd5-mobile-menu a:last-child { border-bottom: none; }
#pgd5-mobile-menu a:hover {
  background: rgba(30,144,255,0.1);
  color: var(--pgd5-primary);
  text-decoration: none;
}

/* Bottom Navigation */
.pgd5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #2C3E50 0%, #1C2833 100%);
  border-top: 1px solid var(--pgd5-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}
.pgd5-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pgd5-text);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 0.2rem;
}
.pgd5-bottom-nav button:hover,
.pgd5-bottom-nav button.pgd5-nav-active {
  color: var(--pgd5-primary);
  background: rgba(30,144,255,0.08);
  transform: scale(1.05);
}
.pgd5-bottom-nav button .pgd5-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.pgd5-bottom-nav button .pgd5-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Main content */
.pgd5-main {
  padding-top: 60px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .pgd5-main { padding-bottom: 76px; }
}

/* Carousel */
.pgd5-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--pgd5-radius) var(--pgd5-radius);
}
.pgd5-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.pgd5-slide-active { display: block; }
.pgd5-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* Sections */
.pgd5-section {
  padding: 1.5rem 1rem;
}
.pgd5-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgd5-text-light);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--pgd5-primary);
}
.pgd5-section-subtitle {
  font-size: 1.4rem;
  color: var(--pgd5-text);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* Game Grid */
.pgd5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.pgd5-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.pgd5-game-item:hover { transform: translateY(-3px); }
.pgd5-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pgd5-radius);
  border: 1px solid var(--pgd5-border);
  margin-bottom: 0.3rem;
}
.pgd5-game-item span {
  font-size: 1.1rem;
  color: var(--pgd5-text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.pgd5-card {
  background: var(--pgd5-bg-card);
  border: 1px solid var(--pgd5-border);
  border-radius: var(--pgd5-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--pgd5-shadow);
}
.pgd5-card h3 {
  font-size: 1.5rem;
  color: var(--pgd5-primary);
  margin-bottom: 0.6rem;
}

/* Buttons */
.pgd5-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}
.pgd5-btn-primary {
  background: var(--pgd5-primary);
  color: #fff;
}
.pgd5-btn-primary:hover {
  background: var(--pgd5-accent-hover);
  color: #fff;
  text-decoration: none;
}
.pgd5-btn-gold {
  background: linear-gradient(135deg, #F0C040, #E8A010);
  color: #1C2833;
}
.pgd5-btn-gold:hover {
  background: linear-gradient(135deg, #FFD060, #F0B020);
  color: #1C2833;
  text-decoration: none;
}
.pgd5-btn-outline {
  background: transparent;
  border: 1px solid var(--pgd5-primary);
  color: var(--pgd5-primary);
}
.pgd5-btn-outline:hover {
  background: var(--pgd5-primary);
  color: #fff;
  text-decoration: none;
}

/* Promotional text links */
.pgd5-promo-link {
  color: var(--pgd5-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.pgd5-promo-link:hover {
  color: var(--pgd5-accent-hover);
}

/* Footer */
.pgd5-footer {
  background: var(--pgd5-bg-light);
  border-top: 1px solid var(--pgd5-border);
  padding: 2rem 1rem 1.5rem;
  margin-top: 2rem;
}
.pgd5-footer-brand {
  font-size: 1.2rem;
  color: var(--pgd5-text);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.pgd5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pgd5-footer-links a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--pgd5-bg);
  border: 1px solid var(--pgd5-border);
  border-radius: 4px;
  color: var(--pgd5-text-light);
  font-size: 1.1rem;
  transition: all 0.2s;
}
.pgd5-footer-links a:hover {
  border-color: var(--pgd5-primary);
  color: var(--pgd5-primary);
  text-decoration: none;
}
.pgd5-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #7F8C8D;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pgd5-border);
}
.pgd5-footer-partners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}
.pgd5-footer-partners img {
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.pgd5-footer-partners img:hover { opacity: 1; }

/* Content blocks */
.pgd5-content-block {
  margin-bottom: 1.5rem;
}
.pgd5-content-block p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.pgd5-content-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.8rem;
}
.pgd5-content-block ul li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
}
.pgd5-content-block ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--pgd5-primary);
  font-size: 1rem;
}

/* Testimonial */
.pgd5-testimonial {
  background: var(--pgd5-bg-card);
  border-left: 3px solid var(--pgd5-primary);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--pgd5-radius) var(--pgd5-radius) 0;
}
.pgd5-testimonial p { font-style: italic; margin-bottom: 0.4rem; }
.pgd5-testimonial cite { color: var(--pgd5-primary); font-size: 1.1rem; }

/* Winner showcase */
.pgd5-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pgd5-border);
}
.pgd5-winner-item:last-child { border-bottom: none; }
.pgd5-winner-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.pgd5-winner-info { flex: 1; }
.pgd5-winner-name { font-size: 1.2rem; color: var(--pgd5-text-light); }
.pgd5-winner-game { font-size: 1rem; color: var(--pgd5-text); }
.pgd5-winner-amount { font-size: 1.4rem; font-weight: 700; color: var(--pgd5-gold); }

/* FAQ */
.pgd5-faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--pgd5-border);
  padding-bottom: 1rem;
}
.pgd5-faq-item h3 {
  font-size: 1.4rem;
  color: var(--pgd5-primary);
  margin-bottom: 0.5rem;
}

/* Payment icons */
.pgd5-payment-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.pgd5-payment-icon {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pgd5-bg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--pgd5-border);
  font-size: 1.2rem;
  color: var(--pgd5-text-light);
}

/* Mobile CTA */
.pgd5-cta-banner {
  background: linear-gradient(135deg, var(--pgd5-primary), #0056B3);
  border-radius: var(--pgd5-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}
.pgd5-cta-banner h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.pgd5-cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

/* Category highlight */
.pgd5-cat-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--pgd5-bg-card);
  border-radius: var(--pgd5-radius);
  margin-bottom: 0.6rem;
  border: 1px solid var(--pgd5-border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.pgd5-cat-highlight:hover {
  border-color: var(--pgd5-primary);
}
.pgd5-cat-highlight .pgd5-cat-icon {
  font-size: 2.4rem;
  width: 44px;
  text-align: center;
}
.pgd5-cat-highlight h3 { font-size: 1.3rem; margin-bottom: 0.2rem; color: var(--pgd5-text-light); }
.pgd5-cat-highlight p { font-size: 1.1rem; color: var(--pgd5-text); }

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

/* Utility */
.pgd5-text-center { text-align: center; }
.pgd5-mt-1 { margin-top: 1rem; }
.pgd5-mb-1 { margin-bottom: 1rem; }
.pgd5-hidden { display: none; }
