/**
 * m17.click - Layout Stylesheet
 * All classes use the "pged-" prefix for namespace isolation.
 * Color palette: #FFCCCB (light pink) | #FA8072 (salmon) | #E91E63 (pink) | #0D1117 (dark bg) | #BAE1FF (light blue)
 * Mobile-first design, max-width 430px viewport.
 */

/* CSS Variables */
:root {
  --pged-primary: #E91E63;
  --pged-primary-light: #FFCCCB;
  --pged-secondary: #FA8072;
  --pged-accent: #BAE1FF;
  --pged-bg: #0D1117;
  --pged-bg-card: #161B22;
  --pged-bg-section: #1C2333;
  --pged-text: #F0F0F0;
  --pged-text-muted: #A0AEC0;
  --pged-text-dark: #0D1117;
  --pged-border: #2D3748;
  --pged-gradient: linear-gradient(135deg, #E91E63 0%, #FA8072 100%);
  --pged-radius: 8px;
  --pged-radius-lg: 16px;
  --pged-shadow: 0 4px 12px rgba(0,0,0,0.3);
  --pged-header-h: 56px;
  --pged-bottom-h: 60px;
}

/* 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;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pged-text);
  background: var(--pged-bg);
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--pged-accent); text-decoration: none; }
a:hover { color: var(--pged-primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.pged-container { width: 100%; padding: 0 1.2rem; }
.pged-wrapper { padding-top: var(--pged-header-h); padding-bottom: calc(var(--pged-bottom-h) + 2rem); }
@media (max-width: 768px) {
  .pged-wrapper { padding-bottom: calc(var(--pged-bottom-h) + 2rem); }
}

/* Header */
.pged-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pged-header-h);
  background: var(--pged-bg); border-bottom: 1px solid var(--pged-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000;
}
.pged-logo-area { display: flex; align-items: center; gap: 0.6rem; }
.pged-logo-area img { width: 32px; height: 32px; border-radius: 6px; }
.pged-logo-area span { font-size: 1.8rem; font-weight: 700; color: var(--pged-primary); }
.pged-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pged-btn-register, .pged-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
}
.pged-btn-register { background: var(--pged-gradient); color: #fff; }
.pged-btn-register:hover { opacity: 0.9; transform: scale(1.05); }
.pged-btn-login { background: transparent; color: var(--pged-accent); border: 1px solid var(--pged-accent); }
.pged-btn-login:hover { background: var(--pged-accent); color: var(--pged-text-dark); }
.pged-menu-toggle {
  background: none; border: none; color: var(--pged-text); font-size: 2.2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Mobile Menu */
.pged-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; transition: opacity 0.3s;
}
.pged-overlay-active { display: block; }
#pged-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--pged-bg-card); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto; padding: 2rem 1.5rem;
}
.pged-menu-active { right: 0 !important; }
.pged-menu-close {
  background: none; border: none; color: var(--pged-text); font-size: 2.4rem;
  cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}
.pged-menu-list { margin-top: 3rem; }
.pged-menu-list a {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--pged-border);
  color: var(--pged-text); font-size: 1.5rem; transition: color 0.2s;
}
.pged-menu-list a:hover { color: var(--pged-primary); }

/* Carousel */
.pged-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--pged-radius-lg); margin-bottom: 2rem;
}
.pged-carousel-track { position: relative; width: 100%; height: 180px; }
.pged-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity var(--pged-shadow) 0.4s;
}
.pged-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pged-slide-active { opacity: 1; }
.pged-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pged-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: background 0.3s;
}
.pged-dot-active { background: var(--pged-primary); }

/* Section titles */
.pged-section-title {
  font-size: 2rem; font-weight: 700; color: var(--pged-text);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pged-primary);
  display: inline-block;
}
.pged-section-title i { margin-right: 0.5rem; color: var(--pged-primary); }
.pged-category-label {
  font-size: 1.7rem; font-weight: 700; color: var(--pged-primary-light);
  margin: 2rem 0 1rem; padding-left: 1rem;
  border-left: 3px solid var(--pged-primary);
}

/* Game Grid */
.pged-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1.5rem;
}
.pged-game-card {
  text-align: center; cursor: pointer; transition: transform 0.2s;
}
.pged-game-card:hover { transform: scale(1.05); }
.pged-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--pged-radius); border: 1px solid var(--pged-border);
}
.pged-game-card p {
  font-size: 1.1rem; color: var(--pged-text-muted); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Promo buttons & links */
.pged-promo-btn {
  display: inline-block; padding: 1rem 2.5rem;
  background: var(--pged-gradient); color: #fff;
  border-radius: 30px; font-size: 1.6rem; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.3s;
  text-align: center;
}
.pged-promo-btn:hover { opacity: 0.9; transform: scale(1.05); box-shadow: 0 0 20px rgba(233,30,99,0.4); }
.pged-promo-link {
  color: var(--pged-primary); font-weight: 600;
  text-decoration: underline; cursor: pointer;
}
.pged-promo-link:hover { color: var(--pged-primary-light); }

/* Content sections */
.pged-content-section {
  background: var(--pged-bg-card); border-radius: var(--pged-radius-lg);
  padding: 1.5rem; margin-bottom: 1.5rem;
  border: 1px solid var(--pged-border);
}
.pged-content-section h2 { color: var(--pged-primary); margin-bottom: 1rem; font-size: 1.8rem; }
.pged-content-section h3 { color: var(--pged-accent); margin: 1rem 0 0.5rem; font-size: 1.5rem; }
.pged-content-section p { color: var(--pged-text-muted); margin-bottom: 0.8rem; font-size: 1.4rem; line-height: 1.6; }
.pged-content-section ul { padding-left: 1.5rem; }
.pged-content-section li { color: var(--pged-text-muted); margin-bottom: 0.5rem; font-size: 1.4rem; line-height: 1.5; list-style: disc; }

/* Feature list */
.pged-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 1rem 0;
}
.pged-feature-item {
  background: var(--pged-bg-section); border-radius: var(--pged-radius);
  padding: 1rem; text-align: center; border: 1px solid var(--pged-border);
}
.pged-feature-item i { font-size: 2.4rem; color: var(--pged-primary); margin-bottom: 0.5rem; }
.pged-feature-item h4 { font-size: 1.3rem; color: var(--pged-text); margin-bottom: 0.3rem; }
.pged-feature-item p { font-size: 1.1rem; color: var(--pged-text-muted); }

/* Testimonial */
.pged-testimonial {
  background: var(--pged-bg-section); border-radius: var(--pged-radius);
  padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--pged-primary);
}
.pged-testimonial p { font-style: italic; color: var(--pged-text-muted); margin-bottom: 0.5rem; }
.pged-testimonial cite { color: var(--pged-accent); font-size: 1.2rem; }

/* Winner showcase */
.pged-winner-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem; border-bottom: 1px solid var(--pged-border);
}
.pged-winner-row:last-child { border-bottom: none; }
.pged-winner-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pged-bg-section); }
.pged-winner-info { flex: 1; }
.pged-winner-info span { display: block; font-size: 1.2rem; color: var(--pged-text-muted); }
.pged-winner-amount { color: var(--pged-secondary); font-weight: 700; font-size: 1.4rem; }

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

/* Footer */
.pged-footer {
  background: var(--pged-bg-card); border-top: 1px solid var(--pged-border);
  padding: 2rem 1.2rem; margin-top: 2rem;
}
.pged-footer-brand { margin-bottom: 1.5rem; }
.pged-footer-brand p { font-size: 1.3rem; color: var(--pged-text-muted); line-height: 1.6; }
.pged-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.pged-footer-promos button {
  padding: 0.5rem 1rem; border-radius: 20px; font-size: 1.2rem;
  background: var(--pged-gradient); color: #fff; border: none; cursor: pointer;
  transition: all 0.2s;
}
.pged-footer-promos button:hover { opacity: 0.85; transform: scale(1.05); }
.pged-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem;
}
.pged-footer-links a {
  font-size: 1.2rem; color: var(--pged-text-muted); transition: color 0.2s;
}
.pged-footer-links a:hover { color: var(--pged-primary); }
.pged-footer-copyright {
  font-size: 1.1rem; color: var(--pged-text-muted); text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--pged-border);
}

/* Bottom Navigation */
.pged-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pged-bottom-h);
  background: var(--pged-bg-card); border-top: 1px solid var(--pged-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.3rem;
}
.pged-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 50px; background: none; border: none;
  color: var(--pged-text-muted); cursor: pointer; transition: all 0.2s;
  padding: 0.4rem; border-radius: 8px;
}
.pged-bottom-nav-btn i, .pged-bottom-nav-btn .material-icons {
  font-size: 22px; margin-bottom: 2px; transition: color 0.2s, transform 0.2s;
}
.pged-bottom-nav-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.pged-bottom-nav-btn span { font-size: 1rem; line-height: 1; }
.pged-bottom-nav-btn:hover i, .pged-bottom-nav-btn:hover .material-icons,
.pged-bottom-nav-btn:hover ion-icon { color: var(--pged-primary); transform: scale(1.15); }
.pged-bottom-nav-btn:hover span { color: var(--pged-primary); }
.pged-nav-active { color: var(--pged-primary) !important; }
.pged-nav-active i, .pged-nav-active .material-icons, .pged-nav-active ion-icon { color: var(--pged-primary) !important; }
.pged-nav-active span { color: var(--pged-primary) !important; font-weight: 600; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pged-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  .pged-wrapper { padding-bottom: calc(var(--pged-bottom-h) + 2rem); }
}

/* FAQ Accordion */
.pged-faq-item { border-bottom: 1px solid var(--pged-border); }
.pged-faq-question {
  padding: 1rem 0; font-weight: 600; color: var(--pged-text);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-size: 1.4rem;
}
.pged-faq-question::after { content: '+'; font-size: 1.8rem; color: var(--pged-primary); }
.pged-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  color: var(--pged-text-muted); font-size: 1.3rem; line-height: 1.6;
}
.pged-faq-answer.open { max-height: 300px; padding-bottom: 1rem; }

/* Guide steps */
.pged-step-card {
  background: var(--pged-bg-section); border-radius: var(--pged-radius);
  padding: 1.2rem; margin-bottom: 1rem; display: flex; gap: 1rem;
  align-items: flex-start; border: 1px solid var(--pged-border);
}
.pged-step-num {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  background: var(--pged-gradient); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  font-size: 1.4rem;
}
.pged-step-content h4 { color: var(--pged-text); font-size: 1.4rem; margin-bottom: 0.3rem; }
.pged-step-content p { color: var(--pged-text-muted); font-size: 1.2rem; }

/* Utility classes */
.pged-text-center { text-align: center; }
.pged-mt-1 { margin-top: 1rem; }
.pged-mt-2 { margin-top: 2rem; }
.pged-mb-1 { margin-bottom: 1rem; }
.pged-mb-2 { margin-bottom: 2rem; }
.pged-hidden { display: none; }
.pged-divider { border: none; border-top: 1px solid var(--pged-border); margin: 1.5rem 0; }
