/**
 * kk333.sbs - Core Stylesheet
 * Class prefix: pgd5-
 * Palette: #1B263B (dark bg), #008B8B (teal), #FF7F50 (coral), #FF4500 (orange-red), #BF360C (rust)
 */

:root {
  --pgd5-primary: #008B8B;
  --pgd5-secondary: #FF7F50;
  --pgd5-accent: #FF4500;
  --pgd5-dark: #1B263B;
  --pgd5-darker: #111a2e;
  --pgd5-rust: #BF360C;
  --pgd5-text: #f0f0f0;
  --pgd5-text-muted: #b0b8c8;
  --pgd5-bg: #1B263B;
  --pgd5-card-bg: #243049;
  --pgd5-border: #2e3f5a;
  --pgd5-radius: 1.0rem;
  --pgd5-radius-sm: 0.6rem;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
  background: var(--pgd5-bg);
  color: var(--pgd5-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pgd5-secondary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.pgd5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--pgd5-darker) 0%, var(--pgd5-dark) 100%);
  border-bottom: 2px solid var(--pgd5-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.0rem; height: 52px;
}
.pgd5-header-left { display: flex; align-items: center; gap: 0.6rem; }
.pgd5-header-logo { width: 28px; height: 28px; border-radius: 6px; }
.pgd5-header-name { font-size: 1.8rem; font-weight: 700; color: var(--pgd5-secondary); }
.pgd5-header-right { display: flex; align-items: center; gap: 0.5rem; }
.pgd5-btn-register {
  background: linear-gradient(135deg, var(--pgd5-accent), var(--pgd5-rust));
  color: #fff; border: none; padding: 0.5rem 1.2rem; border-radius: 2.0rem;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
}
.pgd5-btn-login {
  background: transparent; color: var(--pgd5-secondary); border: 1.5px solid var(--pgd5-secondary);
  padding: 0.5rem 1.2rem; border-radius: 2.0rem; font-size: 1.2rem; font-weight: 600; cursor: pointer;
}
.pgd5-btn-register:active, .pgd5-btn-login:active { transform: scale(0.95); }

/* Menu toggle */
.pgd5-menu-toggle {
  background: none; border: none; color: var(--pgd5-text); font-size: 2.0rem; cursor: pointer;
  padding: 0.4rem; line-height: 1;
}

/* Mobile Menu Overlay */
.pgd5-overlay-active {
  display: block !important;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
#pgd5-menu-overlay { display: none; }

/* Mobile Menu */
#pgd5-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--pgd5-darker); z-index: 9999;
  transition: right 0.3s ease; padding: 2.0rem 1.5rem; overflow-y: auto;
}
#pgd5-mobile-menu.pgd5-menu-active { right: 0; }
.pgd5-menu-close { background: none; border: none; color: var(--pgd5-text); font-size: 2.4rem; cursor: pointer; float: right; }
.pgd5-menu-list { clear: both; padding-top: 1.5rem; }
.pgd5-menu-link {
  display: block; padding: 1.2rem 0; color: var(--pgd5-text);
  font-size: 1.5rem; border-bottom: 1px solid var(--pgd5-border);
  transition: color 0.2s;
}
.pgd5-menu-link:hover, .pgd5-menu-link:active { color: var(--pgd5-secondary); }

/* Main content */
.pgd5-main { padding-top: 56px; }
@media (max-width: 768px) {
  .pgd5-main { padding-bottom: 80px; }
}

/* Carousel */
.pgd5-carousel { position: relative; overflow: hidden; border-radius: 0 0 var(--pgd5-radius) var(--pgd5-radius); }
.pgd5-slide { display: none; width: 100%; transition: opacity 0.5s ease; cursor: pointer; }
.pgd5-slide:first-child { display: block; }
.pgd5-slide img { width: 100%; height: auto; min-height: 160px; object-fit: cover; }
.pgd5-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.pgd5-slide-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; border: none;
}
.pgd5-dot-active { background: var(--pgd5-secondary); width: 20px; border-radius: 4px; }

/* Section */
.pgd5-section { padding: 1.5rem 1.2rem; }
.pgd5-section-title {
  font-size: 1.7rem; font-weight: 700; margin-bottom: 1.0rem;
  color: var(--pgd5-secondary); border-left: 3px solid var(--pgd5-accent);
  padding-left: 0.8rem;
}
.pgd5-section-desc { color: var(--pgd5-text-muted); font-size: 1.3rem; line-height: 1.6rem; margin-bottom: 1.0rem; }

/* Category title */
.pgd5-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--pgd5-primary);
  margin: 1.5rem 0 0.8rem; display: flex; align-items: center; gap: 0.5rem;
}
.pgd5-cat-title i { font-size: 1.6rem; }

/* Game grid */
.pgd5-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.pgd5-game-item { text-align: center; cursor: pointer; }
.pgd5-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--pgd5-radius-sm);
  border: 2px solid var(--pgd5-border); transition: border-color 0.2s;
  object-fit: cover;
}
.pgd5-game-item:active img { border-color: var(--pgd5-secondary); }
.pgd5-game-name {
  font-size: 1.1rem; color: var(--pgd5-text-muted); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Cards */
.pgd5-card {
  background: var(--pgd5-card-bg); border-radius: var(--pgd5-radius);
  padding: 1.2rem; margin-bottom: 1.0rem; border: 1px solid var(--pgd5-border);
}
.pgd5-card-title { font-size: 1.5rem; font-weight: 600; color: var(--pgd5-text); margin-bottom: 0.6rem; }
.pgd5-card-text { font-size: 1.3rem; color: var(--pgd5-text-muted); line-height: 1.6rem; }

/* Promo buttons */
.pgd5-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--pgd5-accent), var(--pgd5-rust));
  color: #fff; padding: 0.8rem 2.0rem; border-radius: 2.5rem; font-size: 1.4rem;
  font-weight: 700; cursor: pointer; border: none; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pgd5-promo-btn:active { transform: scale(0.95); }
.pgd5-promo-link { color: var(--pgd5-secondary); font-weight: 600; cursor: pointer; }
.pgd5-promo-link:hover { text-decoration: underline; }

/* Feature list */
.pgd5-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pgd5-feature-item {
  background: var(--pgd5-card-bg); border-radius: var(--pgd5-radius-sm);
  padding: 1.0rem; text-align: center; border: 1px solid var(--pgd5-border);
}
.pgd5-feature-icon { font-size: 2.4rem; color: var(--pgd5-secondary); margin-bottom: 0.4rem; }
.pgd5-feature-label { font-size: 1.2rem; font-weight: 600; color: var(--pgd5-text); }
.pgd5-feature-val { font-size: 1.1rem; color: var(--pgd5-text-muted); }

/* Winner list */
.pgd5-winner-list { display: flex; flex-direction: column; gap: 0.6rem; }
.pgd5-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--pgd5-card-bg); padding: 0.8rem 1.0rem; border-radius: var(--pgd5-radius-sm);
}
.pgd5-winner-name { font-size: 1.2rem; color: var(--pgd5-secondary); font-weight: 600; }
.pgd5-winner-amount { font-size: 1.3rem; color: var(--pgd5-accent); font-weight: 700; }
.pgd5-winner-game { font-size: 1.1rem; color: var(--pgd5-text-muted); }

/* Payment methods */
.pgd5-payment-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.pgd5-payment-item {
  background: var(--pgd5-card-bg); border-radius: var(--pgd5-radius-sm);
  padding: 0.6rem 1.2rem; font-size: 1.2rem; color: var(--pgd5-text);
  border: 1px solid var(--pgd5-border);
}

/* Testimonials */
.pgd5-testimonial {
  background: var(--pgd5-card-bg); border-radius: var(--pgd5-radius);
  padding: 1.0rem 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--pgd5-primary);
}
.pgd5-testimonial-user { font-size: 1.2rem; color: var(--pgd5-secondary); font-weight: 600; }
.pgd5-testimonial-text { font-size: 1.3rem; color: var(--pgd5-text-muted); margin-top: 0.4rem; line-height: 1.5rem; }

/* Footer */
.pgd5-footer {
  background: var(--pgd5-darker); padding: 2.0rem 1.2rem 3.0rem;
  border-top: 2px solid var(--pgd5-primary);
}
.pgd5-footer-brand { font-size: 1.3rem; color: var(--pgd5-text-muted); line-height: 1.6rem; margin-bottom: 1.0rem; }
.pgd5-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.0rem; }
.pgd5-footer-link {
  background: var(--pgd5-card-bg); padding: 0.4rem 1.0rem; border-radius: 2.0rem;
  font-size: 1.1rem; color: var(--pgd5-text-muted); border: 1px solid var(--pgd5-border);
  cursor: pointer; transition: color 0.2s;
}
.pgd5-footer-link:hover { color: var(--pgd5-secondary); }
.pgd5-footer-copy { font-size: 1.1rem; color: var(--pgd5-text-muted); text-align: center; margin-top: 1.0rem; }

/* Bottom Navigation */
.pgd5-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--pgd5-dark), var(--pgd5-darker));
  border-top: 1.5px solid var(--pgd5-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
}
.pgd5-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--pgd5-text-muted); cursor: pointer; transition: color 0.2s;
}
.pgd5-bottom-nav-btn i, .pgd5-bottom-nav-btn .material-icons-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.pgd5-bottom-nav-btn span { font-size: 1.0rem; }
.pgd5-bottom-nav-btn:active { color: var(--pgd5-secondary); transform: scale(0.92); }
.pgd5-bottom-nav-btn.pgd5-active { color: var(--pgd5-secondary); }
.pgd5-bottom-nav-btn.pgd5-active span { font-weight: 600; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pgd5-bottom-nav { display: none; }
}

/* Desktop adjustments */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .pgd5-main { padding-bottom: 0; }
}

/* Utility */
.pgd5-text-center { text-align: center; }
.pgd5-mt-1 { margin-top: 0.8rem; }
.pgd5-mt-2 { margin-top: 1.6rem; }
.pgd5-mb-1 { margin-bottom: 0.8rem; }
.pgd5-mb-2 { margin-bottom: 1.6rem; }
.pgd5-hidden { display: none; }
.pgd5-flex-center { display: flex; align-items: center; justify-content: center; }

/* Internal link style */
.pgd5-internal-link { color: var(--pgd5-primary); font-weight: 500; text-decoration: underline; }

/* FAQ section */
.pgd5-faq-item { margin-bottom: 1.0rem; }
.pgd5-faq-q { font-size: 1.4rem; font-weight: 600; color: var(--pgd5-secondary); margin-bottom: 0.4rem; }
.pgd5-faq-a { font-size: 1.3rem; color: var(--pgd5-text-muted); line-height: 1.6rem; padding-left: 1.0rem; border-left: 2px solid var(--pgd5-border); }

/* App download CTA */
.pgd5-app-cta {
  background: linear-gradient(135deg, var(--pgd5-primary), #006060);
  border-radius: var(--pgd5-radius); padding: 1.5rem; text-align: center;
}
.pgd5-app-cta-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.pgd5-app-cta-text { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 1.0rem; }
