/**
 * jl44 - Main CSS Stylesheet
 * Mobile-first responsive design with color palette:
 * Background: #1A1A2E | Text: #F0F0F0
 * Accents: #DEB887 | #FFEBCD | #F0E68C | #808080
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  --vb61-primary: #DEB887;
  --vb61-primary-light: #FFEBCD;
  --vb61-secondary: #F0E68C;
  --vb61-bg: #1A1A2E;
  --vb61-bg-light: #2A2A4E;
  --vb61-text: #F0F0F0;
  --vb61-text-muted: #808080;
  --vb61-border: #3A3A5E;
  --vb61-shadow: rgba(0, 0, 0, 0.3);
  --vb61-gradient: linear-gradient(135deg, #DEB887 0%, #F0E68C 100%);
}

/* Reset & Base Styles */
* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--vb61-text);
  background-color: var(--vb61-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Layout Containers
   ============================================ */
.vb61-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.vb61-wrapper {
  padding-bottom: 80px;
}

/* ============================================
   Header Navigation
   ============================================ */
.vb61-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--vb61-bg);
  border-bottom: 2px solid var(--vb61-primary);
  box-shadow: 0 2px 10px var(--vb61-shadow);
}

.vb61-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.vb61-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--vb61-text);
}

.vb61-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
  object-fit: cover;
}

.vb61-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb61-primary);
}

.vb61-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.vb61-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vb61-btn-register {
  background: var(--vb61-gradient);
  color: var(--vb61-bg);
}

.vb61-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(222, 184, 135, 0.4);
}

.vb61-btn-login {
  background: transparent;
  color: var(--vb61-primary);
  border: 2px solid var(--vb61-primary);
}

.vb61-btn-login:hover {
  background: var(--vb61-primary);
  color: var(--vb61-bg);
}

.vb61-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--vb61-text);
  font-size: 2rem;
  transition: color 0.3s ease;
}

.vb61-menu-toggle:hover {
  color: var(--vb61-primary);
}

/* ============================================
   Mobile Navigation Menu
   ============================================ */
.vb61-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vb61-overlay-active {
  opacity: 1;
  visibility: visible;
}

.vb61-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--vb61-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--vb61-primary);
}

.vb61-menu-open {
  right: 0;
}

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

.vb61-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb61-primary);
}

.vb61-menu-close {
  background: none;
  border: none;
  color: var(--vb61-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.vb61-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.vb61-menu-item {
  border-bottom: 1px solid var(--vb61-border);
}

.vb61-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--vb61-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.vb61-menu-link:hover {
  background: var(--vb61-primary);
  color: var(--vb61-bg);
  padding-left: 2rem;
}

/* ============================================
   Carousel
   ============================================ */
.vb61-carousel {
  position: relative;
  margin-top: 7rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--vb61-shadow);
}

.vb61-carousel-slides {
  position: relative;
  width: 100%;
  height: 200px;
}

.vb61-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

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

.vb61-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.vb61-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vb61-dot-active {
  background: var(--vb61-primary);
  transform: scale(1.3);
}

/* ============================================
   Game Grid
   ============================================ */
.vb61-section {
  margin: 2.5rem 0;
}

.vb61-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vb61-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vb61-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vb61-game-item {
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.vb61-game-item:hover {
  transform: scale(1.05);
}

.vb61-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--vb61-shadow);
  margin-bottom: 0.5rem;
}

.vb61-game-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--vb61-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* ============================================
   Content Sections
   ============================================ */
.vb61-content-section {
  background: var(--vb61-bg-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px var(--vb61-shadow);
}

.vb61-content-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb61-primary);
  margin-bottom: 1rem;
}

.vb61-content-text {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--vb61-text);
  margin-bottom: 1rem;
}

.vb61-content-text a {
  color: var(--vb61-primary);
  text-decoration: none;
  font-weight: 600;
}

.vb61-content-text a:hover {
  text-decoration: underline;
}

/* ============================================
   Bottom Navigation (Mobile)
   ============================================ */
.vb61-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vb61-bg);
  border-top: 2px solid var(--vb61-primary);
  box-shadow: 0 -2px 10px var(--vb61-shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}

.vb61-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--vb61-text-muted);
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.vb61-nav-item:hover {
  color: var(--vb61-primary);
  transform: scale(1.1);
}

.vb61-nav-active {
  color: var(--vb61-primary) !important;
}

.vb61-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.vb61-nav-text {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.vb61-footer {
  background: var(--vb61-bg-light);
  border-top: 2px solid var(--vb61-primary);
  padding: 2.5rem 1rem 8rem 1rem;
  margin-top: 3rem;
}

.vb61-footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb61-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.vb61-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.vb61-footer-link {
  color: var(--vb61-text);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background: var(--vb61-bg);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.vb61-footer-link:hover {
  background: var(--vb61-primary);
  color: var(--vb61-bg);
}

.vb61-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.vb61-partner-icon {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  filter: grayscale(0.5);
  transition: filter 0.3s ease;
}

.vb61-partner-icon:hover {
  filter: grayscale(0);
}

.vb61-copyright {
  text-align: center;
  color: var(--vb61-text-muted);
  font-size: 1.3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--vb61-border);
}

/* ============================================
   Utility Classes
   ============================================ */
.vb61-text-center {
  text-align: center;
}

.vb61-mt-1 {
  margin-top: 1rem;
}

.vb61-mb-1 {
  margin-bottom: 1rem;
}

.vb61-mt-2 {
  margin-top: 2rem;
}

.vb61-mb-2 {
  margin-bottom: 2rem;
}

/* ============================================
   Desktop Styles
   ============================================ */
@media (min-width: 769px) {
  .vb61-bottom-nav {
    display: none;
  }

  .vb61-wrapper {
    padding-bottom: 2rem;
  }
}

/* ============================================
   Mobile Responsive (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .vb61-menu-toggle {
    display: flex;
  }

  .vb61-wrapper {
    padding-bottom: 80px;
  }
}
