/**
 * 1777 apps - Design Stylesheet
 * Prefix: vcd1-
 * Palette: #0C0C0C | #FFEF94 | #F4A460 | #DAA520
 * Mobile-first, max-width: 430px
 */

:root {
  --vcd1-primary: #DAA520;
  --vcd1-primary-light: #FFEF94;
  --vcd1-accent: #F4A460;
  --vcd1-bg: #0C0C0C;
  --vcd1-bg-card: #1a1a1a;
  --vcd1-bg-elevated: #222222;
  --vcd1-text: #FFEF94;
  --vcd1-text-muted: #c9b458;
  --vcd1-text-dark: #0C0C0C;
  --vcd1-border: #333333;
  --vcd1-gold: #DAA520;
  --vcd1-sandy: #F4A460;
  --vcd1-cream: #FFEF94;
  --vcd1-shadow: rgba(218, 165, 32, 0.15);
  --vcd1-radius: 1.2rem;
  --vcd1-radius-sm: 0.8rem;
  --vcd1-transition: all 0.3s ease;
}

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

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

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

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

.vcd1-wrapper {
  padding: 1.5rem 1.2rem;
}

/* ========== HEADER ========== */
.vcd1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #0C0C0C 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--vcd1-gold);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.vcd1-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.vcd1-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
}

.vcd1-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vcd1-gold);
  letter-spacing: 0.5px;
}

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

.vcd1-btn-register {
  background: linear-gradient(135deg, var(--vcd1-gold), var(--vcd1-sandy));
  color: var(--vcd1-text-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: var(--vcd1-transition);
  min-height: 3.2rem;
  min-width: 6rem;
}

.vcd1-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--vcd1-shadow);
}

.vcd1-btn-login {
  background: transparent;
  color: var(--vcd1-cream);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: 1.5px solid var(--vcd1-gold);
  cursor: pointer;
  transition: var(--vcd1-transition);
  min-height: 3.2rem;
}

.vcd1-btn-login:hover {
  background: rgba(218, 165, 32, 0.15);
}

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

/* ========== MOBILE MENU ========== */
#vcd1-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #111 0%, #0C0C0C 100%);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.vcd1-menu-open {
  right: 0 !important;
}

#vcd1-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vcd1-overlay-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.vcd1-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vcd1-border);
}

.vcd1-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vcd1-gold);
}

.vcd1-menu-close {
  background: none;
  border: none;
  color: var(--vcd1-cream);
  font-size: 2rem;
  cursor: pointer;
}

.vcd1-menu-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--vcd1-cream);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--vcd1-transition);
}

.vcd1-menu-nav a:hover {
  color: var(--vcd1-gold);
  padding-left: 0.5rem;
}

/* ========== CAROUSEL ========== */
.vcd1-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--vcd1-radius);
  margin-top: 1rem;
}

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

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

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

.vcd1-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--vcd1-radius);
}

.vcd1-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

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

.vcd1-dot-active {
  background: var(--vcd1-gold);
  transform: scale(1.3);
}

/* ========== GAME GRID ========== */
.vcd1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vcd1-gold);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--vcd1-sandy);
  line-height: 1.4;
}

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

.vcd1-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--vcd1-transition);
  border-radius: var(--vcd1-radius-sm);
  padding: 0.5rem 0.2rem;
  text-decoration: none;
}

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

.vcd1-card-touch {
  transform: scale(0.95);
  opacity: 0.85;
}

.vcd1-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--vcd1-radius-sm);
  border: 1.5px solid var(--vcd1-border);
}

.vcd1-game-card span {
  font-size: 1rem;
  color: var(--vcd1-cream);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== CONTENT MODULES ========== */
.vcd1-content-block {
  background: var(--vcd1-bg-card);
  border-radius: var(--vcd1-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--vcd1-border);
}

.vcd1-content-block h2 {
  font-size: 1.7rem;
  color: var(--vcd1-gold);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.vcd1-content-block h3 {
  font-size: 1.5rem;
  color: var(--vcd1-sandy);
  margin: 1rem 0 0.5rem;
}

.vcd1-content-block p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--vcd1-cream);
  margin-bottom: 0.8rem;
}

.vcd1-promo-text {
  color: var(--vcd1-gold);
  font-weight: 700;
  cursor: pointer;
  transition: var(--vcd1-transition);
  text-decoration: underline;
}

.vcd1-promo-text:hover {
  color: var(--vcd1-sandy);
}

.vcd1-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--vcd1-gold), var(--vcd1-sandy));
  color: var(--vcd1-text-dark);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  border-radius: 2.5rem;
  cursor: pointer;
  border: none;
  transition: var(--vcd1-transition);
  text-align: center;
  min-height: 4rem;
}

.vcd1-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px var(--vcd1-shadow);
}

.vcd1-promo-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--vcd1-gold);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  border: 1.5px solid var(--vcd1-gold);
  transition: var(--vcd1-transition);
}

.vcd1-promo-btn-outline:hover {
  background: rgba(218, 165, 32, 0.15);
}

/* ========== FAQ ========== */
.vcd1-faq-item {
  border-bottom: 1px solid var(--vcd1-border);
  padding: 1rem 0;
}

.vcd1-faq-item strong {
  color: var(--vcd1-gold);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.4rem;
}

.vcd1-faq-item p {
  color: var(--vcd1-cream);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* ========== FEATURES LIST ========== */
.vcd1-feature-list {
  list-style: none;
  padding: 0;
}

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

.vcd1-feature-list li::before {
  content: '\f005';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--vcd1-gold);
  font-size: 1rem;
}

/* ========== WINNER TABLE ========== */
.vcd1-winner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
}

.vcd1-winner-table th {
  background: var(--vcd1-bg-elevated);
  color: var(--vcd1-gold);
  padding: 0.6rem 0.4rem;
  text-align: left;
  font-weight: 600;
}

.vcd1-winner-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--vcd1-border);
  color: var(--vcd1-cream);
}

/* ========== PAYMENT METHODS ========== */
.vcd1-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.vcd1-payment-item {
  background: var(--vcd1-bg-elevated);
  border: 1px solid var(--vcd1-border);
  border-radius: var(--vcd1-radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--vcd1-cream);
}

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

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

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

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

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

.vcd1-bottom-nav-btn:active {
  transform: scale(0.9);
}

/* ========== FOOTER ========== */
.vcd1-footer {
  background: var(--vcd1-bg-card);
  padding: 2rem 1.2rem 1.5rem;
  border-top: 1px solid var(--vcd1-border);
  margin-top: 2rem;
}

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

.vcd1-footer-brand p {
  font-size: 1.2rem;
  color: var(--vcd1-text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.vcd1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vcd1-footer-links a {
  color: var(--vcd1-cream);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--vcd1-border);
  border-radius: 1.5rem;
  transition: var(--vcd1-transition);
}

.vcd1-footer-links a:hover {
  border-color: var(--vcd1-gold);
  color: var(--vcd1-gold);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  main {
    padding-top: 5.5rem;
    padding-bottom: 75px;
  }
}

@media (min-width: 769px) {
  .vcd1-bottom-nav {
    display: none;
  }
}

/* ========== UTILITY ========== */
.vcd1-text-center { text-align: center; }
.vcd1-text-gold { color: var(--vcd1-gold); }
.vcd1-text-sandy { color: var(--vcd1-sandy); }
.vcd1-mt-1 { margin-top: 1rem; }
.vcd1-mt-2 { margin-top: 2rem; }
.vcd1-mb-1 { margin-bottom: 1rem; }
.vcd1-mb-2 { margin-bottom: 2rem; }
.vcd1-p-1 { padding: 1rem; }
.vcd1-p-2 { padding: 2rem; }

/* Animations */
@keyframes vcd1-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.vcd1-animate-pulse {
  animation: vcd1-pulse 2s infinite;
}

/* Internal link styles */
.vcd1-internal-link {
  color: var(--vcd1-sandy);
  text-decoration: underline;
  transition: var(--vcd1-transition);
}

.vcd1-internal-link:hover {
  color: var(--vcd1-gold);
}
