/* bet 100 - Theme Stylesheet */
/* All classes prefixed with vf58- for namespace isolation */

:root {
  --vf58-bg: #141414;
  --vf58-surface: #1E1E1E;
  --vf58-card: #252525;
  --vf58-primary: #2F2F2F;
  --vf58-text: #F5F5F5;
  --vf58-text-dim: #A0A0A0;
  --vf58-accent: #FFF176;
  --vf58-highlight: #FF9800;
  --vf58-success: #4CAF50;
  --vf58-danger: #F44336;
  --vf58-radius: 8px;
  --vf58-radius-lg: 12px;
  --vf58-header-h: 56px;
  --vf58-bottom-h: 60px;
}

/* Reset & Base */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--vf58-bg);
  color: var(--vf58-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.vf58-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Header */
.vf58-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--vf58-header-h);
  background: var(--vf58-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.vf58-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vf58-header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.vf58-header-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vf58-accent);
  letter-spacing: -0.5px;
}

.vf58-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vf58-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--vf58-radius);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 38px;
}

.vf58-btn-register {
  background: var(--vf58-highlight);
  color: #fff;
}

.vf58-btn-register:hover {
  background: #F57C00;
  transform: scale(1.03);
}

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

.vf58-btn-login:hover {
  background: rgba(255, 241, 118, 0.1);
}

.vf58-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  color: var(--vf58-text);
  cursor: pointer;
  font-size: 2.2rem;
}

/* Mobile Menu */
.vf58-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
}

.vf58-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--vf58-surface);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
}

.vf58-mobile-menu-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.vf58-mobile-menu-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vf58-accent);
}

.vf58-mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--vf58-text-dim);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf58-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--vf58-text);
  font-size: 1.4rem;
  transition: background 0.2s;
}

.vf58-menu-link:hover {
  background: rgba(255, 241, 118, 0.06);
  color: var(--vf58-accent);
}

.vf58-menu-link i,
.vf58-menu-link .material-icons {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Main Content */
.vf58-main {
  padding-top: calc(var(--vf58-header-h) + 8px);
  padding-bottom: 20px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .vf58-main {
    padding-bottom: calc(var(--vf58-bottom-h) + 20px);
  }
}

/* Carousel */
.vf58-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--vf58-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 20px;
}

.vf58-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.vf58-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--vf58-carousel-transition, 0.5s) ease;
}

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

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

.vf58-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.vf58-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

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

/* Section */
.vf58-section {
  margin-bottom: 24px;
}

.vf58-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.vf58-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--vf58-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vf58-section-title i,
.vf58-section-title .material-icons {
  font-size: 20px;
  color: var(--vf58-highlight);
}

.vf58-section-more {
  font-size: 1.2rem;
  color: var(--vf58-text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Game Grid */
.vf58-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 380px) {
  .vf58-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

.vf58-game-card {
  background: var(--vf58-card);
  border-radius: var(--vf58-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.vf58-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.15);
}

.vf58-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vf58-game-card-name {
  padding: 4px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--vf58-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Promo Banner */
.vf58-promo-banner {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  border-radius: var(--vf58-radius-lg);
  padding: 20px 16px;
  margin-bottom: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.vf58-promo-banner:hover {
  transform: scale(1.02);
}

.vf58-promo-banner h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.vf58-promo-banner p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.vf58-promo-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--vf58-accent);
  color: var(--vf58-bg);
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: var(--vf58-radius);
  border: none;
  cursor: pointer;
}

/* Feature Cards */
.vf58-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.vf58-feature-card {
  background: var(--vf58-card);
  border-radius: var(--vf58-radius-lg);
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(255, 152, 0, 0.1);
}

.vf58-feature-card .material-icons,
.vf58-feature-card i {
  font-size: 28px;
  color: var(--vf58-highlight);
  margin-bottom: 8px;
}

.vf58-feature-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--vf58-text);
}

.vf58-feature-card p {
  font-size: 1.1rem;
  color: var(--vf58-text-dim);
  line-height: 1.4;
}

/* CTA Section */
.vf58-cta-section {
  background: linear-gradient(135deg, var(--vf58-surface), #2a1a00);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: var(--vf58-radius-lg);
  padding: 24px 16px;
  margin-bottom: 20px;
  text-align: center;
}

.vf58-cta-section h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vf58-accent);
  margin-bottom: 8px;
}

.vf58-cta-section p {
  font-size: 1.3rem;
  color: var(--vf58-text-dim);
  margin-bottom: 16px;
}

.vf58-cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.vf58-footer {
  background: var(--vf58-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 12px 16px;
  text-align: center;
}

.vf58-footer-brand {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vf58-accent);
  margin-bottom: 8px;
}

.vf58-footer-desc {
  font-size: 1.2rem;
  color: var(--vf58-text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
}

.vf58-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.vf58-footer-links a {
  font-size: 1.2rem;
  color: var(--vf58-text-dim);
  transition: color 0.2s;
}

.vf58-footer-links a:hover {
  color: var(--vf58-accent);
}

.vf58-footer-copy {
  font-size: 1.1rem;
  color: var(--vf58-text-dim);
  opacity: 0.6;
}

/* Bottom Navigation */
.vf58-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--vf58-bottom-h);
  background: var(--vf58-surface);
  border-top: 1px solid rgba(255, 152, 0, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.vf58-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(--vf58-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  gap: 2px;
  -webkit-tap-highlight-color: transparent;
}

.vf58-bottom-nav-btn i,
.vf58-bottom-nav-btn .material-icons {
  font-size: 22px;
  transition: color 0.2s, transform 0.2s;
}

.vf58-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 600;
}

.vf58-bottom-nav-btn:hover i,
.vf58-bottom-nav-btn:hover .material-icons,
.vf58-bottom-nav-btn:hover span {
  color: var(--vf58-accent);
  transform: scale(1.1);
}

.vf58-bottom-nav-btn.vf58-nav-active i,
.vf58-bottom-nav-btn.vf58-nav-active .material-icons,
.vf58-bottom-nav-btn.vf58-nav-active span {
  color: var(--vf58-highlight);
}

@media (min-width: 769px) {
  .vf58-bottom-nav {
    display: none;
  }
  .vf58-main {
    padding-bottom: 20px;
  }
}

/* Lazy image placeholder */
.vf58-img-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0.6;
}

/* Content Typography */
.vf58-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vf58-accent);
  margin: 20px 0 10px;
}

.vf58-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vf58-highlight);
  margin: 16px 0 8px;
}

.vf58-content p {
  font-size: 1.3rem;
  color: var(--vf58-text-dim);
  line-height: 1.7;
  margin-bottom: 10px;
}

.vf58-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.vf58-content li {
  font-size: 1.3rem;
  color: var(--vf58-text-dim);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Desktop navigation (hidden on mobile) */
@media (min-width: 769px) {
  .vf58-desktop-nav {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .vf58-desktop-nav a {
    font-size: 1.3rem;
    color: var(--vf58-text-dim);
    transition: color 0.2s;
  }
  .vf58-desktop-nav a:hover {
    color: var(--vf58-accent);
  }
}

@media (max-width: 768px) {
  .vf58-desktop-nav {
    display: none;
  }
}

/* Page hero for help/detail pages */
.vf58-page-hero {
  background: linear-gradient(135deg, #2a1a00, var(--vf58-bg));
  padding: 20px 12px;
  text-align: center;
  border-radius: var(--vf58-radius-lg);
  margin-bottom: 20px;
}

.vf58-page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vf58-accent);
  margin-bottom: 6px;
}

.vf58-page-hero p {
  font-size: 1.3rem;
  color: var(--vf58-text-dim);
}

/* Inline CTA */
.vf58-inline-cta {
  background: linear-gradient(135deg, #FF9800, #E65100);
  border-radius: var(--vf58-radius);
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  margin: 16px 0;
  transition: transform 0.2s;
}

.vf58-inline-cta:hover {
  transform: scale(1.02);
}

.vf58-inline-cta h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.vf58-inline-cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Hot badge */
.vf58-hot-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #F44336;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
