/* ============================================================
 * jiljil.homes - design.css
 * Shared stylesheet (basefiles scope)
 * All custom classes use prefix: g31e-
 * Comments in English only.
 * Palette: #FFE4B5 | #1E1E1E | #F0FDFF | #004D40 | #E9ECEF | #B2DFDB
 * Dark colors = backgrounds, light colors = text.
 * Mobile-first, max-width 430px.
 * ============================================================ */

:root {
  --g31e-primary: #004D40;
  --g31e-accent: #FFE4B5;
  --g31e-bg-dark: #1E1E1E;
  --g31e-bg-soft: #00352e;
  --g31e-bg-card: #2a3a37;
  --g31e-text-light: #F0FDFF;
  --g31e-text-mute: #B2DFDB;
  --g31e-divider: #E9ECEF;
  --g31e-gold: #FFE4B5;
  --g31e-gold-deep: #e8c98a;
  --g31e-success: #B2DFDB;
  --g31e-danger: #d96a5b;
  --g31e-header-h: 56px;
  --g31e-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--g31e-bg-dark);
  color: var(--g31e-text-light);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--g31e-gold); text-decoration: none; }
a:hover { color: var(--g31e-gold-deep); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.4rem; color: var(--g31e-text-light); margin: 0 0 .8rem; }

/* ---------- Layout primitives ---------- */
.g31e-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #12302b 0%, #1E1E1E 60%, #2a3a37 100%);
}

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

.g31e-section {
  padding: 20px 14px 8px;
}

.g31e-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--g31e-gold);
  letter-spacing: .3px;
}

.g31e-section-sub {
  font-size: 1.25rem;
  color: var(--g31e-text-mute);
  margin-bottom: 14px;
}

.g31e-divider {
  height: 1px;
  background: rgba(178, 223, 219, .18);
  margin: 12px 0;
}

/* ---------- Header ---------- */
.g31e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g31e-header-h);
  z-index: 1000;
  background: linear-gradient(90deg, #00352e 0%, #004D40 100%);
  border-bottom: 1px solid rgba(255, 228, 181, .25);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.g31e-header-inner {
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.g31e-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--g31e-gold);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .5px;
}

.g31e-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}

.g31e-logo .g31e-logo-text {
  color: var(--g31e-gold);
  font-size: 1.55rem;
}
.g31e-logo .g31e-logo-text span { color: var(--g31e-text-light); }

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

.g31e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 22px;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  line-height: 1;
}

.g31e-btn-primary {
  background: linear-gradient(135deg, #FFE4B5 0%, #e8c98a 100%);
  color: #1E1E1E;
  box-shadow: 0 3px 10px rgba(255,228,181,.35);
}

.g31e-btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fff0cf 0%, #f0d59a 100%);
}

.g31e-btn-ghost {
  background: transparent;
  color: var(--g31e-text-light);
  border: 1px solid rgba(178,223,219,.55);
}

.g31e-btn-ghost:hover {
  background: rgba(178,223,219,.12);
  color: var(--g31e-gold);
}

.g31e-menu-btn {
  background: transparent;
  border: none;
  color: var(--g31e-gold);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

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

.g31e-mobile-menu {
  position: fixed;
  top: 0; right: -78%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #00352e 0%, #1E1E1E 100%);
  z-index: 9999;
  transition: right .28s ease;
  padding: 18px 16px;
  overflow-y: auto;
}

.g31e-mobile-menu.g31e-menu-open { right: 0; }

.g31e-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(178,223,219,.2);
}

.g31e-menu-head .g31e-logo-text { font-size: 1.5rem; color: var(--g31e-gold); font-weight: 800; }

.g31e-menu-close {
  background: transparent;
  border: none;
  color: var(--g31e-text-light);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.g31e-menu-nav { list-style: none; margin: 0; padding: 0; }
.g31e-menu-nav li {
  border-bottom: 1px solid rgba(178,223,219,.12);
}
.g31e-menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  color: var(--g31e-text-light);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}
.g31e-menu-nav a:hover { color: var(--g31e-gold); }
.g31e-menu-nav a i { color: var(--g31e-gold); width: 22px; text-align: center; }

.g31e-menu-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Carousel ---------- */
.g31e-carousel {
  position: relative;
  margin: 64px 0 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0;
}

.g31e-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.g31e-slide.g31e-slide-active { opacity: 1; }

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

.g31e-slide-caption {
  position: absolute;
  left: 14px; bottom: 12px;
  background: rgba(0,53,46,.78);
  color: var(--g31e-gold);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.g31e-carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  text-align: center;
}
.g31e-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 3px;
  border-radius: 50%;
  background: rgba(240,253,255,.5);
  cursor: pointer;
}
.g31e-dot.g31e-dot-active { background: var(--g31e-gold); width: 16px; border-radius: 4px; }

/* ---------- Promo banner ---------- */
.g31e-promo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,228,181,.18), rgba(0,77,64,.55));
  border: 1px solid rgba(255,228,181,.35);
}
.g31e-promo-bar .g31e-promo-text {
  font-size: 1.3rem;
  color: var(--g31e-gold);
  font-weight: 700;
}
.g31e-promo-bar .g31e-promo-text small {
  display: block;
  color: var(--g31e-text-mute);
  font-weight: 500;
  font-size: 1.1rem;
}

/* ---------- Filter tabs ---------- */
.g31e-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.g31e-filter-row::-webkit-scrollbar { display: none; }

.g31e-filter-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--g31e-text-light);
  background: rgba(178,223,219,.1);
  border: 1px solid rgba(178,223,219,.25);
  cursor: pointer;
  white-space: nowrap;
}
.g31e-filter-tab.g31e-filter-active {
  background: linear-gradient(135deg, #FFE4B5, #e8c98a);
  color: #1E1E1E;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.g31e-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 10px;
}

.g31e-game-card {
  background: var(--g31e-bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(178,223,219,.12);
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  animation: g31e-fade .3s ease;
}
.g31e-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  border-color: rgba(255,228,181,.45);
}
.g31e-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #12302b;
}
.g31e-game-name {
  font-size: 1.05rem;
  color: var(--g31e-text-light);
  padding: 5px 4px 6px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes g31e-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Category heading ---------- */
.g31e-cat-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
}
.g31e-cat-heading h2 {
  font-size: 1.6rem;
  color: var(--g31e-gold);
  margin: 0;
}
.g31e-cat-heading .g31e-cat-icon {
  color: var(--g31e-gold);
  font-size: 1.8rem;
}
.g31e-cat-heading .g31e-cat-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,228,181,.5), transparent);
  border-radius: 2px;
}

/* ---------- Feature cards ---------- */
.g31e-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g31e-feature-card {
  background: rgba(0,53,46,.55);
  border: 1px solid rgba(178,223,219,.18);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}
.g31e-feature-card .g31e-feature-icon {
  font-size: 2.4rem;
  color: var(--g31e-gold);
  margin-bottom: 6px;
}
.g31e-feature-card h3 {
  font-size: 1.35rem;
  color: var(--g31e-text-light);
  margin-bottom: 4px;
}
.g31e-feature-card p {
  font-size: 1.1rem;
  color: var(--g31e-text-mute);
  margin: 0;
  line-height: 1.4rem;
}

/* ---------- RTP / stats compact ---------- */
.g31e-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.g31e-stat-box {
  background: var(--g31e-bg-card);
  border: 1px solid rgba(178,223,219,.15);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.g31e-stat-box .g31e-stat-num {
  font-size: 1.7rem;
  color: var(--g31e-gold);
  font-weight: 800;
}
.g31e-stat-box .g31e-stat-label {
  font-size: 1.05rem;
  color: var(--g31e-text-mute);
}

/* ---------- Testimonials ---------- */
.g31e-testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.g31e-testi-card {
  background: rgba(0,53,46,.5);
  border-left: 3px solid var(--g31e-gold);
  border-radius: 10px;
  padding: 12px 14px;
}
.g31e-testi-card p {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--g31e-text-light);
  line-height: 1.45rem;
}
.g31e-testi-card .g31e-testi-author {
  font-size: 1.1rem;
  color: var(--g31e-gold);
  font-weight: 700;
}

/* ---------- Winners ---------- */
.g31e-winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g31e-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--g31e-bg-card);
  border-radius: 10px;
  font-size: 1.15rem;
}
.g31e-winner-item .g31e-winner-name { color: var(--g31e-text-light); font-weight: 600; }
.g31e-winner-item .g31e-winner-amount { color: var(--g31e-gold); font-weight: 800; }
.g31e-winner-item .g31e-winner-game { color: var(--g31e-text-mute); font-size: 1.05rem; }

/* ---------- Payment methods ---------- */
.g31e-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.g31e-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(178,223,219,.1);
  border: 1px solid rgba(178,223,219,.25);
  color: var(--g31e-text-light);
  font-size: 1.1rem;
  font-weight: 600;
}
.g31e-pay-chip i { color: var(--g31e-gold); }

/* ---------- App CTA ---------- */
.g31e-app-cta {
  margin: 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,228,181,.2), rgba(0,77,64,.6));
  border: 1px solid rgba(255,228,181,.35);
  text-align: center;
}
.g31e-app-cta h3 { color: var(--g31e-gold); font-size: 1.6rem; margin-bottom: 6px; }
.g31e-app-cta p { color: var(--g31e-text-light); font-size: 1.2rem; margin: 0 0 12px; }

/* ---------- FAQ ---------- */
.g31e-faq-item {
  background: var(--g31e-bg-card);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(178,223,219,.12);
}
.g31e-faq-item h3 {
  font-size: 1.3rem;
  color: var(--g31e-gold);
  margin-bottom: 4px;
}
.g31e-faq-item p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--g31e-text-light);
  line-height: 1.45rem;
}

/* ---------- SEO text block ---------- */
.g31e-seo-text {
  font-size: 1.2rem;
  color: var(--g31e-text-light);
  line-height: 1.6rem;
}
.g31e-seo-text h2 { color: var(--g31e-gold); font-size: 1.6rem; margin: 14px 0 6px; }
.g31e-seo-text h3 { color: var(--g31e-text-light); font-size: 1.35rem; margin: 10px 0 4px; }
.g31e-seo-text p { margin: 0 0 8px; }
.g31e-seo-text a { color: var(--g31e-gold); text-decoration: underline; }

/* ---------- Footer ---------- */
.g31e-footer {
  background: #0c1f1c;
  border-top: 1px solid rgba(255,228,181,.2);
  padding: 18px 14px 90px;
  color: var(--g31e-text-mute);
  font-size: 1.15rem;
}
.g31e-footer h4 {
  color: var(--g31e-gold);
  font-size: 1.35rem;
  margin: 12px 0 6px;
}
.g31e-footer .g31e-footer-brand {
  color: var(--g31e-gold);
  font-weight: 800;
  font-size: 1.5rem;
}
.g31e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0;
}
.g31e-footer-links a {
  color: var(--g31e-text-mute);
  font-size: 1.1rem;
  text-decoration: none;
}
.g31e-footer-links a:hover { color: var(--g31e-gold); }
.g31e-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.g31e-footer-copy {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(178,223,219,.15);
  font-size: 1.05rem;
  color: var(--g31e-text-mute);
}

/* ---------- Bottom nav ---------- */
.g31e-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--g31e-bottom-h);
  z-index: 1000;
  background: linear-gradient(180deg, #00352e 0%, #0c1f1c 100%);
  border-top: 1px solid rgba(255,228,181,.3);
  box-shadow: 0 -3px 12px rgba(0,0,0,.4);
}

.g31e-bottom-nav-inner {
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.g31e-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--g31e-text-mute);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
  padding: 4px 2px;
}
.g31e-bottom-nav-btn i,
.g31e-bottom-nav-btn .material-icons-outlined,
.g31e-bottom-nav-btn .ion {
  font-size: 22px;
}
.g31e-bottom-nav-btn:hover {
  color: var(--g31e-gold);
  transform: translateY(-1px);
}
.g31e-bottom-nav-btn.g31e-nav-current {
  color: var(--g31e-gold);
}
.g31e-bottom-nav-btn.g31e-nav-current::after {
  content: "";
  display: block;
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--g31e-gold);
  margin-top: 2px;
}

/* ---------- Spacers ---------- */
.g31e-pad-top { padding-top: 64px; }
main { display: block; }

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .g31e-bottom-nav { display: none; }
  .g31e-wrapper { max-width: 430px; }
  .g31e-footer { padding-bottom: 28px; }
}

/* Mobile clearance for bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .g31e-footer { padding-bottom: 90px; }
}
