/* ===========================================================
   phwin vip app - Core layout stylesheet (prefix: pgef-)
   Color palette: #0000FF | #87CEFA | #ADD8E6 | #3A3A3A
   Mobile-first HTML5 (max-width: 430px)
   =========================================================== */

/* ---- CSS variables ---- */
:root {
  --pgef-primary: #0000FF;
  --pgef-accent: #87CEFA;
  --pgef-light: #ADD8E6;
  --pgef-dark: #3A3A3A;
  --pgef-bg: #0a1a4d;
  --pgef-bg-soft: #122a7a;
  --pgef-card: linear-gradient(145deg, #15306e, #0d1d52);
  --pgef-text: #eaf3ff;
  --pgef-muted: #9fb6e4;
  --pgef-gold: #ffd75e;
  --pgef-shadow: 0 6px 18px rgba(0, 0, 255, 0.28);
  --pgef-radius: 14px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pgef-text);
  background: radial-gradient(circle at top, #102766, #050e2e 70%);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--pgef-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pgef-accent); }
ul { list-style: none; }

/* ---- Header / Top navigation ---- */
.pgef-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #0000FF, #1b3aa8);
  box-shadow: 0 2px 10px rgba(0,0,255,.35);
  max-width: 430px; margin: 0 auto;
  padding: 0 1rem; height: 5.6rem;
  display: flex; align-items: center; justify-content: space-between;
}
.pgef-logo {
  display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700;
  font-size: 1.6rem;
}
.pgef-logo img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.pgef-header-actions { display: flex; align-items: center; gap: .6rem; }
.pgef-btn {
  border: none; cursor: pointer; border-radius: 30px;
  padding: .8rem 1.4rem; font-size: 1.3rem; font-weight: 700;
  transition: transform .15s ease, box-shadow .2s ease;
}
.pgef-btn:active { transform: scale(.96); }
.pgef-btn-register {
  background: linear-gradient(135deg, #ffd75e, #ff9d2e);
  color: #3a2200; box-shadow: 0 4px 12px rgba(255, 157, 46, .45);
}
.pgef-btn-login {
  background: transparent; color: #fff;
  border: 2px solid #ADD8E6;
}
.pgef-menu-toggle {
  background: transparent; border: none; color: #fff; font-size: 1.6rem;
  cursor: pointer; padding: .4rem;
}

/* ---- Expandable nav menu ---- */
.pgef-nav-menu {
  position: fixed; top: 5.6rem; left: 0; right: 0; z-index: 9999;
  background: rgba(8, 18, 60, .98);
  border-bottom: 3px solid var(--pgef-primary);
  max-width: 430px; margin: 0 auto;
  transform: translateY(-180%); transition: transform .3s ease;
  padding: 1rem;
}
.pgef-nav-menu.pgef-open { transform: translateY(0); }
.pgef-nav-menu a {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem; color: var(--pgef-light); font-weight: 600;
  border-bottom: 1px dashed rgba(135, 206, 250, .25);
}
.pgef-nav-menu a:last-child { border-bottom: none; }
.pgef-nav-menu a i { width: 2rem; text-align: center; color: var(--pgef-accent); }

/* ---- Hero / Carousel ---- */
.pgef-main { padding-top: 5.6rem; }
.pgef-carousel {
  position: relative; margin: 1rem; border-radius: var(--pgef-radius);
  overflow: hidden; box-shadow: var(--pgef-shadow);
}
.pgef-slides { display: flex; transition: transform .5s ease; }
.pgef-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.pgef-slide img { width: 100%; height: 180px; object-fit: cover; }
.pgef-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,30,.85));
  padding: 1rem; color: #fff;
}
.pgef-slide-caption h2 { font-size: 1.6rem; color: var(--pgef-gold); }
.pgef-carousel-dots {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: .4rem;
}
.pgef-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4); cursor: pointer;
}
.pgef-carousel-dots button.pgef-active { background: var(--pgef-gold); }

/* ---- Section / titles ---- */
.pgef-section { padding: 1rem; margin-top: 1rem; }
.pgef-section-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.8rem; color: var(--pgef-gold); margin-bottom: 1rem;
  border-left: 4px solid var(--pgef-accent); padding-left: .8rem;
}
.pgef-section-title i { color: var(--pgef-accent); }
.pgef-h1 {
  font-size: 2rem; color: #fff; text-align: center;
  padding: 1rem; line-height: 1.3;
}
.pgef-h1 span { color: var(--pgef-gold); }

/* ---- Game grid ---- */
.pgef-game-block { margin-bottom: 1.6rem; }
.pgef-cat-title {
  font-size: 1.6rem; color: var(--pgef-accent);
  margin: 1rem 0 .8rem; display: flex; align-items: center; gap: .5rem;
}
.pgef-cat-title i { color: var(--pgef-gold); }
.pgef-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
}
.pgef-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pgef-game-card {
  background: var(--pgef-card); border-radius: 10px; overflow: hidden;
  text-align: center; cursor: pointer; transition: transform .2s ease;
  border: 1px solid rgba(135, 206, 250, .25);
}
.pgef-game-card:active { transform: scale(.95); }
.pgef-game-card img {
  width: 100%; height: 78px; object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.pgef-game-card span {
  display: block; padding: .4rem .2rem; font-size: 1.1rem;
  color: var(--pgef-light); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Content blocks ---- */
.pgef-card {
  background: var(--pgef-card); border-radius: var(--pgef-radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--pgef-shadow);
  border: 1px solid rgba(135, 206, 250, .2);
}
.pgef-card h2, .pgef-card h3 { color: var(--pgef-gold); margin-bottom: .6rem; }
.pgef-card p { color: var(--pgef-text); margin-bottom: .6rem; }
.pgef-card ul { padding-left: 1.2rem; }
.pgef-card li { list-style: disc; margin-bottom: .3rem; color: var(--pgef-muted); }
.pgef-card a.pgef-text-link {
  color: var(--pgef-accent); font-weight: 700; text-decoration: underline;
}
.pgef-card a.pgef-text-link:hover { color: var(--pgef-gold); }

/* ---- Promo CTA ---- */
.pgef-cta {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  margin: 1rem 0;
}
.pgef-cta-link {
  background: linear-gradient(135deg, #0000FF, #4169ff);
  color: #fff; padding: .8rem 1.4rem; border-radius: 30px;
  font-weight: 700; display: inline-flex; align-items: center; gap: .4rem;
  box-shadow: var(--pgef-shadow); cursor: pointer;
  transition: transform .15s ease;
}
.pgef-cta-link:active { transform: scale(.95); }
.pgef-cta-link.pgef-gold {
  background: linear-gradient(135deg, #ffd75e, #ff9d2e); color: #3a2200;
}

/* ---- FAQ ---- */
.pgef-faq-item {
  border-bottom: 1px dashed rgba(173, 216, 230, .3);
  padding: .8rem 0;
}
.pgef-faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--pgef-accent);
  list-style: none; display: flex; justify-content: space-between;
  align-items: center;
}
.pgef-faq-item summary::after { content: "+"; font-size: 1.6rem; color: var(--pgef-gold); }
.pgef-faq-item[open] summary::after { content: "-"; }
.pgef-faq-item p { margin-top: .6rem; color: var(--pgef-muted); }

/* ---- Testimonials ---- */
.pgef-testimonial {
  background: rgba(255,255,255,.05); border-radius: 10px;
  padding: 1rem; margin-bottom: .8rem; border-left: 3px solid var(--pgef-gold);
}
.pgef-testimonial strong { color: var(--pgef-accent); display: block; margin-bottom: .3rem; }
.pgef-stars { color: var(--pgef-gold); margin-bottom: .3rem; }

/* ---- Payment / Winners ---- */
.pgef-pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.pgef-pill {
  background: rgba(135, 206, 250, .15); border: 1px solid var(--pgef-accent);
  padding: .4rem 1rem; border-radius: 20px; font-size: 1.2rem; color: var(--pgef-light);
}
.pgef-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem; border-bottom: 1px dashed rgba(173, 216, 230, .2);
  font-size: 1.25rem;
}
.pgef-winner-row span:first-child { color: var(--pgef-accent); font-weight: 600; }
.pgef-winner-row span:last-child { color: var(--pgef-gold); font-weight: 700; }

/* ---- Footer ---- */
.pgef-footer {
  background: #050d33; padding: 1.4rem 1rem 8rem;
  border-top: 2px solid var(--pgef-primary);
}
.pgef-footer-brand { margin-bottom: 1rem; color: var(--pgef-light); font-size: 1.3rem; }
.pgef-footer-links {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem;
}
.pgef-footer-links a {
  font-size: 1.15rem; color: var(--pgef-accent); text-decoration: underline;
}
.pgef-footer-copy { color: var(--pgef-muted); font-size: 1.1rem; text-align: center; }

/* ---- Mobile bottom nav ---- */
.pgef-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: 60px;
  background: linear-gradient(90deg, #0000FF, #1b3aa8);
  border-top: 2px solid var(--pgef-accent);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 14px rgba(0,0,255,.35);
}
.pgef-bottom-nav button, .pgef-bottom-nav a {
  flex: 1; background: transparent; border: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 1rem; min-height: 60px; min-width: 60px; cursor: pointer;
  text-decoration: none; gap: .2rem; transition: transform .2s ease, color .2s ease;
}
.pgef-bottom-nav button:active, .pgef-bottom-nav a:active { transform: scale(.9); }
.pgef-bottom-nav i, .pgef-bottom-nav .material-icons-outlined,
.pgef-bottom-nav ion-icon { font-size: 22px; color: var(--pgef-light); }
.pgef-bottom-nav .pgef-active i,
.pgef-bottom-nav .pgef-active .material-icons-outlined,
.pgef-bottom-nav .pgef-active ion-icon { color: var(--pgef-gold); }
.pgef-bottom-nav .pgef-active span { color: var(--pgef-gold); }

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

/* ---- Mobile padding for bottom nav clearance ---- */
@media (max-width: 768px) {
  main.pgef-main { padding-bottom: 80px; }
}

/* ---- Utilities ---- */
.pgef-text-center { text-align: center; }
.pgef-mt-1 { margin-top: 1rem; }
.pgef-mt-2 { margin-top: 2rem; }
.pgef-hidden { display: none !important; }
