/* JLJLPH - Core stylesheet. All custom classes use the pga2- prefix. */

:root {
  --pga2-primary: #20B2AA;
  --pga2-accent: #66CDAA;
  --pga2-gold: #F4A460;
  --pga2-bg: #273746;
  --pga2-bg-deep: #1c2833;
  --pga2-mint: #00FF7F;
  --pga2-text: #f4f9f7;
  --pga2-muted: #b8c7cf;
  --pga2-card: rgba(255, 255, 255, 0.05);
  --pga2-border: rgba(102, 205, 170, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #273746 0%, #1c2833 100%);
  color: var(--pga2-text);
  font-size: 1.5rem;
  line-height: 2.25rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.pga2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ===== Header ===== */
.pga2-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28, 40, 51, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pga2-border);
}

.pga2-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

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

.pga2-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pga2-brand span b { color: var(--pga2-mint); }

.pga2-actions { display: flex; align-items: center; gap: 0.5rem; }

.pga2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 36px;
}
.pga2-btn:active { transform: scale(0.95); }

.pga2-btn-login {
  background: transparent;
  color: var(--pga2-accent);
  border: 1px solid var(--pga2-accent);
}
.pga2-btn-register {
  background: linear-gradient(135deg, #F4A460 0%, #00FF7F 100%);
  color: #1c2833;
  box-shadow: 0 2px 8px rgba(0, 255, 127, 0.3);
}

.pga2-menu-btn {
  background: transparent;
  border: none;
  color: var(--pga2-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
}

/* ===== Expandable menu ===== */
.pga2-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(28, 40, 51, 0.98);
  border-top: 1px solid transparent;
}
.pga2-mobile-menu.pga2-menu-open {
  max-height: 480px;
  border-top: 1px solid var(--pga2-border);
}
.pga2-mobile-menu ul { list-style: none; padding: 0.5rem 1.2rem 1rem; }
.pga2-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
.pga2-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  color: var(--pga2-text);
  font-size: 1.4rem;
}
.pga2-mobile-menu a:active { color: var(--pga2-mint); }

/* ===== Main / Hero ===== */
.pga2-main {
  padding-top: 56px;
}

.pga2-hero {
  position: relative;
  margin: 1rem 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.pga2-slides { position: relative; width: 100%; height: 100%; }
.pga2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pga2-slide.pga2-slide-active { opacity: 1; }
.pga2-slide img { width: 100%; height: 100%; object-fit: cover; }
.pga2-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,40,51,0.85) 0%, rgba(28,40,51,0.15) 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
}
.pga2-slide-overlay h2 { font-size: 1.8rem; color: var(--pga2-mint); margin-bottom: 0.4rem; }
.pga2-slide-overlay p { font-size: 1.2rem; color: var(--pga2-text); }

.pga2-hero-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.pga2-hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

/* ===== Section heading ===== */
.pga2-section { margin: 2rem 0; }
.pga2-section-title {
  font-size: 1.7rem;
  color: var(--pga2-mint);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--pga2-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pga2-section-title small { color: var(--pga2-muted); font-size: 1.2rem; font-weight: 400; }

/* ===== Game grid ===== */
.pga2-game-block { margin-bottom: 2.2rem; }
.pga2-game-block h3 {
  font-size: 1.5rem;
  color: var(--pga2-accent);
  margin-bottom: 0.8rem;
}
.pga2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pga2-card {
  background: var(--pga2-card);
  border: 1px solid var(--pga2-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pga2-card:active { transform: scale(0.96); border-color: var(--pga2-mint); }
.pga2-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e1620;
}
.pga2-card-name {
  padding: 0.4rem 0.5rem;
  font-size: 1.05rem;
  text-align: center;
  color: var(--pga2-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Generic content cards ===== */
.pga2-panel {
  background: var(--pga2-card);
  border: 1px solid var(--pga2-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.pga2-panel h3 { color: var(--pga2-gold); font-size: 1.5rem; margin-bottom: 0.6rem; }
.pga2-panel p { color: var(--pga2-muted); font-size: 1.25rem; line-height: 1.6; margin-bottom: 0.6rem; }
.pga2-panel p a { color: var(--pga2-mint); font-weight: 600; }

.pga2-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.pga2-cta-row .pga2-btn { flex: 1; min-width: 120px; }

.pga2-tag {
  display: inline-block;
  background: rgba(0, 255, 127, 0.12);
  color: var(--pga2-mint);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 1.05rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.pga2-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}
.pga2-stat {
  background: rgba(102, 205, 170, 0.08);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}
.pga2-stat b { display: block; font-size: 1.8rem; color: var(--pga2-mint); }
.pga2-stat span { font-size: 1.1rem; color: var(--pga2-muted); }

.pga2-testimonial {
  border-left: 3px solid var(--pga2-gold);
  padding: 0.6rem 0 0.6rem 1rem;
  margin-bottom: 0.8rem;
}
.pga2-testimonial p { font-style: italic; color: var(--pga2-text); font-size: 1.2rem; }
.pga2-testimonial cite { display: block; color: var(--pga2-muted); font-size: 1.05rem; margin-top: 0.3rem; }

.pga2-winners {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.pga2-winner {
  flex: 0 0 140px;
  background: rgba(244, 164, 96, 0.1);
  border: 1px solid rgba(244, 164, 96, 0.3);
  border-radius: 10px;
  padding: 0.6rem;
  text-align: center;
}
.pga2-winner b { color: var(--pga2-gold); font-size: 1.3rem; display: block; }
.pga2-winner span { color: var(--pga2-muted); font-size: 1.05rem; }

.pga2-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pga2-pay span {
  background: rgba(255,255,255,0.08);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.15rem;
  color: var(--pga2-text);
}

/* ===== Footer ===== */
.pga2-footer {
  margin-top: 2rem;
  padding: 1.5rem 1.2rem 2rem;
  background: rgba(14, 22, 32, 0.85);
  border-top: 1px solid var(--pga2-border);
}
.pga2-footer-brand { font-weight: 700; font-size: 1.6rem; color: var(--pga2-mint); margin-bottom: 0.5rem; }
.pga2-footer p { color: var(--pga2-muted); font-size: 1.2rem; margin-bottom: 0.8rem; line-height: 1.6; }
.pga2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.8rem 0;
}
.pga2-footer-links a { color: var(--pga2-accent); font-size: 1.15rem; }
.pga2-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.pga2-footer-promos button { width: 100%; }
.pga2-footer-copy { font-size: 1.05rem; color: var(--pga2-muted); text-align: center; margin-top: 1rem; }

/* ===== Bottom navigation ===== */
.pga2-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: rgba(14, 22, 32, 0.98);
  border-top: 1px solid var(--pga2-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.pga2-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--pga2-muted);
  font-size: 1rem;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pga2-bottom-nav a i,
.pga2-bottom-nav a .material-icons-outlined,
.pga2-bottom-nav a ion-icon {
  font-size: 24px;
}
.pga2-bottom-nav a ion-icon { font-size: 26px; }
.pga2-bottom-nav a:active { transform: scale(0.92); }
.pga2-bottom-nav a.pga2-nav-active,
.pga2-bottom-nav a:active { color: var(--pga2-mint); }

/* Highlight promo center button */
.pga2-bottom-nav .pga2-nav-promo2 {
  position: relative;
  color: var(--pga2-gold);
}
.pga2-bottom-nav .pga2-nav-promo2::before {
  content: '';
  position: absolute;
  top: -10px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4A460, #00FF7F);
  z-index: -1;
}

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .pga2-bottom-nav { display: none; }
  .pga2-container { max-width: 960px; }
  .pga2-header-inner { max-width: 960px; }
  .pga2-grid { grid-template-columns: repeat(5, 1fr); }
}

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