/**
 * phjoy.css - Core Stylesheet for phjoy.cfd
 * All classes use pgac- prefix for namespace isolation
 * Color palette: #FF69B4 (hot pink) | #E9967A (dark salmon) | #2C2C2C (dark bg) | #A0522D (sienna accent)
 */

:root {
  --pgac-primary: #FF69B4;
  --pgac-secondary: #E9967A;
  --pgac-bg: #2C2C2C;
  --pgac-bg-dark: #1A1A1A;
  --pgac-bg-card: #333333;
  --pgac-accent: #A0522D;
  --pgac-text: #F5F5F5;
  --pgac-text-muted: #B0B0B0;
  --pgac-border: #444444;
  --pgac-gold: #FFD700;
  --pgac-radius: 8px;
}

/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pgac-bg);
  color: var(--pgac-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

a {
  color: var(--pgac-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.pgac-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pgac-bg-dark) 0%, #2a1a1a 100%);
  border-bottom: 2px solid var(--pgac-primary);
  max-width: 430px;
  margin: 0 auto;
}

.pgac-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  height: 52px;
}

.pgac-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgac-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pgac-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgac-primary);
  letter-spacing: 0.5px;
}

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

.pgac-btn-register,
.pgac-btn-login {
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 32px;
}

.pgac-btn-register {
  background: linear-gradient(135deg, var(--pgac-primary), #ff85c8);
  color: #fff;
}

.pgac-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(255, 105, 180, 0.4);
}

.pgac-btn-login {
  background: transparent;
  color: var(--pgac-primary);
  border: 1.5px solid var(--pgac-primary);
}

.pgac-btn-login:hover {
  background: rgba(255, 105, 180, 0.1);
}

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

/* Mobile menu */
.pgac-mobile-menu {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--pgac-bg-dark);
  border-bottom: 2px solid var(--pgac-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  max-width: 430px;
  margin: 0 auto;
}

.pgac-menu-active {
  max-height: 400px;
}

.pgac-mobile-menu ul {
  list-style: none;
  padding: 8px 0;
}

.pgac-mobile-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--pgac-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--pgac-border);
  transition: background 0.2s;
}

.pgac-mobile-menu li a:hover {
  background: rgba(255, 105, 180, 0.1);
  text-decoration: none;
}

/* Main content area */
.pgac-main {
  padding-top: 60px;
  min-height: 100vh;
}

/* Carousel */
.pgac-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 0;
}

.pgac-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pgac-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.pgac-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.pgac-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.pgac-dot-active {
  background: var(--pgac-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section styling */
.pgac-section {
  padding: 16px 12px;
}

.pgac-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--pgac-primary);
  border-left: 4px solid var(--pgac-secondary);
  padding-left: 10px;
}

.pgac-section-subtitle {
  font-size: 1.4rem;
  color: var(--pgac-text-muted);
  margin-bottom: 10px;
}

/* Game grid */
.pgac-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

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

.pgac-game-item:hover {
  transform: translateY(-2px);
}

.pgac-game-item img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  margin-bottom: 4px;
  border: 2px solid var(--pgac-border);
  transition: border-color 0.3s;
}

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

.pgac-game-name {
  font-size: 1rem;
  color: var(--pgac-text-muted);
  line-height: 1.2rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category label */
.pgac-cat-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgac-accent), var(--pgac-secondary));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Content card */
.pgac-card {
  background: var(--pgac-bg-card);
  border-radius: var(--pgac-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--pgac-border);
}

.pgac-card h3 {
  font-size: 1.6rem;
  color: var(--pgac-secondary);
  margin-bottom: 8px;
}

.pgac-card p {
  font-size: 1.3rem;
  color: var(--pgac-text-muted);
  line-height: 1.6rem;
  margin-bottom: 8px;
}

/* Promo link buttons */
.pgac-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgac-primary), #ff85c8);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}

.pgac-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.4);
  text-decoration: none;
  color: #fff;
}

.pgac-promo-btn-alt {
  background: linear-gradient(135deg, var(--pgac-secondary), #d4845f);
}

.pgac-promo-btn-alt:hover {
  box-shadow: 0 4px 16px rgba(233, 150, 122, 0.4);
}

/* Text promo link */
.pgac-promo-text {
  color: var(--pgac-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.pgac-promo-text:hover {
  color: var(--pgac-secondary);
  text-decoration: underline;
}

/* Footer */
.pgac-footer {
  background: var(--pgac-bg-dark);
  padding: 20px 12px;
  border-top: 2px solid var(--pgac-accent);
}

.pgac-footer-brand {
  font-size: 1.2rem;
  color: var(--pgac-text-muted);
  margin-bottom: 12px;
  line-height: 1.6rem;
}

.pgac-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pgac-footer-links a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pgac-bg-card);
  color: var(--pgac-text);
  border-radius: 16px;
  font-size: 1.1rem;
  border: 1px solid var(--pgac-border);
  transition: all 0.2s;
}

.pgac-footer-links a:hover {
  background: var(--pgac-primary);
  color: #fff;
  text-decoration: none;
}

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

/* Bottom mobile navigation */
.pgac-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a1a1a, #1A1A1A);
  border-top: 2px solid var(--pgac-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.pgac-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(--pgac-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 8px;
  padding: 4px;
}

.pgac-bottom-nav-btn:hover,
.pgac-bottom-nav-btn:active {
  color: var(--pgac-primary);
  transform: scale(1.1);
}

.pgac-bottom-nav-btn .pgac-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pgac-bottom-nav-btn .pgac-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

.pgac-bottom-nav-btn.pgac-active {
  color: var(--pgac-primary);
}

.pgac-bottom-nav-btn.pgac-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pgac-primary);
  border-radius: 1px;
  margin-top: 1px;
}

/* Feature / highlight boxes */
.pgac-feature-box {
  background: linear-gradient(135deg, var(--pgac-bg-card), #3a2a2a);
  border-radius: var(--pgac-radius);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--pgac-primary);
}

.pgac-feature-box h4 {
  font-size: 1.4rem;
  color: var(--pgac-primary);
  margin-bottom: 6px;
}

.pgac-feature-box p {
  font-size: 1.2rem;
  color: var(--pgac-text-muted);
  line-height: 1.5rem;
}

/* Testimonial card */
.pgac-testimonial {
  background: var(--pgac-bg-card);
  border-radius: var(--pgac-radius);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--pgac-border);
}

.pgac-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pgac-secondary);
}

.pgac-testimonial-text {
  font-size: 1.2rem;
  color: var(--pgac-text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* Payment methods row */
.pgac-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}

.pgac-payment-item {
  background: var(--pgac-bg-card);
  border: 1px solid var(--pgac-border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.1rem;
  color: var(--pgac-text-muted);
}

/* Winner display */
.pgac-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pgac-bg-card);
  border-radius: var(--pgac-radius);
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--pgac-border);
}

.pgac-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pgac-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pgac-winner-info {
  flex: 1;
}

.pgac-winner-name {
  font-size: 1.2rem;
  color: var(--pgac-primary);
  font-weight: 600;
}

.pgac-winner-game {
  font-size: 1rem;
  color: var(--pgac-text-muted);
}

.pgac-winner-amount {
  font-size: 1.4rem;
  color: var(--pgac-gold);
  font-weight: 700;
}

/* CTA download section */
.pgac-cta-download {
  background: linear-gradient(135deg, var(--pgac-primary), var(--pgac-secondary));
  border-radius: var(--pgac-radius);
  padding: 20px 14px;
  text-align: center;
  margin: 16px 0;
}

.pgac-cta-download h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.pgac-cta-download p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

/* FAQ styling */
.pgac-faq-item {
  border-bottom: 1px solid var(--pgac-border);
  padding: 10px 0;
}

.pgac-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pgac-secondary);
  margin-bottom: 4px;
}

.pgac-faq-a {
  font-size: 1.2rem;
  color: var(--pgac-text-muted);
  line-height: 1.5rem;
  padding-left: 12px;
  border-left: 2px solid var(--pgac-primary);
}

/* Stats bar */
.pgac-stats-bar {
  display: flex;
  justify-content: space-around;
  background: var(--pgac-bg-card);
  border-radius: var(--pgac-radius);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--pgac-border);
}

.pgac-stat-item {
  text-align: center;
}

.pgac-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgac-primary);
}

.pgac-stat-label {
  font-size: 1rem;
  color: var(--pgac-text-muted);
}

/* Internal link styling */
.pgac-internal-link {
  color: var(--pgac-secondary);
  text-decoration: underline;
  transition: color 0.2s;
}

.pgac-internal-link:hover {
  color: var(--pgac-primary);
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .pgac-bottom-nav {
    display: none;
  }
}

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

@media (min-width: 431px) {
  body {
    border-left: 1px solid var(--pgac-border);
    border-right: 1px solid var(--pgac-border);
  }
}
