/* css/layout-5cca.css - Shared layout for hbaji.homes
   All custom classes use the pg5c- prefix to avoid collisions.
   Mobile-first: max-width 430px, dark palette per prompt. */

:root {
  --pg5c-primary: #FF7F50;
  --pg5c-accent: #FFB48A;
  --pg5c-bg: #0F0F23;
  --pg5c-bg-2: #36454F;
  --pg5c-bg-3: #2F2F2F;
  --pg5c-text: #FFFFFF;
  --pg5c-text-muted: #C8D0D8;
  --pg5c-border: rgba(255, 127, 80, 0.25);
  --pg5c-radius: 1.2rem;
  --pg5c-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, var(--pg5c-bg) 0%, var(--pg5c-bg-3) 100%);
  color: var(--pg5c-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.pg5c-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--pg5c-bg);
  min-height: 100vh;
}

/* ===== Header ===== */
.pg5c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 0.1rem solid var(--pg5c-border);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.pg5c-brand {
  display: flex; align-items: center; gap: 0.6rem;
  min-width: 0;
}
.pg5c-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.pg5c-brand span {
  font-size: 1.7rem; font-weight: 800; color: var(--pg5c-primary);
  white-space: nowrap; letter-spacing: 0.02em;
}

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

.pg5c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.3rem;
  padding: 0.7rem 1.2rem; border-radius: 2rem;
  min-height: 3.4rem; min-width: 4.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pg5c-btn:active { transform: scale(0.96); }
.pg5c-btn-primary {
  background: linear-gradient(135deg, var(--pg5c-primary), #FF5722);
  color: #fff; box-shadow: 0 0.3rem 0.8rem rgba(255,127,80,0.45);
}
.pg5c-btn-ghost {
  background: transparent; color: var(--pg5c-primary);
  border: 0.15rem solid var(--pg5c-primary);
}
.pg5c-menu-btn {
  background: transparent; border: none; color: var(--pg5c-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem; min-width: 3rem;
}

/* ===== Mobile menu (expandable) ===== */
.pg5c-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: var(--pg5c-bg-3);
  border-bottom: 0.2rem solid var(--pg5c-primary);
  z-index: 9999;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.pg5c-mobile-menu.pg5c-menu-open { max-height: 60rem; }
.pg5c-mobile-menu ul { list-style: none; padding: 0.5rem 1rem 1rem; }
.pg5c-mobile-menu li a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 0.6rem; color: var(--pg5c-text);
  border-bottom: 0.1rem solid rgba(255,255,255,0.06);
  font-size: 1.5rem;
}
.pg5c-mobile-menu li a i { color: var(--pg5c-primary); width: 2.2rem; text-align: center; }
.pg5c-mobile-menu li a:active { background: rgba(255,127,80,0.12); }

/* ===== Main content ===== */
.pg5c-main {
  padding-top: 5.6rem;
}
@media (max-width: 768px) {
  .pg5c-main { padding-bottom: 8rem; }
}

.pg5c-container { padding: 1.2rem 1rem; }

/* ===== Hero slider ===== */
.pg5c-hero {
  position: relative; margin: 1rem; border-radius: var(--pg5c-radius);
  overflow: hidden; box-shadow: var(--pg5c-shadow);
  aspect-ratio: 16/9;
}
.pg5c-slides { position: relative; width: 100%; height: 100%; }
.pg5c-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.pg5c-slide.pg5c-slide-active { opacity: 1; }
.pg5c-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg5c-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(15,15,35,0.6); padding: 0.6rem 1rem; border-radius: 1rem;
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.pg5c-dots {
  position: absolute; bottom: 0.8rem; right: 1rem;
  display: flex; gap: 0.5rem;
}
.pg5c-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none;
}
.pg5c-dot.pg5c-dot-active { background: var(--pg5c-primary); }

/* ===== Section titles ===== */
.pg5c-section { margin: 2rem 0 1rem; padding: 0 1rem; }
.pg5c-section-title {
  font-size: 2rem; font-weight: 800; color: var(--pg5c-primary);
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem;
}
.pg5c-section-title i { font-size: 2.2rem; }
.pg5c-section-sub {
  font-size: 1.4rem; color: var(--pg5c-text-muted); margin-bottom: 1rem;
}

/* ===== H1 ===== */
.pg5c-h1 {
  font-size: 2.4rem; font-weight: 800; line-height: 1.4;
  color: var(--pg5c-text); margin: 1.4rem 0 0.8rem; padding: 0 1rem;
}
.pg5c-h1 .pg5c-h1-accent { color: var(--pg5c-primary); }

/* ===== Category label ===== */
.pg5c-cat-label {
  font-size: 1.6rem; font-weight: 700; color: var(--pg5c-accent);
  margin: 1.8rem 0 0.8rem; padding: 0 1rem;
  border-left: 0.3rem solid var(--pg5c-primary); padding-left: 0.8rem;
}

/* ===== Game grid ===== */
.pg5c-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem; padding: 0.5rem 1rem;
}
.pg5c-game-card {
  background: var(--pg5c-bg-3); border-radius: 1rem;
  overflow: hidden; cursor: pointer; position: relative;
  border: 0.1rem solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pg5c-game-card:active { transform: scale(0.95); border-color: var(--pg5c-primary); }
.pg5c-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pg5c-game-name {
  font-size: 1.1rem; padding: 0.4rem 0.3rem 0.6rem;
  text-align: center; color: var(--pg5c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2rem;
}
.pg5c-game-badge {
  position: absolute; top: 0.3rem; left: 0.3rem;
  background: var(--pg5c-primary); color: #fff;
  font-size: 0.9rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 0.6rem;
}

/* ===== Promo link (inline text) ===== */
.pg5c-link {
  color: var(--pg5c-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline;
}
.pg5c-link:hover { color: var(--pg5c-accent); }

/* ===== Info / feature blocks ===== */
.pg5c-card {
  background: var(--pg5c-bg-2); border-radius: var(--pg5c-radius);
  padding: 1.2rem; margin: 1rem; box-shadow: var(--pg5c-shadow);
}
.pg5c-card h2 { font-size: 1.8rem; color: var(--pg5c-primary); margin-bottom: 0.8rem; }
.pg5c-card h3 { font-size: 1.5rem; color: var(--pg5c-accent); margin: 1rem 0 0.5rem; }
.pg5c-card p { color: var(--pg5c-text-muted); margin-bottom: 0.8rem; font-size: 1.35rem; line-height: 1.6rem; }

.pg5c-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.8rem; padding: 0 1rem; }
.pg5c-feature-item {
  background: var(--pg5c-bg-3); border-radius: 1rem; padding: 1rem;
  text-align: center; border: 0.1rem solid var(--pg5c-border);
}
.pg5c-feature-item i { font-size: 2.4rem; color: var(--pg5c-primary); }
.pg5c-feature-item b { display: block; font-size: 1.3rem; margin-top: 0.4rem; color: #fff; }
.pg5c-feature-item span { font-size: 1.1rem; color: var(--pg5c-text-muted); }

/* ===== RTP compact table ===== */
.pg5c-rtp { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 1.25rem; }
.pg5c-rtp th, .pg5c-rtp td { padding: 0.6rem; text-align: left; border-bottom: 0.1rem solid rgba(255,255,255,0.08); }
.pg5c-rtp th { color: var(--pg5c-primary); }
.pg5c-rtp td:last-child { color: var(--pg5c-accent); font-weight: 700; }

/* ===== Testimonials ===== */
.pg5c-testi { display: grid; grid-template-columns: 1fr; gap: 0.8rem; padding: 0 1rem; }
.pg5c-testi-item {
  background: var(--pg5c-bg-3); border-left: 0.3rem solid var(--pg5c-primary);
  border-radius: 0.8rem; padding: 1rem;
}
.pg5c-testi-item b { color: var(--pg5c-primary); font-size: 1.3rem; }
.pg5c-testi-item p { color: var(--pg5c-text-muted); font-size: 1.25rem; margin-top: 0.3rem; }

/* ===== Payment ===== */
.pg5c-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1rem; }
.pg5c-pay span {
  background: var(--pg5c-bg-3); border: 0.1rem solid var(--pg5c-border);
  border-radius: 0.8rem; padding: 0.6rem 1rem; font-size: 1.2rem; color: #fff;
  display: flex; align-items: center; gap: 0.4rem;
}

/* ===== Winners ===== */
.pg5c-winners { padding: 0 1rem; }
.pg5c-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--pg5c-bg-3); border-radius: 0.8rem; padding: 0.8rem 1rem;
  margin-bottom: 0.6rem; font-size: 1.25rem;
}
.pg5c-winner b { color: var(--pg5c-primary); }

/* ===== CTA banner ===== */
.pg5c-cta {
  margin: 1.5rem 1rem; padding: 1.4rem; text-align: center;
  background: linear-gradient(135deg, var(--pg5c-primary), #FF5722);
  border-radius: var(--pg5c-radius); color: #fff;
}
.pg5c-cta h2 { color: #fff; font-size: 1.9rem; margin-bottom: 0.5rem; }
.pg5c-cta p { color: rgba(255,255,255,0.92); font-size: 1.3rem; margin-bottom: 1rem; }
.pg5c-cta .pg5c-btn { background: #fff; color: var(--pg5c-primary); }

/* ===== Footer ===== */
.pg5c-footer {
  background: var(--pg5c-bg-3); padding: 2rem 1rem 1rem; margin-top: 2rem;
  border-top: 0.2rem solid var(--pg5c-primary);
}
.pg5c-footer p { color: var(--pg5c-text-muted); font-size: 1.25rem; margin-bottom: 0.8rem; line-height: 1.6rem; }
.pg5c-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.8rem 0; }
.pg5c-footer-links a { color: var(--pg5c-accent); font-size: 1.2rem; }
.pg5c-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0;
}
.pg5c-footer-promo button {
  background: var(--pg5c-primary); color: #fff; border: none;
  padding: 0.6rem 1.1rem; border-radius: 2rem; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; min-height: 3rem;
}
.pg5c-copy { color: var(--pg5c-text-muted); font-size: 1.1rem; margin-top: 1rem; text-align: center; }

/* ===== Mobile bottom nav ===== */
.pg5c-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: 6rem; background: rgba(15,15,35,0.98);
  border-top: 0.15rem solid var(--pg5c-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.4);
}
.pg5c-bottom-nav button, .pg5c-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: none; border: none; color: var(--pg5c-text-muted);
  font-size: 1.05rem; font-family: inherit; cursor: pointer;
  min-width: 6rem; min-height: 6rem; padding: 0.4rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pg5c-bottom-nav button:active, .pg5c-bottom-nav a:active { transform: scale(0.92); }
.pg5c-bottom-nav .material-symbols-outlined,
.pg5c-bottom-nav .bi,
.pg5c-bottom-nav ion-icon { font-size: 2.4rem; }
.pg5c-bottom-nav .fas, .pg5c-bottom-nav .far { font-size: 2.2rem; }
.pg5c-bottom-nav .pg5c-active { color: var(--pg5c-primary); }
.pg5c-bottom-nav .pg5c-nav-label { font-size: 1.05rem; }
.pg5c-bottom-nav .pg5c-badge {
  position: absolute; top: 0.4rem; background: #FF5722; color: #fff;
  font-size: 0.85rem; padding: 0 0.35rem; border-radius: 0.8rem; min-width: 1.4rem; text-align: center;
}
.pg5c-bottom-item { position: relative; }

@media (min-width: 769px) {
  .pg5c-bottom-nav { display: none; }
}

/* ===== Back to top ===== */
.pg5c-top-btn {
  position: fixed; right: 1.2rem; bottom: 7.5rem; z-index: 999;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--pg5c-primary); color: #fff; border: none; cursor: pointer;
  font-size: 2rem; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.pg5c-top-btn.pg5c-top-show { opacity: 1; pointer-events: auto; }
@media (min-width: 769px) { .pg5c-top-btn { bottom: 2rem; } }

/* ===== Desktop tweaks ===== */
@media (min-width: 769px) {
  .pg5c-grid { grid-template-columns: repeat(6, 1fr); }
  .pg5c-features { grid-template-columns: repeat(4,1fr); }
  .pg5c-testi { grid-template-columns: repeat(3,1fr); }
}
