/**
 * cbaj.click - Main Stylesheet
 * All classes use pg1b- prefix for namespace isolation
 * Color Palette: #FF4500 | #3A3A3A | #DB7093 | #6A5ACD | #E6E6FA
 * Mobile-first design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --pg1b-primary: #FF4500;
  --pg1b-secondary: #3A3A3A;
  --pg1b-accent: #DB7093;
  --pg1b-highlight: #6A5ACD;
  --pg1b-light: #E6E6FA;
  --pg1b-bg: #1a1a2e;
  --pg1b-bg-alt: #16213e;
  --pg1b-bg-card: #0f3460;
  --pg1b-text: #ffffff;
  --pg1b-text-muted: #b8b8d0;
  --pg1b-border: #2a2a4a;
  --pg1b-success: #4CAF50;
  --pg1b-gold: #FFD700;
  --pg1b-radius: 8px;
  --pg1b-radius-lg: 12px;
  --pg1b-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg1b-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
  --pg1b-transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Hind Siliguri', sans-serif;
  background-color: var(--pg1b-bg);
  color: var(--pg1b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--pg1b-primary);
  text-decoration: none;
  transition: var(--pg1b-transition);
}

a:hover {
  color: var(--pg1b-accent);
}

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

/* === Container === */
.pg1b-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg1b-wrapper {
  width: 100%;
  overflow: hidden;
}

/* === Header === */
.pg1b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg1b-bg) 0%, var(--pg1b-bg-alt) 100%);
  border-bottom: 1px solid var(--pg1b-border);
  transition: var(--pg1b-transition);
}

.pg1b-header-scrolled {
  background: rgba(26, 26, 46, 0.97);
  box-shadow: var(--pg1b-shadow-lg);
}

.pg1b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
  height: 52px;
}

.pg1b-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg1b-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg1b-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg1b-primary);
  letter-spacing: 0.5px;
}

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

.pg1b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--pg1b-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--pg1b-transition);
  min-height: 36px;
  font-family: 'Hind Siliguri', sans-serif;
}

.pg1b-btn-register {
  background: linear-gradient(135deg, var(--pg1b-primary), #FF6B35);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,69,0,0.4);
}

.pg1b-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,69,0,0.5);
}

.pg1b-btn-login {
  background: transparent;
  color: var(--pg1b-primary);
  border: 1.5px solid var(--pg1b-primary);
}

.pg1b-btn-login:hover {
  background: rgba(255,69,0,0.1);
}

.pg1b-menu-toggle {
  background: none;
  border: none;
  color: var(--pg1b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.pg1b-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--pg1b-bg-alt);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
}

.pg1b-menu-active {
  right: 0;
}

.pg1b-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--pg1b-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--pg1b-border);
  transition: var(--pg1b-transition);
}

.pg1b-mobile-menu a:hover {
  color: var(--pg1b-primary);
  padding-left: 0.5rem;
}

.pg1b-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pg1b-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

/* === Carousel === */
.pg1b-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 var(--pg1b-radius-lg) var(--pg1b-radius-lg);
  margin-top: 52px;
}

.pg1b-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg1b-slide-active {
  display: block;
}

.pg1b-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
}

.pg1b-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.pg1b-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--pg1b-transition);
}

.pg1b-dot-active {
  background: var(--pg1b-primary);
  transform: scale(1.3);
}

/* === Main Content === */
.pg1b-main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .pg1b-main {
    padding-bottom: 80px;
  }
}

.pg1b-section {
  padding: 1.5rem 0;
}

.pg1b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg1b-text);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--pg1b-primary);
  line-height: 1.4;
}

.pg1b-section-title span {
  color: var(--pg1b-primary);
}

/* === Game Grid === */
.pg1b-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg1b-accent);
  margin: 1.2rem 0 0.8rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(90deg, rgba(219,112,147,0.15), transparent);
  border-radius: var(--pg1b-radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg1b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.pg1b-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--pg1b-transition);
  border-radius: var(--pg1b-radius);
  padding: 0.4rem;
}

.pg1b-game-item:hover {
  background: rgba(255,69,0,0.1);
  transform: translateY(-2px);
}

.pg1b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pg1b-radius);
  margin-bottom: 0.3rem;
}

.pg1b-game-name {
  font-size: 1.1rem;
  color: var(--pg1b-text-muted);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Cards === */
.pg1b-card {
  background: var(--pg1b-bg-alt);
  border-radius: var(--pg1b-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg1b-border);
}

.pg1b-card h2 {
  font-size: 1.7rem;
  color: var(--pg1b-primary);
  margin-bottom: 1rem;
}

.pg1b-card h3 {
  font-size: 1.5rem;
  color: var(--pg1b-accent);
  margin-bottom: 0.8rem;
}

.pg1b-card p {
  color: var(--pg1b-text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* === Promo Link Styles === */
.pg1b-promo-text {
  color: var(--pg1b-primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--pg1b-transition);
}

.pg1b-promo-text:hover {
  color: var(--pg1b-accent);
  text-decoration: underline;
}

.pg1b-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg1b-primary), var(--pg1b-accent));
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: var(--pg1b-transition);
  text-align: center;
  box-shadow: 0 3px 10px rgba(255,69,0,0.3);
}

.pg1b-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,69,0,0.4);
}

/* === Bottom Navigation === */
.pg1b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg1b-bg-alt), #0a0a1a);
  border-top: 1px solid var(--pg1b-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}

.pg1b-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--pg1b-text-muted);
  cursor: pointer;
  transition: var(--pg1b-transition);
  padding: 0.4rem;
  border-radius: var(--pg1b-radius);
  position: relative;
}

.pg1b-bottom-nav-btn:hover,
.pg1b-nav-active {
  color: var(--pg1b-primary);
}

.pg1b-bottom-nav-btn:active {
  transform: scale(0.92);
}

.pg1b-bottom-nav-btn .pg1b-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg1b-bottom-nav-btn .pg1b-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}

.pg1b-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--pg1b-primary);
  border-radius: 0 0 3px 3px;
}

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

/* === Footer === */
.pg1b-footer {
  background: var(--pg1b-bg-alt);
  border-top: 1px solid var(--pg1b-border);
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.pg1b-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg1b-footer-brand p {
  color: var(--pg1b-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

.pg1b-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.pg1b-footer-partners span {
  background: var(--pg1b-bg);
  color: var(--pg1b-text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 1.1rem;
  border: 1px solid var(--pg1b-border);
}

.pg1b-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}

.pg1b-footer-links a {
  color: var(--pg1b-text-muted);
  font-size: 1.2rem;
  transition: var(--pg1b-transition);
}

.pg1b-footer-links a:hover {
  color: var(--pg1b-primary);
}

.pg1b-footer-copy {
  text-align: center;
  color: var(--pg1b-text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg1b-border);
}

/* === Utility Classes === */
.pg1b-text-center { text-align: center; }
.pg1b-text-bold { font-weight: 700; }
.pg1b-mt-1 { margin-top: 0.5rem; }
.pg1b-mt-2 { margin-top: 1rem; }
.pg1b-mt-3 { margin-top: 1.5rem; }
.pg1b-mb-1 { margin-bottom: 0.5rem; }
.pg1b-mb-2 { margin-bottom: 1rem; }
.pg1b-mb-3 { margin-bottom: 1.5rem; }
.pg1b-hidden { display: none; }

/* === Responsive Fine-tuning === */
@media (min-width: 431px) {
  .pg1b-container {
    border-left: 1px solid var(--pg1b-border);
    border-right: 1px solid var(--pg1b-border);
  }
}

/* === Winner Showcase === */
.pg1b-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pg1b-border);
}

.pg1b-winner-item:last-child {
  border-bottom: none;
}

.pg1b-winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pg1b-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pg1b-winner-info {
  flex: 1;
}

.pg1b-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pg1b-text);
}

.pg1b-winner-game {
  font-size: 1rem;
  color: var(--pg1b-text-muted);
}

.pg1b-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg1b-gold);
}

/* === Testimonials === */
.pg1b-testimonial {
  background: var(--pg1b-bg);
  border-radius: var(--pg1b-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg1b-accent);
}

.pg1b-testimonial-text {
  font-size: 1.2rem;
  color: var(--pg1b-text-muted);
  line-height: 1.5;
  font-style: italic;
}

.pg1b-testimonial-author {
  font-size: 1.1rem;
  color: var(--pg1b-accent);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* === Payment Methods === */
.pg1b-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pg1b-payment-item {
  background: var(--pg1b-bg);
  border: 1px solid var(--pg1b-border);
  border-radius: var(--pg1b-radius);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--pg1b-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === App Download CTA === */
.pg1b-cta-box {
  background: linear-gradient(135deg, var(--pg1b-primary), var(--pg1b-highlight));
  border-radius: var(--pg1b-radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.pg1b-cta-box h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pg1b-cta-box p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

/* === RTP Bar === */
.pg1b-rtp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--pg1b-border);
}

.pg1b-rtp-name {
  font-size: 1.2rem;
  color: var(--pg1b-text);
}

.pg1b-rtp-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--pg1b-bg);
  border-radius: 3px;
  margin: 0 0.8rem;
  overflow: hidden;
}

.pg1b-rtp-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pg1b-primary), var(--pg1b-accent));
}

.pg1b-rtp-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pg1b-primary);
  min-width: 38px;
  text-align: right;
}

/* === FAQ Section === */
.pg1b-faq-item {
  margin-bottom: 1rem;
}

.pg1b-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pg1b-text);
  margin-bottom: 0.4rem;
}

.pg1b-faq-a {
  font-size: 1.2rem;
  color: var(--pg1b-text-muted);
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 2px solid var(--pg1b-highlight);
}

/* === Internal Link === */
.pg1b-internal-link {
  color: var(--pg1b-accent);
  text-decoration: underline;
  transition: var(--pg1b-transition);
}

.pg1b-internal-link:hover {
  color: var(--pg1b-primary);
}
