/**
 * MaxGaming Theme Stylesheet
 * Website: maxgaming.cfd
 * Prefix: vf86-
 * Color palette: #CD853F | #B03060 | #CED4DA | #273746 | #DB7093
 * All classes use vf86- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --vf86-primary: #CD853F;
  --vf86-secondary: #B03060;
  --vf86-accent: #DB7093;
  --vf86-text-light: #CED4DA;
  --vf86-bg-dark: #273746;
  --vf86-bg-darker: #1a2632;
  --vf86-bg-card: #2c3e50;
  --vf86-bg-header: #1e2d3d;
  --vf86-border: #3a5068;
  --vf86-white: #ffffff;
  --vf86-gold: #FFD700;
  --vf86-shadow: rgba(0, 0, 0, 0.3);
  --vf86-radius: 8px;
  --vf86-radius-lg: 12px;
  --vf86-transition: all 0.3s ease;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--vf86-bg-dark);
  color: var(--vf86-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--vf86-primary); text-decoration: none; transition: var(--vf86-transition); }
a:hover { color: var(--vf86-accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.vf86-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--vf86-bg-darker);
  border-bottom: 1px solid var(--vf86-border);
  max-width: 430px; margin: 0 auto;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.vf86-header-left { display: flex; align-items: center; gap: 8px; }
.vf86-logo { width: 28px; height: 28px; border-radius: 6px; }
.vf86-site-name { font-size: 1.6rem; font-weight: 700; color: var(--vf86-primary); letter-spacing: -0.02em; }
.vf86-header-right { display: flex; align-items: center; gap: 8px; }
.vf86-header-btn {
  padding: 6px 14px; border-radius: 6px; font-size: 1.2rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--vf86-transition);
  display: flex; align-items: center; gap: 4px;
}
.vf86-btn-register { background: var(--vf86-secondary); color: var(--vf86-white); }
.vf86-btn-register:hover { background: #c4366e; transform: scale(1.03); }
.vf86-btn-login { background: transparent; color: var(--vf86-primary); border: 1px solid var(--vf86-primary); }
.vf86-btn-login:hover { background: var(--vf86-primary); color: var(--vf86-bg-darker); }
.vf86-menu-toggle {
  background: none; border: none; color: var(--vf86-text-light); font-size: 2rem;
  cursor: pointer; padding: 4px; display: flex; align-items: center;
}

/* Mobile Menu */
.vf86-mobile-menu {
  position: fixed; top: 0; left: 0; width: 260px; height: 100vh; z-index: 9999;
  background: var(--vf86-bg-darker); border-right: 1px solid var(--vf86-border);
  transform: translateX(-100%); visibility: hidden; transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto; padding-top: 6rem;
}
.vf86-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 9998;
  background: rgba(0, 0, 0, 0.6); display: none;
}
.vf86-mobile-menu ul { list-style: none; padding: 0; }
.vf86-mobile-menu li { border-bottom: 1px solid var(--vf86-border); }
.vf86-mobile-menu a {
  display: flex; align-items: center; gap: 10px; padding: 1.2rem 1.6rem;
  color: var(--vf86-text-light); font-size: 1.4rem; transition: var(--vf86-transition);
}
.vf86-mobile-menu a:hover { background: var(--vf86-bg-card); color: var(--vf86-primary); }
.vf86-mobile-menu .material-icons, .vf86-mobile-menu .fas, .vf86-mobile-menu .bi {
  font-size: 2rem; color: var(--vf86-primary);
}

/* Main Content */
.vf86-main { padding-top: 52px; min-height: 100vh; }

/* Carousel */
.vf86-carousel {
  position: relative; width: 100%; height: 200px; overflow: hidden;
  border-radius: 0 0 var(--vf86-radius-lg) var(--vf86-radius-lg);
}
.vf86-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.vf86-slide:first-child { opacity: 1; visibility: visible; }
.vf86-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.vf86-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.vf86-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--vf86-transition); border: none;
}
.vf86-dot-active { background: var(--vf86-primary); width: 20px; border-radius: 4px; }

/* Section Titles */
.vf86-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--vf86-primary);
  margin: 2rem 0 1rem; padding-left: 1rem;
  border-left: 3px solid var(--vf86-secondary);
}
.vf86-section-subtitle {
  font-size: 1.3rem; color: var(--vf86-text-light); opacity: 0.8;
  margin-bottom: 1rem; padding-left: 1rem;
}

/* Game Grid */
.vf86-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 1rem;
}
.vf86-game-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: var(--vf86-transition);
  padding: 6px; border-radius: var(--vf86-radius);
}
.vf86-game-item:hover { transform: translateY(-2px); background: var(--vf86-bg-card); }
.vf86-game-img {
  width: 64px; height: 64px; border-radius: var(--vf86-radius);
  object-fit: cover; border: 1px solid var(--vf86-border);
}
.vf86-game-name {
  font-size: 1rem; color: var(--vf86-text-light); text-align: center;
  line-height: 1.2rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 72px;
}

/* Cards */
.vf86-card {
  background: var(--vf86-bg-card); border-radius: var(--vf86-radius-lg);
  padding: 1.5rem; margin: 1rem; border: 1px solid var(--vf86-border);
}
.vf86-card-title {
  font-size: 1.5rem; font-weight: 600; color: var(--vf86-primary); margin-bottom: 0.8rem;
}
.vf86-card-text { font-size: 1.2rem; color: var(--vf86-text-light); line-height: 1.6rem; }

/* Promo Buttons */
.vf86-promo-btn {
  display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 1.4rem;
  font-weight: 700; cursor: pointer; border: none; transition: var(--vf86-transition);
  text-align: center; color: var(--vf86-white);
}
.vf86-promo-btn-primary { background: linear-gradient(135deg, var(--vf86-primary), var(--vf86-secondary)); }
.vf86-promo-btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 15px var(--vf86-shadow); }
.vf86-promo-btn-accent { background: linear-gradient(135deg, var(--vf86-accent), var(--vf86-secondary)); }
.vf86-promo-btn-accent:hover { transform: scale(1.05); }

/* Promo Link Text */
.vf86-promo-link {
  color: var(--vf86-primary); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: var(--vf86-transition);
}
.vf86-promo-link:hover { color: var(--vf86-accent); }

/* Feature Grid */
.vf86-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 1rem;
}
.vf86-feature-item {
  background: var(--vf86-bg-card); border-radius: var(--vf86-radius);
  padding: 1.2rem; text-align: center; border: 1px solid var(--vf86-border);
  transition: var(--vf86-transition);
}
.vf86-feature-item:hover { border-color: var(--vf86-primary); }
.vf86-feature-icon { font-size: 2.4rem; color: var(--vf86-primary); margin-bottom: 6px; }
.vf86-feature-title { font-size: 1.2rem; font-weight: 600; color: var(--vf86-primary); }
.vf86-feature-desc { font-size: 1rem; color: var(--vf86-text-light); margin-top: 4px; opacity: 0.85; }

/* Testimonial */
.vf86-testimonial {
  background: var(--vf86-bg-card); border-radius: var(--vf86-radius-lg);
  padding: 1.2rem; margin: 8px 1rem; border-left: 3px solid var(--vf86-primary);
}
.vf86-testimonial-text { font-size: 1.2rem; font-style: italic; line-height: 1.6rem; }
.vf86-testimonial-author { font-size: 1.1rem; color: var(--vf86-primary); margin-top: 6px; font-weight: 600; }

/* Winner Item */
.vf86-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 1rem; border-bottom: 1px solid var(--vf86-border);
}
.vf86-winner-name { font-size: 1.2rem; color: var(--vf86-text-light); }
.vf86-winner-game { font-size: 1rem; color: var(--vf86-primary); }
.vf86-winner-amount { font-size: 1.3rem; color: var(--vf86-gold); font-weight: 700; }

/* Payment Methods */
.vf86-payment-grid {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 0 1rem; justify-content: center;
}
.vf86-payment-item {
  background: var(--vf86-bg-card); border-radius: var(--vf86-radius);
  padding: 8px 14px; font-size: 1.1rem; color: var(--vf86-text-light);
  border: 1px solid var(--vf86-border); display: flex; align-items: center; gap: 6px;
}

/* Bottom Nav */
.vf86-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--vf86-bg-darker); border-top: 1px solid var(--vf86-border);
  max-width: 430px; margin: 0 auto;
  height: 60px; display: flex; justify-content: space-around; align-items: center;
  padding: 0 4px;
}
.vf86-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; cursor: pointer; border: none;
  background: transparent; color: var(--vf86-text-light); transition: var(--vf86-transition);
  gap: 2px; position: relative;
}
.vf86-bottom-btn:hover, .vf86-bottom-btn:focus { color: var(--vf86-primary); }
.vf86-bottom-btn:active { transform: scale(0.92); }
.vf86-bottom-btn .material-icons, .vf86-bottom-btn .fas, .vf86-bottom-btn .far,
.vf86-bottom-btn .bi, .vf86-bottom-btn ion-icon {
  font-size: 22px; transition: var(--vf86-transition);
}
.vf86-bottom-btn span { font-size: 1rem; line-height: 1.2rem; }
.vf86-bottom-btn.vf86-active { color: var(--vf86-primary); }
.vf86-bottom-btn.vf86-active::after {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; background: var(--vf86-primary); border-radius: 2px;
}

/* Footer */
.vf86-footer {
  background: var(--vf86-bg-darker); padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--vf86-border); text-align: center;
}
.vf86-footer-desc { font-size: 1.1rem; color: var(--vf86-text-light); line-height: 1.5rem; margin-bottom: 1rem; opacity: 0.85; }
.vf86-footer-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1rem; }
.vf86-footer-link {
  padding: 6px 12px; background: var(--vf86-bg-card); border-radius: 6px;
  font-size: 1.1rem; color: var(--vf86-text-light); border: 1px solid var(--vf86-border);
  cursor: pointer; transition: var(--vf86-transition);
}
.vf86-footer-link:hover { color: var(--vf86-primary); border-color: var(--vf86-primary); }
.vf86-partners { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 1rem 0; }
.vf86-partner-img { width: 40px; height: 40px; opacity: 0.7; transition: var(--vf86-transition); }
.vf86-partner-img:hover { opacity: 1; }
.vf86-copyright { font-size: 1rem; color: var(--vf86-text-light); opacity: 0.6; margin-top: 1rem; padding-bottom: 70px; }

/* Help Page */
.vf86-help-section { padding: 0 1rem; margin-bottom: 1.5rem; }
.vf86-help-title { font-size: 1.5rem; font-weight: 700; color: var(--vf86-primary); margin-bottom: 0.6rem; }
.vf86-help-text { font-size: 1.2rem; color: var(--vf86-text-light); line-height: 1.7rem; }
.vf86-faq-item { margin-bottom: 1rem; }
.vf86-faq-q { font-size: 1.3rem; font-weight: 600; color: var(--vf86-primary); margin-bottom: 4px; }
.vf86-faq-a { font-size: 1.2rem; color: var(--vf86-text-light); line-height: 1.6rem; padding-left: 1rem; border-left: 2px solid var(--vf86-border); }

/* Internal link style */
.vf86-internal-link { color: var(--vf86-accent); text-decoration: underline; }

/* CTA Section */
.vf86-cta { text-align: center; padding: 2rem 1rem; }
.vf86-cta-title { font-size: 2rem; font-weight: 700; color: var(--vf86-primary); margin-bottom: 0.8rem; }
.vf86-cta-text { font-size: 1.2rem; color: var(--vf86-text-light); margin-bottom: 1.2rem; }

/* App Download Section */
.vf86-app-section {
  background: linear-gradient(135deg, var(--vf86-bg-card), var(--vf86-bg-darker));
  padding: 1.5rem; margin: 1rem; border-radius: var(--vf86-radius-lg);
  text-align: center; border: 1px solid var(--vf86-border);
}
.vf86-app-section .vf86-promo-btn { margin-top: 1rem; }

/* Responsive: hide bottom nav on desktop */
@media (min-width: 769px) {
  .vf86-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  .vf86-main { padding-bottom: 80px; }
  .vf86-copyright { padding-bottom: 70px; }
}
