/**
 * GK22 - Theme Stylesheet
 * All classes prefixed with ve29- for namespace isolation
 * Color palette: #FF9800 | #2E4057 | #FFAA00
 * Dark background: #2E4057, Light text on dark
 */

/* CSS Variables */
:root {
  --ve29-primary: #FF9800;
  --ve29-secondary: #2E4057;
  --ve29-accent: #FFAA00;
  --ve29-bg: #1a2a3a;
  --ve29-bg-dark: #0f1a26;
  --ve29-bg-card: #1e3045;
  --ve29-bg-card-hover: #253a52;
  --ve29-text: #f0f0f0;
  --ve29-text-muted: #a0b4c8;
  --ve29-border: #2d4a64;
  --ve29-success: #4caf50;
  --ve29-danger: #f44336;
  --ve29-radius: 8px;
  --ve29-radius-lg: 12px;
  --ve29-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --ve29-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background: var(--ve29-bg);
  color: var(--ve29-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--ve29-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ve29-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* Header */
.ve29-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--ve29-bg-dark) 0%, var(--ve29-secondary) 100%);
  border-bottom: 2px solid var(--ve29-primary);
  max-width: 430px; margin: 0 auto;
}
.ve29-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 52px;
}
.ve29-logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.ve29-logo img { width: 28px; height: 28px; border-radius: 4px; }
.ve29-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--ve29-primary); letter-spacing: 0.5px; }
.ve29-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.ve29-btn-register {
  background: var(--ve29-primary); color: #fff; border: none; border-radius: 6px;
  padding: 0.5rem 1.2rem; font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.ve29-btn-register:hover { background: var(--ve29-accent); transform: scale(1.03); }
.ve29-btn-login {
  background: transparent; color: var(--ve29-primary); border: 1.5px solid var(--ve29-primary);
  border-radius: 6px; padding: 0.5rem 1.2rem; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.ve29-btn-login:hover { background: var(--ve29-primary); color: #fff; }
.ve29-menu-toggle {
  background: none; border: none; color: var(--ve29-text); font-size: 2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}
.ve29-header-nav { display: none; }

/* Mobile Menu */
.ve29-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--ve29-bg-dark); z-index: 9999; transition: right 0.3s ease;
  padding: 1.6rem; overflow-y: auto;
}
.ve29-menu-active { right: 0; }
.ve29-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.ve29-overlay-active { opacity: 1; pointer-events: auto; }
.ve29-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.ve29-menu-title { font-size: 1.6rem; font-weight: 700; color: var(--ve29-primary); }
.ve29-menu-close { background: none; border: none; color: var(--ve29-text); font-size: 2rem; cursor: pointer; }
.ve29-menu-links a {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1rem;
  color: var(--ve29-text); font-size: 1.4rem; border-bottom: 1px solid var(--ve29-border);
  transition: background 0.2s, color 0.2s;
}
.ve29-menu-links a:hover { background: var(--ve29-bg-card); color: var(--ve29-primary); }
.ve29-menu-links a i, .ve29-menu-links a span.material-symbols-outlined { font-size: 2rem; width: 24px; text-align: center; }

/* Main Content */
main { padding-top: 56px; }

/* Carousel */
.ve29-carousel { position: relative; overflow: hidden; border-radius: 0; }
.ve29-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.ve29-slide-active { display: block; }
.ve29-slide img { width: 100%; height: 180px; object-fit: cover; }
.ve29-slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 1.2rem; color: #fff;
}
.ve29-slide-overlay h2 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.ve29-slide-overlay p { font-size: 1.2rem; opacity: 0.9; }
.ve29-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.ve29-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: background 0.2s;
}
.ve29-dot-active { background: var(--ve29-primary); width: 20px; border-radius: 4px; }

/* Sections */
.ve29-section { padding: 2rem 1.2rem; }
.ve29-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--ve29-primary);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ve29-primary);
  display: flex; align-items: center; gap: 0.8rem;
}
.ve29-section-title i { font-size: 2rem; }

/* Game Grid */
.ve29-game-category-title {
  font-size: 1.5rem; font-weight: 600; color: var(--ve29-accent);
  margin: 1.6rem 0 1rem; padding-left: 0.4rem;
  border-left: 3px solid var(--ve29-primary);
}
.ve29-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.ve29-game-item { text-align: center; cursor: pointer; transition: transform 0.2s; }
.ve29-game-item:hover { transform: scale(1.05); }
.ve29-game-item img {
  width: 72px; height: 72px; border-radius: 10px; margin: 0 auto 0.4rem;
  border: 2px solid var(--ve29-border); object-fit: cover;
  transition: border-color 0.2s;
}
.ve29-game-item:hover img { border-color: var(--ve29-primary); }
.ve29-game-name {
  font-size: 1.1rem; color: var(--ve29-text-muted); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 78px; margin: 0 auto;
}

/* Cards */
.ve29-card {
  background: var(--ve29-bg-card); border-radius: var(--ve29-radius-lg);
  padding: 1.6rem; margin-bottom: 1.2rem; box-shadow: var(--ve29-shadow);
  border: 1px solid var(--ve29-border);
}
.ve29-card h3 { font-size: 1.5rem; color: var(--ve29-primary); margin-bottom: 0.8rem; }
.ve29-card p { font-size: 1.3rem; color: var(--ve29-text-muted); line-height: 1.6rem; }

/* Promo Buttons */
.ve29-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--ve29-primary), var(--ve29-accent));
  color: #fff; padding: 0.8rem 2rem; border-radius: 8px; font-size: 1.4rem;
  font-weight: 700; border: none; cursor: pointer; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(255,152,0,0.3);
}
.ve29-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,152,0,0.4); color: #fff; }

/* Text link style for SEO */
.ve29-text-link { color: var(--ve29-accent); font-weight: 600; text-decoration: underline; }
.ve29-text-link:hover { color: var(--ve29-primary); }

/* Promo Link Button */
.ve29-link-btn {
  display: block; background: linear-gradient(135deg, var(--ve29-primary) 0%, var(--ve29-accent) 100%);
  color: #fff; padding: 1rem; border-radius: var(--ve29-radius); text-align: center;
  font-size: 1.4rem; font-weight: 700; margin: 1rem 0; cursor: pointer;
  border: none; transition: transform 0.2s;
}
.ve29-link-btn:hover { transform: scale(1.02); color: #fff; }

/* Footer */
.ve29-footer {
  background: var(--ve29-bg-dark); border-top: 2px solid var(--ve29-primary);
  padding: 2rem 1.2rem 8rem; margin-top: 2rem;
}
.ve29-footer-brand { margin-bottom: 1.2rem; }
.ve29-footer-brand p { font-size: 1.2rem; color: var(--ve29-text-muted); line-height: 1.6rem; }
.ve29-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.ve29-footer-links a {
  background: var(--ve29-bg-card); color: var(--ve29-text); padding: 0.4rem 1rem;
  border-radius: 4px; font-size: 1.1rem; border: 1px solid var(--ve29-border);
  transition: all 0.2s;
}
.ve29-footer-links a:hover { border-color: var(--ve29-primary); color: var(--ve29-primary); }
.ve29-footer-copy {
  font-size: 1.1rem; color: var(--ve29-text-muted); text-align: center;
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--ve29-border);
}

/* Bottom Nav */
.ve29-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--ve29-secondary) 0%, var(--ve29-bg-dark) 100%);
  border-top: 1.5px solid var(--ve29-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.4rem;
}
.ve29-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--ve29-text-muted); cursor: pointer; transition: color 0.2s, transform 0.1s;
  padding: 0.3rem 0; border-radius: 8px;
}
.ve29-bottom-btn:hover { color: var(--ve29-primary); transform: scale(1.08); }
.ve29-bottom-btn.active { color: var(--ve29-primary); }
.ve29-bottom-btn i,
.ve29-bottom-btn span.material-symbols-outlined,
.ve29-bottom-btn ion-icon { font-size: 22px; margin-bottom: 2px; }
.ve29-bottom-btn span.ve29-nav-label { font-size: 1rem; line-height: 1.2; }

/* Utilities */
.ve29-mb-1 { margin-bottom: 0.8rem; }
.ve29-mb-2 { margin-bottom: 1.6rem; }
.ve29-mt-1 { margin-top: 0.8rem; }
.ve29-mt-2 { margin-top: 1.6rem; }
.ve29-text-center { text-align: center; }
.ve29-text-accent { color: var(--ve29-accent); }
.ve29-text-primary { color: var(--ve29-primary); }
.ve29-hidden { display: none !important; }

/* Help page content */
.ve29-help-section { margin-bottom: 1.6rem; }
.ve29-help-section h2 {
  font-size: 1.6rem; color: var(--ve29-primary); margin-bottom: 0.8rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--ve29-border);
}
.ve29-help-section h3 {
  font-size: 1.4rem; color: var(--ve29-accent); margin: 1rem 0 0.5rem;
}
.ve29-help-section p, .ve29-help-section li {
  font-size: 1.3rem; color: var(--ve29-text-muted); line-height: 1.6rem; margin-bottom: 0.6rem;
}
.ve29-help-section ol, .ve29-help-section ul {
  padding-left: 1.6rem; margin-bottom: 0.8rem;
}
.ve29-help-section ol li { list-style: decimal; }
.ve29-help-section ul li { list-style: disc; }
.ve29-faq-item { margin-bottom: 1.2rem; }
.ve29-faq-q {
  font-size: 1.4rem; font-weight: 600; color: var(--ve29-accent);
  margin-bottom: 0.3rem;
}
.ve29-faq-a { font-size: 1.3rem; color: var(--ve29-text-muted); line-height: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .ve29-bottom-nav { display: none; }
  body { max-width: 430px; }
}
