/* FB008 Layout Stylesheet - Prefix: pgf6- */
/* Color Palette: #FFC0CB (pink accent) | #0F0F23 (dark bg) | #EEEEEE (light text) */

:root {
  --pgf6-primary: #FFC0CB;
  --pgf6-primary-dark: #e8a0ad;
  --pgf6-bg: #0F0F23;
  --pgf6-bg-light: #1a1a3e;
  --pgf6-bg-card: #161636;
  --pgf6-text: #EEEEEE;
  --pgf6-text-muted: #aaaacc;
  --pgf6-accent: #FFC0CB;
  --pgf6-accent2: #ff9fb0;
  --pgf6-gold: #ffd700;
  --pgf6-border: rgba(255, 192, 203, 0.15);
  --pgf6-shadow: rgba(0, 0, 0, 0.4);
  --pgf6-radius: 8px;
  --pgf6-radius-lg: 12px;
}

/* 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--pgf6-bg);
  color: var(--pgf6-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--pgf6-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.pgf6-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, #0d0d20 0%, #1a1a3e 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--pgf6-border);
  backdrop-filter: blur(10px);
}

.pgf6-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgf6-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pgf6-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pgf6-primary);
  letter-spacing: 0.5px;
}

.pgf6-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pgf6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: none;
  border-radius: var(--pgf6-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
  text-decoration: none;
}

.pgf6-btn-register {
  background: linear-gradient(135deg, var(--pgf6-primary) 0%, var(--pgf6-accent2) 100%);
  color: #0F0F23;
}

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

.pgf6-btn:hover { transform: scale(1.04); }
.pgf6-btn:active { transform: scale(0.97); }

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

/* ========== MOBILE MENU ========== */
.pgf6-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;
}

.pgf6-overlay-active { opacity: 1; pointer-events: all; }

.pgf6-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, #12122a 0%, #0F0F23 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px 16px;
  overflow-y: auto;
}

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

.pgf6-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pgf6-border);
}

.pgf6-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgf6-primary);
}

.pgf6-menu-close {
  background: none;
  border: none;
  color: var(--pgf6-text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.pgf6-menu-nav { list-style: none; }

.pgf6-menu-nav li {
  margin-bottom: 4px;
}

.pgf6-menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--pgf6-text);
  font-size: 1.3rem;
  border-radius: var(--pgf6-radius);
  transition: all 0.2s ease;
}

.pgf6-menu-nav a:hover {
  background: var(--pgf6-bg-light);
  color: var(--pgf6-primary);
}

.pgf6-menu-nav a span.material-icons-outlined,
.pgf6-menu-nav a span.material-icons {
  font-size: 2rem;
  color: var(--pgf6-primary);
}

/* ========== MAIN CONTENT ========== */
.pgf6-main {
  padding-top: 56px;
  min-height: 100vh;
}

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

.pgf6-container {
  padding: 0 12px;
}

/* ========== CAROUSEL ========== */
.pgf6-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0 0 var(--pgf6-radius-lg) var(--pgf6-radius-lg);
}

.pgf6-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.pgf6-carousel-slide:first-child { opacity: 1; z-index: 2; }

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

/* ========== SECTIONS ========== */
.pgf6-section {
  padding: 16px 12px;
}

.pgf6-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgf6-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgf6-section-title i,
.pgf6-section-title .material-icons {
  color: var(--pgf6-primary);
}

/* ========== GAME GRID ========== */
.pgf6-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pgf6-primary);
  margin: 14px 0 8px;
  padding-left: 4px;
  border-left: 3px solid var(--pgf6-primary);
  padding-left: 10px;
}

.pgf6-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pgf6-game-card {
  background: var(--pgf6-bg-card);
  border-radius: var(--pgf6-radius);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--pgf6-border);
}

.pgf6-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--pgf6-shadow);
}

.pgf6-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  margin-bottom: 4px;
}

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

/* ========== CONTENT CARDS ========== */
.pgf6-card {
  background: var(--pgf6-bg-card);
  border-radius: var(--pgf6-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--pgf6-border);
}

.pgf6-card h3 {
  font-size: 1.5rem;
  color: var(--pgf6-primary);
  margin-bottom: 8px;
}

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

.pgf6-promo-text {
  display: inline;
  color: var(--pgf6-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.pgf6-footer {
  background: linear-gradient(180deg, var(--pgf6-bg-light) 0%, #0a0a1a 100%);
  padding: 20px 12px 24px;
  border-top: 1px solid var(--pgf6-border);
}

.pgf6-footer-brand {
  font-size: 1.3rem;
  color: var(--pgf6-text-muted);
  line-height: 1.7rem;
  margin-bottom: 14px;
}

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

.pgf6-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255, 192, 203, 0.08);
  border: 1px solid var(--pgf6-border);
  border-radius: 20px;
  color: var(--pgf6-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pgf6-footer-link:hover { background: rgba(255, 192, 203, 0.18); }

.pgf6-footer-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pgf6-footer-site-links a {
  color: var(--pgf6-text-muted);
  font-size: 1.1rem;
  text-decoration: underline;
}

.pgf6-footer-site-links a:hover { color: var(--pgf6-primary); }

.pgf6-copyright {
  text-align: center;
  color: var(--pgf6-text-muted);
  font-size: 1.1rem;
  opacity: 0.6;
}

/* ========== BOTTOM NAV ========== */
.pgf6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #0d0d20 0%, #161636 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--pgf6-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

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

.pgf6-bottom-nav-btn i,
.pgf6-bottom-nav-btn .material-icons,
.pgf6-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

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

.pgf6-bottom-nav-btn:hover,
.pgf6-bottom-active {
  color: var(--pgf6-primary);
  background: rgba(255, 192, 203, 0.08);
}

.pgf6-bottom-active {
  transform: scale(1.05);
}

/* ========== CTA BUTTON ========== */
.pgf6-cta {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--pgf6-primary) 0%, var(--pgf6-accent2) 100%);
  color: #0F0F23;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--pgf6-radius-lg);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin: 10px 0;
}

.pgf6-cta:hover { transform: scale(1.02); }
.pgf6-cta:active { transform: scale(0.98); }

/* ========== HELPER CLASSES ========== */
.pgf6-text-center { text-align: center; }
.pgf6-text-pink { color: var(--pgf6-primary); }
.pgf6-text-gold { color: var(--pgf6-gold); }
.pgf6-mb-8 { margin-bottom: 8px; }
.pgf6-mb-12 { margin-bottom: 12px; }
.pgf6-mb-16 { margin-bottom: 16px; }
.pgf6-mt-12 { margin-top: 12px; }

.pgf6-divider {
  height: 1px;
  background: var(--pgf6-border);
  margin: 12px 0;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
  .pgf6-bottom-nav { display: none; }
  .pgf6-menu-toggle { display: none; }
}

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

/* ========== WINNER LIST ========== */
.pgf6-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--pgf6-bg-card);
  border-radius: var(--pgf6-radius);
  margin-bottom: 6px;
  border: 1px solid var(--pgf6-border);
}

.pgf6-winner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgf6-winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pgf6-primary), var(--pgf6-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F0F23;
}

.pgf6-winner-name {
  font-size: 1.2rem;
  color: var(--pgf6-text);
}

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

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

/* ========== PAYMENT ICONS ========== */
.pgf6-payment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

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

/* ========== FAQ ========== */
.pgf6-faq-item {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--pgf6-bg-card);
  border-radius: var(--pgf6-radius);
  border: 1px solid var(--pgf6-border);
}

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

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

/* ========== H TAGS ========== */
h1.pgf6-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pgf6-text);
  line-height: 2.6rem;
  margin-bottom: 12px;
}

h2.pgf6-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pgf6-text);
  line-height: 2.2rem;
  margin-bottom: 10px;
}
