/*!
 * Lucky Star Casino - style.css
 * Mobile-first PH gaming website stylesheet.
 * All custom classes use the pga2- prefix.
 */

:root {
  --pga2-primary: #48D1CC;
  --pga2-secondary: #80CBC4;
  --pga2-pale: #AFEEEE;
  --pga2-accent: #0000FF;
  --pga2-bg: #0C0C0C;
  --pga2-bg-soft: #14242a;
  --pga2-text: #AFEEEE;
  --pga2-text-strong: #ffffff;
  --pga2-muted: #8fb6b6;
  --pga2-border: rgba(72, 209, 204, 0.22);
  --pga2-gold: #ffd266;
  --pga2-radius: 14px;
  --pga2-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pga2-header-h: 56px;
  --pga2-bottom-h: 62px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at top, #11282b 0%, var(--pga2-bg) 70%);
  color: var(--pga2-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

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

.pga2-container {
  width: 100%;
  padding: 0 14px;
}

.pga2-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding-top: var(--pga2-header-h);
  padding-bottom: calc(var(--pga2-bottom-h) + 20px);
}

/* ===== Header ===== */
.pga2-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pga2-header-h);
  background: linear-gradient(180deg, #0b1d20 0%, #0C0C0C 100%);
  border-bottom: 1px solid var(--pga2-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.pga2-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pga2-text-strong);
  font-weight: 700;
  font-size: 1.6rem;
}

.pga2-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.pga2-brand .pga2-brand-accent {
  color: var(--pga2-primary);
}

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

.pga2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.pga2-btn-primary {
  background: linear-gradient(135deg, var(--pga2-primary) 0%, var(--pga2-accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 255, 0.35);
}

.pga2-btn-secondary {
  background: transparent;
  color: var(--pga2-text-strong);
  border: 1px solid var(--pga2-primary);
}

.pga2-btn:hover { transform: translateY(-1px); }
.pga2-btn:active { transform: scale(0.96); }

.pga2-menu-trigger {
  background: transparent;
  border: none;
  color: var(--pga2-text-strong);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

/* ===== Mobile slide-down menu ===== */
.pga2-mobile-menu {
  position: fixed;
  top: var(--pga2-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #0b1d20;
  border-bottom: 1px solid var(--pga2-border);
  padding: 10px 14px 14px;
  display: none;
  z-index: 9999;
}

.pga2-mobile-menu.pga2-menu-open { display: block; animation: pga2-fadeDown 0.2s ease; }

@keyframes pga2-fadeDown {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.pga2-mobile-menu a {
  display: block;
  padding: 10px 8px;
  color: var(--pga2-text);
  border-bottom: 1px solid rgba(72, 209, 204, 0.12);
  font-size: 1.4rem;
}

.pga2-mobile-menu a:hover { color: var(--pga2-primary); }

/* ===== Carousel ===== */
.pga2-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--pga2-radius);
  overflow: hidden;
  margin-top: 14px;
  box-shadow: var(--pga2-shadow);
  aspect-ratio: 16 / 9;
  background: #0b1d20;
}

.pga2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

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

.pga2-slide-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  color: var(--pga2-text-strong);
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

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

.pga2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(175, 238, 238, 0.4);
  border: none;
  cursor: pointer;
}

.pga2-dot.pga2-dot-active { background: var(--pga2-primary); }

/* ===== Section / heading ===== */
.pga2-section {
  margin-top: 22px;
  padding: 0 14px;
}

.pga2-h1 {
  font-size: 2.2rem;
  line-height: 2.8rem;
  color: var(--pga2-text-strong);
  margin: 16px 0 8px;
}

.pga2-h2 {
  font-size: 1.9rem;
  color: var(--pga2-text-strong);
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--pga2-primary);
}

.pga2-h3 {
  font-size: 1.6rem;
  color: var(--pga2-primary);
  margin: 14px 0 6px;
}

.pga2-lead { color: var(--pga2-muted); font-size: 1.4rem; }

.pga2-card {
  background: linear-gradient(160deg, var(--pga2-bg-soft) 0%, #0C0C0C 100%);
  border: 1px solid var(--pga2-border);
  border-radius: var(--pga2-radius);
  padding: 14px;
  box-shadow: var(--pga2-shadow);
}

.pga2-promo-link {
  color: var(--pga2-primary);
  font-weight: 700;
}

.pga2-promo-link:hover { text-decoration: underline; }

/* ===== Game grid ===== */
.pga2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.pga2-game-card {
  background: var(--pga2-bg-soft);
  border: 1px solid var(--pga2-border);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.pga2-game-card:hover { transform: translateY(-2px); border-color: var(--pga2-primary); }
.pga2-game-card:active { transform: scale(0.97); }

.pga2-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

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

.pga2-game-cat-title {
  font-size: 1.5rem;
  color: var(--pga2-primary);
  margin: 16px 0 6px;
  font-weight: 700;
}

/* ===== Features / list ===== */
.pga2-feature-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.pga2-feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--pga2-text);
  border-bottom: 1px solid rgba(72, 209, 204, 0.1);
}

.pga2-feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--pga2-primary);
}

.pga2-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.pga2-stat {
  background: var(--pga2-bg-soft);
  border: 1px solid var(--pga2-border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.pga2-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--pga2-gold); }
.pga2-stat-label { font-size: 1.2rem; color: var(--pga2-muted); }

/* ===== Testimonial ===== */
.pga2-testimonial {
  background: var(--pga2-bg-soft);
  border-left: 3px solid var(--pga2-primary);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.pga2-testimonial-name { color: var(--pga2-gold); font-weight: 700; font-size: 1.3rem; }

/* ===== Payment chips ===== */
.pga2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pga2-chip {
  background: var(--pga2-bg-soft);
  border: 1px solid var(--pga2-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--pga2-text);
}

/* ===== CTA banner ===== */
.pga2-cta {
  background: linear-gradient(135deg, var(--pga2-primary) 0%, var(--pga2-accent) 100%);
  border-radius: var(--pga2-radius);
  padding: 16px;
  color: #ffffff;
  text-align: center;
  margin: 16px 0;
}

.pga2-cta h3 { color: #ffffff; margin-top: 0; }

/* ===== Footer ===== */
.pga2-footer {
  margin-top: 26px;
  padding: 22px 14px calc(var(--pga2-bottom-h) + 24px);
  background: #08161a;
  border-top: 1px solid var(--pga2-border);
}

.pga2-footer-brand { color: var(--pga2-muted); font-size: 1.3rem; margin-bottom: 12px; }

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

.pga2-footer-links a {
  background: var(--pga2-bg-soft);
  border: 1px solid var(--pga2-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.2rem;
  color: var(--pga2-text);
}

.pga2-footer-copy { color: var(--pga2-muted); font-size: 1.2rem; }

/* ===== Bottom nav ===== */
.pga2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pga2-bottom-h);
  background: rgba(8, 22, 26, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--pga2-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.pga2-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pga2-muted);
  cursor: pointer;
  gap: 2px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.pga2-bottom-nav-btn .material-icons,
.pga2-bottom-nav-btn ion-icon { font-size: 24px; }

.pga2-bottom-nav-btn .pga2-nav-icon { font-size: 22px; }

.pga2-bottom-nav-btn span:last-child { font-size: 1.1rem; }

.pga2-bottom-nav-btn.pga2-active { color: var(--pga2-primary); }
.pga2-bottom-nav-btn:hover { color: var(--pga2-primary); }
.pga2-bottom-nav-btn:active { transform: scale(0.92); }

.pga2-nav-badge {
  position: absolute;
  top: 6px;
  right: 16px;
  background: var(--pga2-accent);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0 4px;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
}

/* ===== Reveal animation ===== */
.pga2-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.pga2-reveal.pga2-revealed { opacity: 1; transform: translateY(0); }

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .pga2-bottom-nav { display: none; }
  .pga2-wrapper { padding-bottom: 40px; }
  .pga2-footer { padding-bottom: 24px; }
}

/* ===== Mobile max-width 430 optimisation ===== */
@media (max-width: 430px) {
  html { font-size: 58%; }
  body { padding-bottom: var(--pga2-bottom-h); }
  .pga2-h1 { font-size: 2rem; }
  .pga2-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pga2-game-name { font-size: 1.1rem; }
  .pga2-section { padding: 0 10px; }
}
