/**
 * Nimo Gaming - Layout Stylesheet
 * All classes prefixed with vc0f-
 * Mobile-first design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --vc0f-primary: #FF7F50;
  --vc0f-primary-dark: #A0522D;
  --vc0f-bg: #0D1117;
  --vc0f-bg-alt: #151B23;
  --vc0f-bg-card: #1A2029;
  --vc0f-text: #FFDEAD;
  --vc0f-text-muted: #B8A88A;
  --vc0f-accent: #CD853F;
  --vc0f-accent-light: #DEB887;
  --vc0f-border: #2A3040;
  --vc0f-shadow: rgba(0, 0, 0, 0.4);
  --vc0f-radius: 10px;
  --vc0f-radius-sm: 6px;
  --vc0f-header-h: 56px;
  --vc0f-bottomnav-h: 60px;
  --vc0f-max-w: 430px;
  --vc0f-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--vc0f-font);
  background: var(--vc0f-bg);
  color: var(--vc0f-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--vc0f-primary); text-decoration: none; }
a:hover { color: var(--vc0f-accent-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Page Container === */
.vc0f-page {
  max-width: var(--vc0f-max-w);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* === Fixed Header === */
.vc0f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--vc0f-max-w);
  height: var(--vc0f-header-h);
  background: linear-gradient(135deg, var(--vc0f-bg-alt), var(--vc0f-bg));
  border-bottom: 1px solid var(--vc0f-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.vc0f-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vc0f-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}
.vc0f-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--vc0f-primary);
  letter-spacing: 0.5px;
}
.vc0f-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vc0f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: none;
  border-radius: var(--vc0f-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.vc0f-btn-register {
  background: linear-gradient(135deg, var(--vc0f-primary), var(--vc0f-accent));
  color: #0D1117;
}
.vc0f-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(255, 127, 80, 0.4);
}
.vc0f-btn-login {
  background: transparent;
  color: var(--vc0f-text);
  border: 1px solid var(--vc0f-border);
}
.vc0f-btn-login:hover {
  border-color: var(--vc0f-primary);
  color: var(--vc0f-primary);
}
.vc0f-hamburger {
  background: none;
  border: none;
  color: var(--vc0f-text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* === Mobile Side Menu === */
.vc0f-side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--vc0f-bg-alt);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 70px 0 30px;
  overflow-y: auto;
  border-left: 1px solid var(--vc0f-border);
}
.vc0f-menu-open { right: 0; }
.vc0f-menu-closed { right: -280px; }
.vc0f-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 ease;
}
.vc0f-overlay-active {
  opacity: 1;
  pointer-events: auto;
}
.vc0f-menu-link {
  display: block;
  padding: 14px 24px;
  color: var(--vc0f-text);
  font-size: 15px;
  border-bottom: 1px solid var(--vc0f-border);
  transition: background 0.2s, color 0.2s;
}
.vc0f-menu-link:hover, .vc0f-menu-link:active {
  background: var(--vc0f-bg-card);
  color: var(--vc0f-primary);
}
.vc0f-menu-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--vc0f-text-muted);
  font-size: 24px;
  cursor: pointer;
}

/* === Main Content === */
.vc0f-main {
  padding-top: calc(var(--vc0f-header-h) + 8px);
  padding-bottom: 20px;
}
@media (max-width: 768px) {
  .vc0f-main { padding-bottom: calc(var(--vc0f-bottomnav-h) + 20px); }
}

/* === Carousel === */
.vc0f-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0 0 var(--vc0f-radius) var(--vc0f-radius);
}
.vc0f-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.vc0f-slide-active { opacity: 1; }
.vc0f-carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vc0f-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.vc0f-carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 222, 173, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.vc0f-dot-active {
  background: var(--vc0f-primary);
  transform: scale(1.3);
}

/* === Section Title === */
.vc0f-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--vc0f-primary);
  margin: 24px 14px 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--vc0f-primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vc0f-section-title i,
.vc0f-section-title .material-icons {
  font-size: 22px;
}

/* === Tab Navigation === */
.vc0f-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 8px 12px;
  scrollbar-width: none;
}
.vc0f-tabs::-webkit-scrollbar { display: none; }
.vc0f-tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--vc0f-border);
  border-radius: 20px;
  background: var(--vc0f-bg-card);
  color: var(--vc0f-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.vc0f-tab-active {
  background: linear-gradient(135deg, var(--vc0f-primary), var(--vc0f-accent));
  color: #0D1117;
  border-color: transparent;
  font-weight: 700;
}

/* === Game Grid === */
.vc0f-tab-panel { display: none; }
.vc0f-panel-active { display: block; }
.vc0f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px 12px;
}
.vc0f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.vc0f-game-item:hover { transform: translateY(-3px); }
.vc0f-game-item:active { transform: scale(0.95); }
.vc0f-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--vc0f-radius-sm);
  object-fit: cover;
  border: 2px solid var(--vc0f-border);
  transition: border-color 0.3s ease;
}
.vc0f-game-item:hover .vc0f-game-img {
  border-color: var(--vc0f-primary);
}
.vc0f-game-name {
  font-size: 11px;
  color: var(--vc0f-text-muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Content Modules === */
.vc0f-module {
  background: var(--vc0f-bg-card);
  border-radius: var(--vc0f-radius);
  padding: 18px 16px;
  margin: 16px 12px;
  border: 1px solid var(--vc0f-border);
}
.vc0f-module-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--vc0f-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vc0f-module p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--vc0f-text-muted);
  margin-bottom: 10px;
}
.vc0f-module ul {
  padding-left: 18px;
  margin-bottom: 10px;
}
.vc0f-module li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--vc0f-text-muted);
  margin-bottom: 4px;
  list-style: disc;
}

/* === Promo Banner === */
.vc0f-promo-banner {
  background: linear-gradient(135deg, var(--vc0f-primary-dark), var(--vc0f-accent));
  border-radius: var(--vc0f-radius);
  padding: 20px 16px;
  margin: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.vc0f-promo-banner:hover { transform: scale(1.02); }
.vc0f-promo-banner h3 {
  font-size: 20px;
  font-weight: 700;
  color: #FFDEAD;
  margin-bottom: 8px;
}
.vc0f-promo-banner p {
  font-size: 14px;
  color: rgba(255, 222, 173, 0.85);
  margin-bottom: 12px;
}
.vc0f-promo-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--vc0f-bg);
  color: var(--vc0f-primary);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* === Footer === */
.vc0f-footer {
  background: var(--vc0f-bg-alt);
  border-top: 1px solid var(--vc0f-border);
  padding: 30px 16px 20px;
  margin-top: 30px;
}
.vc0f-footer-brand {
  text-align: center;
  margin-bottom: 20px;
}
.vc0f-footer-brand p {
  font-size: 13px;
  color: var(--vc0f-text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 8px auto 0;
}
.vc0f-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 20px;
}
.vc0f-footer-links a {
  font-size: 12px;
  color: var(--vc0f-text-muted);
  transition: color 0.2s;
}
.vc0f-footer-links a:hover { color: var(--vc0f-primary); }
.vc0f-footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--vc0f-text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--vc0f-border);
}

/* === Fixed Bottom Nav === */
.vc0f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--vc0f-max-w);
  height: var(--vc0f-bottomnav-h);
  background: linear-gradient(to top, var(--vc0f-bg-alt), rgba(21, 27, 35, 0.97));
  border-top: 1px solid var(--vc0f-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(12px);
}
.vc0f-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--vc0f-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vc0f-nav-btn:hover, .vc0f-nav-btn:active {
  color: var(--vc0f-primary);
  transform: scale(1.08);
}
.vc0f-nav-btn .material-icons { font-size: 24px; }
.vc0f-nav-btn i { font-size: 22px; }
.vc0f-nav-label {
  font-size: 10px;
  margin-top: 2px;
  font-weight: 500;
}
.vc0f-nav-btn-active {
  color: var(--vc0f-primary);
}
.vc0f-nav-btn-active .vc0f-nav-label {
  font-weight: 700;
}

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

/* === Utility Classes === */
.vc0f-text-center { text-align: center; }
.vc0f-mt-8 { margin-top: 8px; }
.vc0f-mt-16 { margin-top: 16px; }
.vc0f-mb-8 { margin-bottom: 8px; }
.vc0f-hidden { display: none !important; }
.vc0f-highlight {
  color: var(--vc0f-primary);
  font-weight: 600;
}

/* === FAQ Accordion (for help pages) === */
.vc0f-faq-item {
  border: 1px solid var(--vc0f-border);
  border-radius: var(--vc0f-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.vc0f-faq-q {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--vc0f-text);
  background: var(--vc0f-bg-card);
  font-size: 14px;
  cursor: pointer;
}
.vc0f-faq-a {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--vc0f-text-muted);
  line-height: 1.6;
  background: var(--vc0f-bg);
}

/* === Desktop Navigation (hidden on mobile) === */
.vc0f-desktop-nav {
  display: none;
}
@media (min-width: 769px) {
  .vc0f-desktop-nav {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .vc0f-desktop-nav a {
    font-size: 13px;
    color: var(--vc0f-text-muted);
    transition: color 0.2s;
  }
  .vc0f-desktop-nav a:hover {
    color: var(--vc0f-primary);
  }
}

/* === Responsive Tweaks === */
@media (max-width: 360px) {
  .vc0f-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .vc0f-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}
