/* phpfamous layout.css
   Mobile-first casino/gaming stylesheet. All custom classes use the g87c- prefix.
   Palette: #000080 navy / #ADD8E6 light blue / #AD1457 magenta / #87CEEB sky / #1A1A2E ink.
   Comments in English per project convention. */

:root {
  --g87c-primary: #000080;
  --g87c-bg: #1A1A2E;
  --g87c-text: #FFFFFF;
  --g87c-light: #ADD8E6;
  --g87c-accent: #AD1457;
  --g87c-sky: #87CEEB;
  --g87c-muted: #B8C0D6;
  --g87c-card: #232342;
  --g87c-card-alt: #2A2A4A;
  --g87c-border: rgba(173, 216, 230, 0.18);
  --g87c-gold: #FFD66B;
  --g87c-success: #2BD673;
  --g87c-header-h: 60px;
  --g87c-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(circle at top, #202046 0%, var(--g87c-bg) 55%, #11112a 100%);
  color: var(--g87c-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.g87c-wrapper {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.g87c-container {
  width: 100%;
  padding: 0 1.2rem;
}

main { padding-bottom: 90px; }

/* ===== Header ===== */
.g87c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--g87c-header-h);
  background: linear-gradient(135deg, var(--g87c-primary), #1b1b6e);
  border-bottom: 2px solid var(--g87c-accent);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.g87c-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
}
.g87c-brand img { width: 30px; height: 30px; border-radius: 6px; }
.g87c-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--g87c-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g87c-brand-name b { color: var(--g87c-gold); }

.g87c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g87c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 38px;
  white-space: nowrap;
}
.g87c-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.g87c-btn:active { transform: scale(0.96); }

.g87c-btn-login {
  background: transparent;
  color: var(--g87c-light);
  border: 1.5px solid var(--g87c-light);
  padding: 0.55rem 1.1rem;
}
.g87c-btn-register {
  background: linear-gradient(135deg, var(--g87c-accent), #d12c6c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(173, 20, 87, 0.5);
}

.g87c-menu-trigger {
  background: transparent;
  border: none;
  color: var(--g87c-light);
  font-size: 2.2rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}
.g87c-menu-trigger.g87c-active { background: rgba(255, 255, 255, 0.12); }

/* ===== Mobile dropdown menu ===== */
.g87c-mobile-menu {
  position: fixed;
  top: var(--g87c-header-h);
  left: 0; right: 0;
  background: var(--g87c-bg);
  border-bottom: 2px solid var(--g87c-accent);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}
.g87c-mobile-menu.g87c-menu-open { max-height: 460px; }
.g87c-mobile-menu .g87c-menu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  color: var(--g87c-text);
  font-size: 1.45rem;
  border-bottom: 1px solid var(--g87c-border);
}
.g87c-mobile-menu .g87c-menu-link:hover { background: var(--g87c-card); color: var(--g87c-sky); }
.g87c-mobile-menu .g87c-menu-link i.material-icons,
.g87c-mobile-menu .g87c-menu-link i.fas { font-size: 1.9rem; color: var(--g87c-sky); }

/* ===== Hero ===== */
.g87c-hero {
  margin-top: var(--g87c-header-h);
  position: relative;
  padding: 1rem 1.2rem 0.5rem;
}
.g87c-hero-track {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.g87c-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.g87c-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.g87c-hero-slide.g87c-active { opacity: 1; }
.g87c-hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.g87c-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer; border: none; padding: 0;
}
.g87c-hero-dot.g87c-active { background: var(--g87c-gold); width: 22px; border-radius: 4px; }

/* ===== Sections ===== */
.g87c-section {
  padding: 1.4rem 1.2rem 0.4rem;
}
.g87c-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g87c-light);
}
.g87c-section-title::before {
  content: "";
  width: 4px; height: 1.8rem;
  background: var(--g87c-accent);
  border-radius: 4px;
}
.g87c-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  color: #fff;
}
.g87c-lead {
  font-size: 1.45rem;
  color: var(--g87c-muted);
  margin: 0 0 1rem;
}

/* ===== Game grid ===== */
.g87c-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.8rem;
}
.g87c-cat-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g87c-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.g87c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.g87c-game-card {
  background: var(--g87c-card);
  border-radius: 12px;
  border: 1px solid var(--g87c-border);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  color: var(--g87c-text);
}
.g87c-game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); border-color: var(--g87c-sky); }
.g87c-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e0e22;
}
.g87c-game-name {
  font-size: 1.15rem;
  padding: 0.4rem 0.3rem 0.6rem;
  line-height: 1.25;
  color: var(--g87c-light);
  font-weight: 600;
}

/* ===== Cards / features ===== */
.g87c-card {
  background: linear-gradient(160deg, var(--g87c-card), var(--g87c-card-alt));
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--g87c-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.g87c-card h2, .g87c-card h3 { margin: 0 0 0.5rem; color: var(--g87c-sky); }
.g87c-card h2 { font-size: 1.7rem; }
.g87c-card h3 { font-size: 1.5rem; }
.g87c-card p { margin: 0 0 0.6rem; color: var(--g87c-muted); font-size: 1.4rem; }

.g87c-feature-list { list-style: none; padding: 0; margin: 0; }
.g87c-feature-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--g87c-border);
  font-size: 1.4rem;
  color: var(--g87c-text);
}
.g87c-feature-list li:last-child { border-bottom: none; }
.g87c-feature-list .material-icons,
.g87c-feature-list .fas,
.g87c-feature-list .bi { color: var(--g87c-gold); font-size: 1.8rem; }

/* ===== Stat / RTP ===== */
.g87c-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.g87c-stat {
  background: rgba(0, 0, 128, 0.25);
  border: 1px solid var(--g87c-border);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}
.g87c-stat-num { font-size: 2rem; font-weight: 800; color: var(--g87c-gold); display: block; }
.g87c-stat-label { font-size: 1.2rem; color: var(--g87c-muted); }

.g87c-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden; margin-top: 0.4rem;
}
.g87c-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--g87c-sky), var(--g87c-success));
}

/* ===== CTA ===== */
.g87c-cta {
  background: linear-gradient(135deg, var(--g87c-accent), var(--g87c-primary));
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  margin: 1rem 0;
  border: 1px solid var(--g87c-gold);
}
.g87c-cta h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.7rem; }
.g87c-cta p { margin: 0 0 1rem; color: var(--g87c-light); font-size: 1.4rem; }
.g87c-btn-cta {
  background: var(--g87c-gold);
  color: var(--g87c-primary);
  font-weight: 800;
  padding: 0.9rem 2rem;
  font-size: 1.5rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 214, 107, 0.4);
}

/* Inline promo text link */
.g87c-link-inline {
  color: var(--g87c-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Testimonials */
.g87c-testi {
  background: var(--g87c-card);
  border-left: 3px solid var(--g87c-sky);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.g87c-testi p { margin: 0 0 0.4rem; font-size: 1.35rem; color: var(--g87c-text); font-style: italic; }
.g87c-testi .g87c-author { font-size: 1.2rem; color: var(--g87c-sky); font-weight: 700; }

/* Payment chips */
.g87c-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g87c-chip {
  background: var(--g87c-card);
  border: 1px solid var(--g87c-border);
  color: var(--g87c-light);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Winners */
.g87c-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--g87c-card); border-radius: 10px;
  padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; font-size: 1.3rem;
}
.g87c-winner .g87c-amt { color: var(--g87c-gold); font-weight: 800; }

/* FAQ */
.g87c-faq-item {
  background: var(--g87c-card);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--g87c-border);
}
.g87c-faq-item h3 { margin: 0 0 0.3rem; color: var(--g87c-sky); font-size: 1.4rem; }
.g87c-faq-item p { margin: 0; font-size: 1.35rem; color: var(--g87c-muted); }

/* ===== Footer ===== */
.g87c-footer {
  background: #11112a;
  border-top: 2px solid var(--g87c-accent);
  padding: 1.4rem 1.2rem 2rem;
  margin-top: 1rem;
}
.g87c-footer p { font-size: 1.3rem; color: var(--g87c-muted); margin: 0 0 0.8rem; }
.g87c-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem;
  margin: 0.6rem 0 1rem;
}
.g87c-footer-links a {
  font-size: 1.25rem;
  color: var(--g87c-light);
  text-decoration: underline;
}
.g87c-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem;
}
.g87c-footer-copy { font-size: 1.15rem; color: #6f78a0; text-align: center; margin-top: 0.6rem; }

/* ===== Bottom nav ===== */
.g87c-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g87c-bottomnav-h);
  background: linear-gradient(180deg, #1b1b44, #11112a);
  border-top: 2px solid var(--g87c-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}
.g87c-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g87c-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.g87c-bottom-nav-btn i { font-size: 22px; }
.g87c-bottom-nav-btn:active { transform: scale(0.92); }
.g87c-bottom-nav-btn.g87c-current { color: var(--g87c-gold); }
.g87c-bottom-nav-btn.g87c-promo { color: var(--g87c-sky); }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body { max-width: 760px; }
  .g87c-header, .g87c-mobile-menu, .g87c-bottom-nav { max-width: 760px; }
  .g87c-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .g87c-grid { grid-template-columns: repeat(6, 1fr); }
  .g87c-stat-row { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.g87c-text-accent { color: var(--g87c-accent); }
.g87c-text-gold { color: var(--g87c-gold); }
.g87c-mt { margin-top: 1rem; }
.g87c-center { text-align: center; }
