/* takabit.css - Core stylesheet for takabit.click */
/* All classes use pg37- prefix for namespace isolation */

:root {
  --pg37-primary: #DEB887;
  --pg37-bg: #212F3D;
  --pg37-text: #F5DEB3;
  --pg37-dark: #1A252F;
  --pg37-accent: #C9A96E;
  --pg37-card: #2A3A4A;
  --pg37-border: #3A4F63;
  --pg37-gold: #D4A843;
  --pg37-hover: #E8C878;
  --pg37-radius: 8px;
  --pg37-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

html { font-size: 62.5%; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--pg37-bg);
  color: var(--pg37-text);
  line-height: 1.6rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.pg37-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--pg37-dark);
  border-bottom: 1px solid var(--pg37-border);
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; height: 52px;
}
.pg37-header-left { display: flex; align-items: center; gap: 8px; }
.pg37-header-logo { width: 28px; height: 28px; border-radius: 4px; }
.pg37-header-brand { font-size: 1.6rem; font-weight: 700; color: var(--pg37-primary); }
.pg37-header-right { display: flex; align-items: center; gap: 6px; }
.pg37-btn-register, .pg37-btn-login {
  border: none; border-radius: 4px; padding: 5px 12px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.pg37-btn-register {
  background: linear-gradient(135deg, var(--pg37-primary), var(--pg37-gold));
  color: var(--pg37-dark);
}
.pg37-btn-login {
  background: transparent; color: var(--pg37-primary);
  border: 1px solid var(--pg37-primary);
}
.pg37-menu-toggle {
  background: none; border: none; color: var(--pg37-text); font-size: 2rem;
  cursor: pointer; padding: 4px; display: flex; align-items: center;
}

/* Mobile menu */
.pg37-mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; background: rgba(26,37,47,0.97);
  max-width: 430px; margin: 0 auto; overflow-y: auto; padding: 60px 20px 20px;
}
.pg37-menu-close {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  color: var(--pg37-text); font-size: 2.4rem; cursor: pointer;
}
.pg37-menu-link {
  display: block; padding: 12px 0; color: var(--pg37-text); font-size: 1.5rem;
  border-bottom: 1px solid var(--pg37-border);
}
.pg37-menu-link:hover { color: var(--pg37-primary); }

/* Carousel */
.pg37-carousel { position: relative; overflow: hidden; margin-top: 52px; }
.pg37-carousel-slide { display: none; cursor: pointer; }
.pg37-carousel-slide img { width: 100%; height: auto; }
.pg37-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.pg37-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,222,179,0.4); cursor: pointer; border: none;
}
.pg37-carousel-dot-active { background: var(--pg37-primary); }

/* Sections */
.pg37-section { padding: 16px 12px; }
.pg37-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--pg37-primary);
  border-left: 3px solid var(--pg37-gold); padding-left: 10px;
  margin-bottom: 12px;
}
.pg37-section-title i { margin-right: 6px; font-size: 1.6rem; }

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

/* Modules / Cards */
.pg37-module {
  background: var(--pg37-card); border-radius: var(--pg37-radius);
  padding: 16px; margin-bottom: 12px; border: 1px solid var(--pg37-border);
}
.pg37-module h2 { font-size: 1.6rem; color: var(--pg37-primary); margin-bottom: 8px; }
.pg37-module h3 { font-size: 1.4rem; color: var(--pg37-accent); margin-bottom: 6px; }
.pg37-module p { font-size: 1.3rem; line-height: 1.8rem; margin-bottom: 8px; }
.pg37-module ul { padding-left: 18px; margin-bottom: 8px; }
.pg37-module li { font-size: 1.3rem; line-height: 1.8rem; margin-bottom: 4px; }

/* CTA buttons */
.pg37-cta {
  display: inline-block; background: linear-gradient(135deg, var(--pg37-primary), var(--pg37-gold));
  color: var(--pg37-dark); font-weight: 700; font-size: 1.4rem;
  padding: 10px 24px; border-radius: var(--pg37-radius); cursor: pointer;
  border: none; font-family: inherit; text-align: center;
  transition: transform 0.2s;
}
.pg37-cta:hover { transform: scale(1.03); color: var(--pg37-dark); }
.pg37-cta-text {
  color: var(--pg37-primary); font-weight: 600; cursor: pointer;
  text-decoration: underline;
}

/* Feature grid */
.pg37-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg37-feature-item {
  background: var(--pg37-card); padding: 12px; border-radius: var(--pg37-radius);
  text-align: center; border: 1px solid var(--pg37-border);
}
.pg37-feature-item i { font-size: 2rem; color: var(--pg37-primary); margin-bottom: 6px; display: block; }
.pg37-feature-item span { font-size: 1.2rem; color: var(--pg37-text); }

/* Footer */
.pg37-footer {
  background: var(--pg37-dark); padding: 20px 12px; text-align: center;
  border-top: 1px solid var(--pg37-border);
}
.pg37-footer-brand { font-size: 1.3rem; color: var(--pg37-text); margin-bottom: 12px; line-height: 1.6rem; }
.pg37-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.pg37-footer-promos button {
  background: linear-gradient(135deg, var(--pg37-primary), var(--pg37-gold));
  color: var(--pg37-dark); border: none; padding: 6px 14px; border-radius: 4px;
  font-size: 1.1rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.pg37-footer-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 10px; }
.pg37-footer-links a { font-size: 1.2rem; color: var(--pg37-text); }
.pg37-footer-links a:hover { color: var(--pg37-primary); }
.pg37-footer-partners { margin-bottom: 10px; }
.pg37-footer-partners span {
  display: inline-block; background: var(--pg37-card); color: var(--pg37-accent);
  padding: 4px 10px; border-radius: 4px; font-size: 1rem; margin: 3px;
  border: 1px solid var(--pg37-border);
}
.pg37-footer-copy { font-size: 1.1rem; color: #8A9AA8; }

/* Bottom nav */
.pg37-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--pg37-dark); border-top: 1px solid var(--pg37-border);
  max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  height: 58px; padding: 4px 0;
}
.pg37-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; min-height: 50px; background: none; border: none;
  color: var(--pg37-text); cursor: pointer; font-family: inherit;
  transition: color 0.2s;
}
.pg37-bottom-nav-btn i, .pg37-bottom-nav-btn .material-icons {
  font-size: 22px; margin-bottom: 2px;
}
.pg37-bottom-nav-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.pg37-bottom-nav-btn span { font-size: 1rem; }
.pg37-bottom-nav-btn:hover, .pg37-bottom-nav-btn.pg37-nav-active {
  color: var(--pg37-primary);
}
.pg37-bottom-nav-btn.pg37-nav-active i,
.pg37-bottom-nav-btn.pg37-nav-active .material-icons,
.pg37-bottom-nav-btn.pg37-nav-active ion-icon { transform: scale(1.15); }

/* Scroll top */
.pg37-scroll-top {
  display: none; position: fixed; bottom: 70px; right: 12px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pg37-primary); color: var(--pg37-dark);
  border: none; font-size: 1.8rem; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: var(--pg37-shadow);
}

/* FAQ accordion */
.pg37-faq-item { border-bottom: 1px solid var(--pg37-border); }
.pg37-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; cursor: pointer; font-size: 1.4rem; font-weight: 600;
  color: var(--pg37-primary);
}
.pg37-faq-icon { font-size: 1.6rem; color: var(--pg37-accent); }
.pg37-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 1.3rem; color: var(--pg37-text); line-height: 1.7rem;
}

/* Content block styles */
.pg37-content h2 { font-size: 1.7rem; color: var(--pg37-primary); margin: 16px 0 8px; }
.pg37-content h3 { font-size: 1.5rem; color: var(--pg37-accent); margin: 12px 0 6px; }
.pg37-content p { font-size: 1.3rem; line-height: 1.8rem; margin-bottom: 8px; }
.pg37-content ul { padding-left: 18px; margin-bottom: 10px; }
.pg37-content li { font-size: 1.3rem; line-height: 1.8rem; margin-bottom: 4px; }

/* Responsive */
@media (min-width: 769px) {
  .pg37-bottom-nav { display: none; }
  .pg37-menu-toggle { display: none; }
}
@media (max-width: 768px) {
  main { padding-bottom: 70px; }
  .pg37-header { padding: 6px 10px; }
}
