/* ============================================================
 * jollibee.cyou - Core Stylesheet
 * Prefix: pg8d-
 * Palette: #1B263B (deep navy bg) | #DEE2E6 (light text)
 *          #FFB6C1 (soft pink accent) | #DC143C (crimson CTA)
 * Mobile-first, max 430px baseline.
 * ============================================================ */

:root {
  --pg8d-bg: #1B263B;
  --pg8d-bg-2: #243349;
  --pg8d-bg-3: #0f1827;
  --pg8d-text: #DEE2E6;
  --pg8d-accent: #FFB6C1;
  --pg8d-primary: #DC143C;
  --pg8d-primary-dark: #a60f2c;
  --pg8d-gold: #f5c542;
  --pg8d-muted: #9aa6b8;
  --pg8d-border: rgba(255, 182, 193, 0.18);
  --pg8d-radius: 14px;
  --pg8d-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

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

html, body {
  background: var(--pg8d-bg);
  color: var(--pg8d-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--pg8d-accent); text-decoration: none; }
a:hover { color: #fff; }

.pg8d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ============== Header ============== */
.pg8d-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg8d-bg-3) 0%, var(--pg8d-bg) 100%);
  border-bottom: 1px solid var(--pg8d-border);
  box-shadow: var(--pg8d-shadow);
}
.pg8d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pg8d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.3px;
}
.pg8d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg8d-logo span { color: var(--pg8d-accent); }

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

.pg8d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 38px;
}
.pg8d-btn:hover { transform: translateY(-1px); }
.pg8d-btn-primary {
  background: linear-gradient(135deg, var(--pg8d-primary) 0%, var(--pg8d-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 20, 60, 0.4);
}
.pg8d-btn-ghost {
  background: transparent;
  color: var(--pg8d-text);
  border: 1px solid var(--pg8d-border);
}
.pg8d-btn-ghost:hover { background: rgba(255, 182, 193, 0.08); }

.pg8d-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pg8d-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
}
.pg8d-menu-toggle:hover { background: rgba(255, 255, 255, 0.06); }

/* ============== Mobile slide menu ============== */
.pg8d-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pg8d-overlay-show { opacity: 1; pointer-events: auto; }

.pg8d-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--pg8d-bg-2);
  z-index: 9999;
  padding: 70px 18px 30px;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--pg8d-border);
}
.pg8d-menu-open { right: 0; }
.pg8d-mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--pg8d-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}
.pg8d-mobile-menu a:hover { color: var(--pg8d-accent); background: rgba(255, 182, 193, 0.06); }
.pg8d-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============== Main / sections ============== */
main.pg8d-main {
  padding-top: 64px;
  padding-bottom: 96px;
}
.pg8d-section {
  padding: 22px 14px;
}
.pg8d-section h2 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pg8d-section h2 .pg8d-bar {
  width: 5px; height: 22px;
  background: var(--pg8d-primary);
  border-radius: 3px;
  display: inline-block;
}
.pg8d-section h3 {
  font-size: 1.05rem;
  color: var(--pg8d-accent);
  margin: 14px 0 6px;
}
.pg8d-section p {
  color: var(--pg8d-text);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.pg8d-muted { color: var(--pg8d-muted); }

/* ============== Hero carousel ============== */
.pg8d-carousel {
  position: relative;
  border-radius: var(--pg8d-radius);
  overflow: hidden;
  margin: 14px;
  box-shadow: var(--pg8d-shadow);
}
.pg8d-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.pg8d-slide-active { display: block; }
.pg8d-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg8d-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 24, 39, 0.92) 100%);
  color: #fff;
  font-weight: 700;
}
.pg8d-slide-cap small { color: var(--pg8d-accent); display: block; font-weight: 500; }
.pg8d-dots {
  position: absolute;
  bottom: 8px; right: 12px;
  display: flex; gap: 5px;
}
.pg8d-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.pg8d-dot-active { background: var(--pg8d-primary); }

/* ============== CTA banner ============== */
.pg8d-cta {
  background: linear-gradient(135deg, var(--pg8d-primary) 0%, #7a0f24 100%);
  border-radius: var(--pg8d-radius);
  padding: 16px;
  margin: 16px 14px;
  color: #fff;
  text-align: center;
  box-shadow: var(--pg8d-shadow);
}
.pg8d-cta h3 { color: #fff; margin-bottom: 8px; }
.pg8d-cta p { color: rgba(255, 255, 255, 0.92); font-size: 0.9rem; margin-bottom: 12px; }
.pg8d-cta .pg8d-btn { background: #fff; color: var(--pg8d-primary); }

/* ============== Game grid ============== */
.pg8d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg8d-card {
  background: var(--pg8d-bg-2);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--pg8d-border);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.pg8d-card:hover { transform: translateY(-2px); border-color: var(--pg8d-primary); }
.pg8d-card img {
  width: 100%; height: 84px; object-fit: cover;
}
.pg8d-card-name {
  font-size: 0.72rem;
  color: var(--pg8d-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg8d-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pg8d-accent);
  margin-bottom: 6px;
  font-weight: 700;
}

/* ============== Feature / info blocks ============== */
.pg8d-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg8d-info-card {
  background: var(--pg8d-bg-2);
  border: 1px solid var(--pg8d-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.pg8d-info-card .pg8d-ico {
  font-size: 1.6rem;
  color: var(--pg8d-accent);
  margin-bottom: 6px;
}
.pg8d-info-card strong { display: block; color: #fff; margin-bottom: 4px; font-size: 0.95rem; }
.pg8d-info-card span { color: var(--pg8d-muted); font-size: 0.8rem; }

.pg8d-list { list-style: none; padding: 0; }
.pg8d-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--pg8d-text);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.pg8d-list li:before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--pg8d-gold);
  position: absolute;
  left: 0; top: 8px;
  font-size: 0.8rem;
}

/* Inline promo text link */
.pg8d-promo-link {
  color: var(--pg8d-primary);
  font-weight: 700;
  cursor: pointer;
}
.pg8d-promo-link:hover { text-decoration: underline; color: #ff5470; }

/* ============== Footer ============== */
.pg8d-footer {
  background: var(--pg8d-bg-3);
  border-top: 1px solid var(--pg8d-border);
  padding: 24px 14px 30px;
  margin-top: 16px;
}
.pg8d-footer p { font-size: 0.82rem; color: var(--pg8d-muted); margin-bottom: 10px; }
.pg8d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.pg8d-footer-links a {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pg8d-bg-2);
  border: 1px solid var(--pg8d-border);
  color: var(--pg8d-text);
}
.pg8d-footer-links a:hover { color: var(--pg8d-accent); border-color: var(--pg8d-primary); }
.pg8d-copy { font-size: 0.75rem; color: var(--pg8d-muted); margin-top: 12px; text-align: center; }

/* ============== Mobile bottom nav ============== */
.pg8d-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--pg8d-bg-2) 0%, var(--pg8d-bg-3) 100%);
  border-top: 1px solid var(--pg8d-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.pg8d-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg8d-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 0.68rem;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 4px 2px;
  position: relative;
}
.pg8d-bottom-nav-btn .pg8d-nav-ico { font-size: 22px; line-height: 1; }
.pg8d-bottom-nav-btn:hover { color: var(--pg8d-accent); transform: translateY(-1px); }
.pg8d-bottom-nav-btn.pg8d-nav-active { color: var(--pg8d-primary); }
.pg8d-bottom-nav-btn.pg8d-nav-active:after {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--pg8d-primary);
  border-radius: 0 0 4px 4px;
}

/* ============== Desktop ============== */
@media (min-width: 769px) {
  .pg8d-bottom-nav { display: none; }
  main.pg8d-main { padding-bottom: 30px; }
  .pg8d-wrapper { max-width: 760px; }
  .pg8d-header-inner { max-width: 760px; }
  .pg8d-grid { grid-template-columns: repeat(6, 1fr); }
  .pg8d-info-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Promo badge */
.pg8d-badge {
  display: inline-block;
  background: var(--pg8d-primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
