/**
 * 2222bet apk - Theme Stylesheet
 * All classes use v01b- prefix for namespace isolation
 * Color Palette: #8B0000 | #FFBF00 | #FA8072 | #2C3E50 | #DB7093
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --v01b-primary: #8B0000;
  --v01b-accent: #FFBF00;
  --v01b-coral: #FA8072;
  --v01b-dark: #2C3E50;
  --v01b-pink: #DB7093;
  --v01b-bg: #1a0a0a;
  --v01b-text: #FFF5F0;
  --v01b-card-bg: #2a1010;
  --v01b-border: #5a1a1a;
  --v01b-hover: #a01010;
  --v01b-font-size: 62.5%;
  --v01b-radius: 8px;
}

/* Reset & Base */
html {
  font-size: var(--v01b-font-size);
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
  background-color: var(--v01b-bg);
  color: var(--v01b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--v01b-accent);
  text-decoration: none;
}

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

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

.v01b-wrapper {
  padding: 1rem;
}

/* ===== HEADER ===== */
.v01b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v01b-primary), #5a0000);
  border-bottom: 2px solid var(--v01b-accent);
  max-width: 430px;
  margin: 0 auto;
}

.v01b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  height: 52px;
}

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

.v01b-logo-area img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.v01b-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v01b-accent);
  white-space: nowrap;
}

.v01b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v01b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--v01b-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 44px;
}

.v01b-btn-register {
  background: var(--v01b-accent);
  color: var(--v01b-dark);
}

.v01b-btn-register:hover {
  background: #e6ac00;
  transform: scale(1.05);
}

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

.v01b-btn-login:hover {
  background: rgba(255, 191, 0, 0.15);
}

.v01b-menu-toggle {
  background: none;
  border: none;
  color: var(--v01b-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE MENU ===== */
.v01b-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #3a0505, var(--v01b-bg));
  border-bottom: 2px solid var(--v01b-accent);
  max-width: 430px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.v01b-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v01b-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--v01b-border);
  transition: background 0.2s;
}

.v01b-mobile-menu a:hover {
  background: var(--v01b-hover);
  color: var(--v01b-accent);
}

/* ===== CAROUSEL ===== */
.v01b-carousel {
  position: relative;
  width: 100%;
  margin-top: 52px;
  overflow: hidden;
  border-radius: 0 0 var(--v01b-radius) var(--v01b-radius);
}

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

.v01b-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== MAIN CONTENT ===== */
.v01b-main {
  padding-top: 52px;
  padding-bottom: 20px;
}

.v01b-section {
  padding: 1.5rem 1rem;
}

.v01b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v01b-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v01b-primary);
}

.v01b-section-title i {
  margin-right: 0.5rem;
}

/* ===== GAME GRID ===== */
.v01b-category-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v01b-coral);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v01b-accent);
}

.v01b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.v01b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.v01b-game-item:hover {
  transform: scale(1.05);
}

.v01b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v01b-radius);
  border: 2px solid var(--v01b-border);
  object-fit: cover;
  transition: border-color 0.2s;
}

.v01b-game-item:hover img {
  border-color: var(--v01b-accent);
}

.v01b-game-item span {
  font-size: 1.1rem;
  color: var(--v01b-text);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CARDS ===== */
.v01b-card {
  background: var(--v01b-card-bg);
  border-radius: var(--v01b-radius);
  border: 1px solid var(--v01b-border);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.v01b-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v01b-accent);
  margin-bottom: 0.6rem;
}

.v01b-card p {
  font-size: 1.3rem;
  line-height: 1.5rem;
  color: var(--v01b-text);
}

/* ===== PROMO LINKS ===== */
.v01b-promo-link {
  display: inline-block;
  color: var(--v01b-accent);
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}

.v01b-promo-link:hover {
  color: var(--v01b-coral);
}

.v01b-promo-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--v01b-accent), #e6a800);
  color: var(--v01b-dark);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--v01b-radius);
  cursor: pointer;
  transition: transform 0.2s;
}

.v01b-promo-btn:hover {
  transform: scale(1.02);
}

/* ===== FOOTER ===== */
.v01b-footer {
  background: linear-gradient(180deg, var(--v01b-dark), #1a252f);
  padding: 2rem 1rem 1rem;
  border-top: 3px solid var(--v01b-primary);
}

.v01b-footer-brand {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.5rem;
}

.v01b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.v01b-footer-links a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(139, 0, 0, 0.3);
  color: var(--v01b-accent);
  border-radius: 4px;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.v01b-footer-links a:hover {
  background: var(--v01b-primary);
}

.v01b-footer-copy {
  font-size: 1.2rem;
  color: #888;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
}

/* ===== BOTTOM NAV ===== */
.v01b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #3a0505, #2a0000);
  border-top: 2px solid var(--v01b-accent);
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}

.v01b-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: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.3rem;
  border-radius: 8px;
}

.v01b-bottom-nav-btn:hover,
.v01b-bottom-nav-btn:focus {
  color: var(--v01b-accent);
  background: rgba(255, 191, 0, 0.1);
  transform: scale(1.1);
}

.v01b-bottom-nav-btn i,
.v01b-bottom-nav-btn span.material-symbols-outlined,
.v01b-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.v01b-bottom-nav-btn span.v01b-nav-label {
  font-size: 1rem;
  color: inherit;
  white-space: nowrap;
}

.v01b-bottom-nav-btn.v01b-active {
  color: var(--v01b-accent);
}

.v01b-bottom-nav-btn.v01b-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--v01b-accent);
  border-radius: 2px;
  margin-top: 1px;
}

/* ===== FAQ ===== */
.v01b-faq-item {
  background: var(--v01b-card-bg);
  border: 1px solid var(--v01b-border);
  border-radius: var(--v01b-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.v01b-faq-q {
  padding: 1rem;
  font-weight: 700;
  color: var(--v01b-accent);
  font-size: 1.4rem;
}

.v01b-faq-a {
  padding: 0 1rem 1rem;
  color: var(--v01b-text);
  font-size: 1.3rem;
  line-height: 1.5rem;
}

/* ===== MISC ===== */
.v01b-text-center { text-align: center; }
.v01b-text-accent { color: var(--v01b-accent); }
.v01b-text-coral { color: var(--v01b-coral); }
.v01b-text-pink { color: var(--v01b-pink); }
.v01b-mt-1 { margin-top: 1rem; }
.v01b-mb-1 { margin-bottom: 1rem; }
.v01b-mb-2 { margin-bottom: 2rem; }

.v01b-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--v01b-primary), transparent);
  margin: 1.5rem 0;
}

.v01b-badge {
  display: inline-block;
  background: var(--v01b-accent);
  color: var(--v01b-dark);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Winner list */
.v01b-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v01b-border);
  font-size: 1.3rem;
}

.v01b-winner-name {
  color: var(--v01b-accent);
  font-weight: 600;
}

.v01b-winner-amount {
  color: var(--v01b-coral);
  font-weight: 700;
}

/* Testimonial */
.v01b-testimonial {
  background: var(--v01b-card-bg);
  border-left: 3px solid var(--v01b-pink);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--v01b-radius) var(--v01b-radius) 0;
}

.v01b-testimonial-name {
  color: var(--v01b-accent);
  font-weight: 700;
  font-size: 1.3rem;
}

.v01b-testimonial-text {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 0.3rem;
}

/* Payment icons */
.v01b-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.v01b-payment-item {
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--v01b-radius);
  font-size: 1.2rem;
  color: var(--v01b-accent);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .v01b-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--v01b-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--v01b-primary);
  border-radius: 4px;
}
