/* ============================================================
 * BL777 core stylesheet - layout-1e18.css
 * All custom classes use the "pg1e-" prefix
 * Comments in English only
 * Color palette: #5F9EA0 | #6C757D | #F0FDFF | #E8F5E8 | #26A69A | #0F0F23
 * ============================================================ */

:root {
  --pg1e-primary: #26A69A;
  --pg1e-secondary: #5F9EA0;
  --pg1e-muted: #6C757D;
  --pg1e-bg: #0F0F23;
  --pg1e-bg-alt: #15153a;
  --pg1e-card: #1c1c4a;
  --pg1e-text: #F0FDFF;
  --pg1e-text-soft: #E8F5E8;
  --pg1e-accent: #26A69A;
  --pg1e-gold: #f5c451;
  --pg1e-radius: 1.2rem;
  --pg1e-radius-sm: 0.8rem;
  --pg1e-header-h: 6rem;
  --pg1e-bnav-h: 6.2rem;
}

/* Root font: 62.5% => 1rem = 10px */
html { font-size: 62.5%; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--pg1e-bg);
  color: var(--pg1e-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------------- Header ---------------- */
.pg1e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0F0F23 0%, #15153a 100%);
  border-bottom: 2px solid var(--pg1e-primary);
  height: var(--pg1e-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}
.pg1e-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--pg1e-text);
  font-weight: 800;
  font-size: 2rem;
}
.pg1e-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.pg1e-logo .pg1e-logo-name { background: linear-gradient(90deg, #26A69A, #5F9EA0); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pg1e-header-actions { display: flex; align-items: center; gap: 0.8rem; }
.pg1e-btn {
  border: none;
  border-radius: var(--pg1e-radius-sm);
  padding: 0.9rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pg1e-btn:active { transform: scale(0.96); }
.pg1e-btn-login { background: transparent; color: var(--pg1e-text); border: 1px solid var(--pg1e-secondary); }
.pg1e-btn-register { background: linear-gradient(135deg, #26A69A, #5F9EA0); color: #0F0F23; box-shadow: 0 4px 12px rgba(38,166,154,.4); }
.pg1e-btn-promo { background: linear-gradient(135deg, #f5c451, #26A69A); color: #0F0F23; }

.pg1e-menu-btn {
  background: transparent;
  border: 1px solid var(--pg1e-secondary);
  color: var(--pg1e-text);
  width: 4rem; height: 4rem;
  border-radius: 0.8rem;
  font-size: 2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- Mobile menu ---------------- */
.pg1e-mobile-menu {
  position: fixed;
  top: var(--pg1e-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg1e-bg-alt);
  border-bottom: 2px solid var(--pg1e-primary);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.pg1e-mobile-menu.pg1e-menu-open { max-height: 60rem; }
.pg1e-mobile-menu ul { list-style: none; padding: 1rem 1.2rem; }
.pg1e-mobile-menu li { border-bottom: 1px solid rgba(95,158,160,.2); }
.pg1e-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0.8rem;
  color: var(--pg1e-text);
  font-size: 1.5rem;
  font-weight: 600;
}
.pg1e-mobile-menu a i { color: var(--pg1e-primary); font-size: 2rem; width: 2.4rem; text-align: center; }

/* ---------------- Layout ---------------- */
.pg1e-wrapper {
  padding-top: calc(var(--pg1e-header-h) + 1rem);
  min-height: 100vh;
}
main.pg1e-main { padding: 1rem 1.2rem; }

/* ---------------- Carousel ---------------- */
.pg1e-carousel {
  position: relative;
  border-radius: var(--pg1e-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.pg1e-slides { position: relative; height: 18rem; }
.pg1e-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.pg1e-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg1e-slide.pg1e-slide-active { opacity: 1; }
.pg1e-slide-cap {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(15,15,35,.6);
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1.6rem; font-weight: 700;
  color: var(--pg1e-text);
}
.pg1e-dots {
  position: absolute; bottom: 1rem; right: 1rem;
  display: flex; gap: 0.5rem;
}
.pg1e-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: rgba(240,253,255,.4); cursor: pointer;
}
.pg1e-dot.pg1e-dot-active { background: var(--pg1e-primary); }

/* ---------------- Headings ---------------- */
.pg1e-section { margin-bottom: 2.5rem; }
.pg1e-h1 {
  font-size: 2.4rem; font-weight: 800;
  line-height: 1.3; margin-bottom: 1rem;
  background: linear-gradient(90deg, #26A69A, #F0FDFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg1e-h2 {
  font-size: 2rem; font-weight: 700;
  margin-bottom: 1rem; color: var(--pg1e-text);
  border-left: 4px solid var(--pg1e-primary);
  padding-left: 1rem;
}
.pg1e-h3 { font-size: 1.7rem; font-weight: 700; margin: 1.2rem 0 0.8rem; color: var(--pg1e-primary); }
.pg1e-lead { font-size: 1.5rem; color: var(--pg1e-text-soft); margin-bottom: 1.2rem; }

/* ---------------- Category tabs ---------------- */
.pg1e-cat-tabs {
  display: flex; gap: 0.8rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.pg1e-cat-tabs::-webkit-scrollbar { display: none; }
.pg1e-cat-tab {
  flex: 0 0 auto;
  padding: 0.8rem 1.4rem;
  border-radius: 2rem;
  background: var(--pg1e-card);
  color: var(--pg1e-text-soft);
  font-size: 1.3rem; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.pg1e-cat-tab.pg1e-cat-tab-active {
  background: linear-gradient(135deg, #26A69A, #5F9EA0);
  color: #0F0F23;
}

/* ---------------- Game grid ---------------- */
.pg1e-game-section h3 {
  font-size: 1.7rem; color: var(--pg1e-primary);
  margin: 1.5rem 0 1rem; font-weight: 700;
}
.pg1e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.pg1e-game-card {
  background: var(--pg1e-card);
  border-radius: var(--pg1e-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(95,158,160,.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pg1e-game-card:active { transform: scale(0.96); box-shadow: 0 6px 16px rgba(38,166,154,.4); }
.pg1e-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pg1e-game-card .pg1e-game-name {
  font-size: 1.15rem; font-weight: 600;
  color: var(--pg1e-text);
  padding: 0.6rem 0.4rem;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- Cards / info blocks ---------------- */
.pg1e-card {
  background: var(--pg1e-card);
  border-radius: var(--pg1e-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(95,158,160,.2);
}
.pg1e-card p { font-size: 1.4rem; color: var(--pg1e-text-soft); margin-bottom: 0.8rem; }
.pg1e-card p:last-child { margin-bottom: 0; }

.pg1e-features {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0.8rem;
}
.pg1e-feature {
  background: var(--pg1e-bg-alt);
  border-radius: var(--pg1e-radius-sm);
  padding: 1.2rem;
  text-align: center;
}
.pg1e-feature i { font-size: 2.6rem; color: var(--pg1e-primary); margin-bottom: 0.6rem; }
.pg1e-feature .pg1e-feature-title { font-size: 1.3rem; font-weight: 700; color: var(--pg1e-text); }
.pg1e-feature .pg1e-feature-desc { font-size: 1.15rem; color: var(--pg1e-text-soft); margin-top: 0.3rem; }

/* ---------------- Promo link inline ---------------- */
.pg1e-promo-link {
  font-weight: 800;
  color: var(--pg1e-gold);
  cursor: pointer;
  border-bottom: 2px dashed var(--pg1e-gold);
}
.pg1e-promo-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #f5c451, #26A69A);
  color: #0F0F23; font-weight: 800;
  padding: 1rem 2rem; border-radius: 2rem;
  font-size: 1.5rem; border: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(245,196,81,.35);
  margin: 1rem 0;
}

/* ---------------- Testimonials ---------------- */
.pg1e-testimonials { display: grid; gap: 1rem; }
.pg1e-testimonial {
  background: var(--pg1e-bg-alt);
  border-radius: var(--pg1e-radius-sm);
  padding: 1.2rem;
  border-left: 3px solid var(--pg1e-primary);
}
.pg1e-testimonial .pg1e-t-author { font-size: 1.3rem; font-weight: 700; color: var(--pg1e-primary); margin-bottom: 0.4rem; }
.pg1e-testimonial .pg1e-t-text { font-size: 1.35rem; color: var(--pg1e-text-soft); }

/* ---------------- Winners ---------------- */
.pg1e-winners { display: grid; gap: 0.6rem; }
.pg1e-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--pg1e-bg-alt);
  padding: 0.8rem 1.2rem;
  border-radius: var(--pg1e-radius-sm);
  font-size: 1.3rem;
}
.pg1e-winner .pg1e-w-name { color: var(--pg1e-text); font-weight: 600; }
.pg1e-winner .pg1e-w-amount { color: var(--pg1e-gold); font-weight: 800; }

/* ---------------- Payment methods ---------------- */
.pg1e-payments { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pg1e-payment {
  background: var(--pg1e-bg-alt);
  padding: 1rem 1.4rem;
  border-radius: var(--pg1e-radius-sm);
  font-size: 1.3rem; color: var(--pg1e-text-soft);
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(95,158,160,.2);
}

/* ---------------- Footer ---------------- */
.pg1e-footer {
  background: var(--pg1e-bg-alt);
  border-top: 2px solid var(--pg1e-primary);
  padding: 2rem 1.2rem 9rem;
  margin-top: 2rem;
}
.pg1e-footer-brand { font-size: 1.4rem; color: var(--pg1e-text-soft); margin-bottom: 1.5rem; line-height: 1.6; }
.pg1e-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; margin-bottom: 1.5rem; }
.pg1e-footer-links a { color: var(--pg1e-text-soft); font-size: 1.3rem; text-decoration: underline; }
.pg1e-footer-promos { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.pg1e-footer-copy { font-size: 1.2rem; color: var(--pg1e-muted); border-top: 1px solid rgba(95,158,160,.2); padding-top: 1rem; }

/* ---------------- Bottom navigation ---------------- */
.pg1e-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg1e-bnav-h);
  background: linear-gradient(180deg, #15153a 0%, #0F0F23 100%);
  border-top: 2px solid var(--pg1e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pg1e-bnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--pg1e-text-soft);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem;
  min-width: 60px; min-height: 60px;
  cursor: pointer;
  font-size: 1.1rem; font-weight: 600;
  transition: transform .15s ease, color .15s ease;
}
.pg1e-bnav-btn i { font-size: 2.4rem; }
.pg1e-bnav-btn:active { transform: scale(0.92); }
.pg1e-bnav-btn.pg1e-bnav-active { color: var(--pg1e-primary); }
.pg1e-bnav-btn.pg1e-bnav-active i { color: var(--pg1e-gold); }

/* ---------------- Desktop adjustments ---------------- */
@media (min-width: 769px) {
  .pg1e-bnav { display: none; }
  .pg1e-menu-btn { display: none; }
  body { max-width: 768px; }
  .pg1e-grid { grid-template-columns: repeat(5, 1fr); }
  .pg1e-features { grid-template-columns: repeat(4, 1fr); }
  .pg1e-footer { padding-bottom: 2rem; }
}

/* Mobile bottom padding so content is not hidden behind bottom nav */
@media (max-width: 768px) {
  main.pg1e-main { padding-bottom: calc(var(--pg1e-bnav-h) + 1.5rem); }
}
