/**
 * CV999 Packaging - Core Stylesheet
 * All classes prefixed with vc42- for namespace isolation
 * Mobile-first design, max-width 430px
 * Color palette: #00BFFF | #0F0F23 | #AFEEEE | #191970
 */

/* Root variables */
:root {
  --vc42-primary: #00BFFF;
  --vc42-bg: #0F0F23;
  --vc42-text: #AFEEEE;
  --vc42-dark: #191970;
  --vc42-accent: #00BFFF;
  --vc42-white: #FFFFFF;
  --vc42-gray: #8899AA;
  --vc42-light-bg: #141432;
  --vc42-card-bg: #1A1A3E;
  --vc42-border: #2A2A5A;
  --vc42-success: #00E676;
  --vc42-warning: #FFD740;
  --vc42-danger: #FF5252;
  --vc42-radius: 0.8rem;
  --vc42-radius-sm: 0.4rem;
  --vc42-shadow: 0 2px 12px rgba(0, 191, 255, 0.15);
  --vc42-transition: all 0.3s ease;
}

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

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

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

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

a:hover {
  color: var(--vc42-white);
}

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

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

.vc42-wrapper {
  padding: 1rem;
}

/* Header */
.vc42-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--vc42-dark), var(--vc42-bg));
  border-bottom: 1px solid var(--vc42-border);
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vc42-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vc42-logo {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
}

.vc42-site-name {
  color: var(--vc42-primary);
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}

.vc42-header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vc42-btn-register,
.vc42-btn-login {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--vc42-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vc42-transition);
  min-height: 32px;
}

.vc42-btn-register {
  background: linear-gradient(135deg, #00BFFF, #0099CC);
  color: #0F0F23;
}

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

.vc42-btn-register:hover,
.vc42-btn-login:hover {
  transform: scale(1.05);
  box-shadow: var(--vc42-shadow);
}

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

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

.vc42-menu-active {
  right: 0 !important;
}

.vc42-mobile-menu .vc42-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--vc42-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.vc42-mobile-menu ul {
  list-style: none;
  margin-top: 3rem;
}

.vc42-mobile-menu li {
  margin-bottom: 0.5rem;
}

.vc42-mobile-menu a {
  display: block;
  padding: 1rem;
  color: var(--vc42-text);
  font-size: 1.4rem;
  border-radius: var(--vc42-radius-sm);
  transition: var(--vc42-transition);
}

.vc42-mobile-menu a:hover {
  background: var(--vc42-border);
  color: var(--vc42-primary);
}

/* Menu overlay */
.vc42-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.vc42-overlay-active {
  display: block !important;
}

/* Main content spacing for fixed header */
.vc42-main {
  padding-top: 5.2rem;
  padding-bottom: 1rem;
}

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

/* Carousel */
.vc42-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--vc42-radius);
  margin-bottom: 1.5rem;
}

.vc42-carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

.vc42-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.vc42-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc42-slide-active {
  opacity: 1;
}

.vc42-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

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

.vc42-dot-active {
  background: var(--vc42-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section headings */
.vc42-section {
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.vc42-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vc42-white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vc42-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vc42-section-title i,
.vc42-section-title .material-icons {
  color: var(--vc42-primary);
}

/* Category header */
.vc42-cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, var(--vc42-dark), var(--vc42-card-bg));
  border-radius: var(--vc42-radius-sm);
  border-left: 3px solid var(--vc42-primary);
}

.vc42-cat-header i {
  font-size: 1.8rem;
  color: var(--vc42-primary);
}

.vc42-cat-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vc42-white);
}

/* Game grid */
.vc42-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.vc42-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--vc42-transition);
  padding: 0.4rem;
  border-radius: var(--vc42-radius-sm);
}

.vc42-game-item:hover {
  transform: translateY(-2px);
  background: var(--vc42-card-bg);
}

.vc42-game-item img {
  width: 60px;
  height: 60px;
  border-radius: 0.6rem;
  margin-bottom: 0.3rem;
  object-fit: cover;
  border: 2px solid var(--vc42-border);
  transition: var(--vc42-transition);
}

.vc42-game-item:hover img {
  border-color: var(--vc42-primary);
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.3);
}

.vc42-game-item span {
  font-size: 1rem;
  color: var(--vc42-text);
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 80px;
}

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

.vc42-card h3 {
  font-size: 1.4rem;
  color: var(--vc42-primary);
  margin-bottom: 0.8rem;
}

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

/* Promo CTA */
.vc42-cta-box {
  background: linear-gradient(135deg, var(--vc42-dark), #0D2137);
  border: 1px solid var(--vc42-primary);
  border-radius: var(--vc42-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.vc42-cta-box h3 {
  font-size: 1.6rem;
  color: var(--vc42-primary);
  margin-bottom: 0.8rem;
}

.vc42-cta-box p {
  font-size: 1.3rem;
  color: var(--vc42-text);
  margin-bottom: 1rem;
}

.vc42-btn-promo {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #00BFFF, #0088BB);
  color: #0F0F23;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  border-radius: var(--vc42-radius-sm);
  cursor: pointer;
  transition: var(--vc42-transition);
}

.vc42-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(0, 191, 255, 0.4);
}

/* Text promo link */
.vc42-text-link {
  color: var(--vc42-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.vc42-text-link:hover {
  color: var(--vc42-white);
}

/* Footer */
.vc42-footer {
  background: linear-gradient(135deg, #0A0A1A, var(--vc42-dark));
  padding: 2rem 1rem;
  border-top: 1px solid var(--vc42-border);
  margin-top: 2rem;
}

.vc42-footer-brand {
  color: var(--vc42-gray);
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
}

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

.vc42-footer-links a {
  padding: 0.5rem 1rem;
  background: var(--vc42-card-bg);
  border: 1px solid var(--vc42-border);
  border-radius: var(--vc42-radius-sm);
  color: var(--vc42-text);
  font-size: 1.1rem;
  transition: var(--vc42-transition);
}

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

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

/* Bottom fixed nav */
.vc42-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--vc42-dark), #0A0A1A);
  border-top: 1px solid var(--vc42-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.vc42-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(--vc42-gray);
  cursor: pointer;
  transition: var(--vc42-transition);
  padding: 0.3rem;
  border-radius: var(--vc42-radius-sm);
}

.vc42-bottom-nav-btn i,
.vc42-bottom-nav-btn .material-icons,
.vc42-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 0.1rem;
}

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

.vc42-bottom-nav-btn:hover,
.vc42-bottom-nav-btn:focus {
  color: var(--vc42-primary);
  transform: scale(1.08);
}

.vc42-btn-touch {
  background: var(--vc42-card-bg) !important;
  color: var(--vc42-primary) !important;
}

.vc42-nav-active {
  color: var(--vc42-primary) !important;
}

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

/* Winner list */
.vc42-winner-list {
  list-style: none;
}

.vc42-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--vc42-border);
  font-size: 1.2rem;
}

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

.vc42-winner-name {
  color: var(--vc42-primary);
  font-weight: 600;
}

.vc42-winner-amount {
  color: var(--vc42-success);
  font-weight: 700;
}

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

.vc42-payment-item {
  background: var(--vc42-card-bg);
  border: 1px solid var(--vc42-border);
  border-radius: var(--vc42-radius-sm);
  padding: 0.5rem 1rem;
  color: var(--vc42-text);
  font-size: 1.1rem;
}

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

.vc42-testimonial-text {
  font-size: 1.2rem;
  color: var(--vc42-text);
  margin-bottom: 0.5rem;
  line-height: 1.8rem;
}

.vc42-testimonial-author {
  font-size: 1.1rem;
  color: var(--vc42-gray);
}

/* Feature list */
.vc42-feature-list {
  list-style: none;
}

.vc42-feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--vc42-text);
  line-height: 1.8rem;
}

.vc42-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--vc42-primary);
  border-radius: 50%;
}

/* FAQ */
.vc42-faq-item {
  margin-bottom: 1rem;
}

.vc42-faq-q {
  font-weight: 600;
  color: var(--vc42-primary);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.vc42-faq-a {
  color: var(--vc42-text);
  font-size: 1.2rem;
  line-height: 1.8rem;
  padding-left: 1rem;
}

/* Help page content */
.vc42-help-content {
  padding: 0 0.5rem;
}

.vc42-help-content h2 {
  font-size: 1.6rem;
  color: var(--vc42-white);
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--vc42-border);
}

.vc42-help-content h3 {
  font-size: 1.4rem;
  color: var(--vc42-primary);
  margin: 1.2rem 0 0.6rem;
}

.vc42-help-content p {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--vc42-text);
  margin-bottom: 0.8rem;
}

.vc42-help-content ol,
.vc42-help-content ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.vc42-help-content li {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--vc42-text);
  margin-bottom: 0.4rem;
}

/* App download section */
.vc42-app-section {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--vc42-dark), var(--vc42-card-bg));
  border-radius: var(--vc42-radius);
  border: 1px solid var(--vc42-border);
}

.vc42-app-section h3 {
  font-size: 1.5rem;
  color: var(--vc42-white);
  margin-bottom: 0.5rem;
}

.vc42-app-section p {
  font-size: 1.2rem;
  color: var(--vc42-gray);
  margin-bottom: 1rem;
}

/* Desktop only elements */
.vc42-desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .vc42-desktop-only {
    display: block;
  }
}

/* Utility */
.vc42-text-center {
  text-align: center;
}

.vc42-mb-1 {
  margin-bottom: 0.5rem;
}

.vc42-mb-2 {
  margin-bottom: 1rem;
}

.vc42-mb-3 {
  margin-bottom: 1.5rem;
}

.vc42-mt-2 {
  margin-top: 1rem;
}

.vc42-text-primary {
  color: var(--vc42-primary);
}

.vc42-text-white {
  color: var(--vc42-white);
}

.vc42-text-sm {
  font-size: 1.1rem;
}

.vc42-fw-bold {
  font-weight: 700;
}
