/* css/layout.css - f168n mobile-first gaming site styles */
/* All custom classes use the pg92- prefix for namespace isolation. */

:root {
  --pg92-primary: #00695C;
  --pg92-primary-dark: #004D40;
  --pg92-accent: #87CEFA;
  --pg92-light: #E8F5E8;
  --pg92-mint: #B2DFDB;
  --pg92-bg: #273746;
  --pg92-bg-deep: #1B2A36;
  --pg92-text: #E8F5E8;
  --pg92-text-muted: #B2DFDB;
  --pg92-gold: #FFD54F;
  --pg92-danger: #EF5350;
  --pg92-radius: 12px;
  --pg92-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

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

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--pg92-bg-deep);
  color: var(--pg92-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Header ===== */
.pg92-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--pg92-primary), var(--pg92-primary-dark));
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--pg92-shadow);
  max-width: 430px; margin: 0 auto;
}
.pg92-logo {
  display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 800;
  font-size: 1.7rem;
}
.pg92-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg92-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pg92-btn {
  border: none; border-radius: 8px; padding: 0.6rem 1.1rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease; min-height: 40px;
}
.pg92-btn:active { transform: scale(0.96); }
.pg92-btn-register {
  background: linear-gradient(135deg, var(--pg92-gold), #FFA000); color: #2a1500;
}
.pg92-btn-login {
  background: transparent; color: #fff; border: 2px solid #fff;
}
.pg92-menu-toggle {
  background: transparent; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; padding: 0 0.4rem; margin-left: 0.3rem;
}

/* ===== Mobile menu ===== */
.pg92-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px;
  height: 100%; background: var(--pg92-bg-deep); z-index: 9999;
  transition: right .28s ease; padding: 6rem 1.5rem 2rem; overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.pg92-mobile-menu.pg92-menu-open { right: 0; }
.pg92-mobile-menu h3 { color: var(--pg92-mint); font-size: 1.4rem; margin: 1.2rem 0 0.6rem; text-transform: uppercase; letter-spacing: .04em; }
.pg92-mobile-menu a {
  display: block; padding: 0.85rem 0.6rem; color: var(--pg92-text);
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1.4rem;
}
.pg92-mobile-menu a:hover { color: var(--pg92-gold); }
.pg92-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998;
  display: none;
}
.pg92-overlay.pg92-menu-open { display: block; }

/* ===== Layout ===== */
.pg92-wrapper { padding-top: 6rem; }
.pg92-container { padding: 0 1rem; }
main { display: block; }

/* ===== Carousel ===== */
.pg92-carousel {
  position: relative; border-radius: var(--pg92-radius); overflow: hidden;
  margin: 1rem 0; box-shadow: var(--pg92-shadow);
}
.pg92-slides { position: relative; height: 180px; }
.pg92-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
}
.pg92-slide.pg92-slide-active { opacity: 1; }
.pg92-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.pg92-slide-caption {
  position: absolute; left: 1rem; bottom: 1.2rem; color: #fff;
  font-size: 1.5rem; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.pg92-dots {
  position: absolute; bottom: 0.6rem; right: 1rem; display: flex; gap: 0.4rem;
}
.pg92-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.pg92-dot.pg92-dot-active { background: var(--pg92-gold); width: 22px; border-radius: 4px; }

/* ===== Section titles ===== */
.pg92-section-title {
  font-size: 1.8rem; color: var(--pg92-gold); margin: 1.6rem 0 0.8rem;
  padding-left: 0.8rem; border-left: 4px solid var(--pg92-gold); font-weight: 800;
}
.pg92-section-sub { font-size: 1.35rem; color: var(--pg92-mint); margin: 1rem 0 0.5rem; font-weight: 700; }
.pg92-lead { color: var(--pg92-text-muted); margin-bottom: 0.8rem; font-size: 1.35rem; }

/* ===== Game grid ===== */
.pg92-game-section { margin-bottom: 1.4rem; }
.pg92-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
}
.pg92-game-card {
  background: var(--pg92-bg); border-radius: 10px; padding: 0.5rem;
  text-align: center; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  border: 1px solid rgba(178,223,219,0.12);
}
.pg92-game-card:active { transform: scale(0.95); box-shadow: var(--pg92-shadow); }
.pg92-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pg92-game-name { font-size: 1.1rem; color: var(--pg92-text); line-height: 1.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pg92-game-tag { font-size: 1rem; color: var(--pg92-accent); }

/* ===== Filter tabs ===== */
.pg92-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0; margin-bottom: 0.4rem; }
.pg92-filter-tab {
  background: var(--pg92-bg); color: var(--pg92-text-muted); border: 1px solid rgba(178,223,219,0.2);
  padding: 0.5rem 1rem; border-radius: 20px; font-size: 1.2rem; white-space: nowrap; cursor: pointer;
}
.pg92-filter-tab.pg92-filter-active { background: var(--pg92-gold); color: #2a1500; font-weight: 700; }

/* ===== Promo CTA banner ===== */
.pg92-cta {
  background: linear-gradient(135deg, var(--pg92-primary), var(--pg92-accent));
  border-radius: var(--pg92-radius); padding: 1.2rem; text-align: center; margin: 1rem 0;
  color: #fff;
}
.pg92-cta h3 { color: #fff; margin-bottom: 0.4rem; font-size: 1.6rem; }
.pg92-cta p { color: #f0fbff; font-size: 1.25rem; margin-bottom: 0.8rem; }
.pg92-cta .pg92-btn { font-size: 1.4rem; padding: 0.8rem 1.6rem; }

/* ===== Cards / feature ===== */
.pg92-card {
  background: var(--pg92-bg); border-radius: var(--pg92-radius); padding: 1rem;
  margin-bottom: 1rem; box-shadow: var(--pg92-shadow); border: 1px solid rgba(178,223,219,0.1);
}
.pg92-card h3 { color: var(--pg92-mint); margin-bottom: 0.5rem; font-size: 1.5rem; }
.pg92-card p { color: var(--pg92-text-muted); font-size: 1.25rem; margin-bottom: 0.4rem; }
.pg92-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 0.8rem 0; }
.pg92-feature-item {
  background: var(--pg92-bg-deep); border-radius: 10px; padding: 0.8rem; text-align: center;
  border: 1px solid rgba(178,223,219,0.12);
}
.pg92-feature-item .material-icons, .pg92-feature-item .fas, .pg92-feature-item .bi { font-size: 26px; color: var(--pg92-gold); }
.pg92-feature-item h4 { color: var(--pg92-mint); font-size: 1.2rem; margin: 0.3rem 0; }
.pg92-feature-item p { color: var(--pg92-text-muted); font-size: 1.05rem; }

/* ===== Testimonial ===== */
.pg92-testimonial {
  background: var(--pg92-bg); border-left: 4px solid var(--pg92-gold);
  padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 0.7rem;
}
.pg92-testimonial p { font-style: italic; color: var(--pg92-text); font-size: 1.25rem; margin-bottom: 0.3rem; }
.pg92-testimonial .pg92-author { color: var(--pg92-mint); font-size: 1.1rem; }

/* ===== Payment ===== */
.pg92-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.pg92-pay-item {
  background: #fff; color: var(--pg92-bg); border-radius: 8px; padding: 0.4rem 0.8rem;
  font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 0.3rem;
}

/* ===== Winners ===== */
.pg92-winner-row {
  display: flex; justify-content: space-between; padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(178,223,219,0.2); font-size: 1.2rem;
}
.pg92-winner-name { color: var(--pg92-gold); font-weight: 700; }
.pg92-winner-amount { color: var(--pg92-accent); font-weight: 700; }

/* ===== Footer ===== */
.pg92-footer {
  background: var(--pg92-bg-deep); padding: 1.6rem 1rem 6.5rem; margin-top: 1.4rem;
  border-top: 2px solid var(--pg92-primary);
}
.pg92-footer-brand { color: var(--pg92-text); font-size: 1.3rem; margin-bottom: 0.8rem; line-height: 1.6rem; }
.pg92-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.pg92-footer-links a {
  background: var(--pg92-bg); padding: 0.4rem 0.8rem; border-radius: 6px;
  font-size: 1.15rem; color: var(--pg92-mint);
}
.pg92-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.pg92-footer-promo .pg92-btn { font-size: 1.15rem; padding: 0.5rem 0.9rem; }
.pg92-footer-copy { color: var(--pg92-text-muted); font-size: 1.1rem; margin-top: 0.8rem; text-align: center; }

/* ===== Bottom nav ===== */
.pg92-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; background: var(--pg92-bg-deep);
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
}
.pg92-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; color: var(--pg92-text-muted);
  font-size: 1rem; gap: 0.2rem; transition: color .15s ease, transform .15s ease;
  text-decoration: none; flex: 1;
}
.pg92-bottom-nav a .material-icons, .pg92-bottom-nav a .fas,
.pg92-bottom-nav a .far, .pg92-bottom-nav a .bi, .pg92-bottom-nav a ion-icon { font-size: 24px; }
.pg92-bottom-nav a:active { transform: scale(0.92); }
.pg92-bottom-nav a.pg92-nav-current { color: var(--pg92-gold); }
.pg92-bottom-nav a:hover { color: var(--pg92-gold); }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .pg92-bottom-nav { display: none; }
  body { max-width: 430px; }
}

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

/* ===== Utility ===== */
.pg92-text-link { color: var(--pg92-gold); font-weight: 700; }
.pg92-hidden { display: none; }
