/* Jiliee CSS - Modern dark theme with clean layout */
/* All classes use v6d2- prefix for namespace isolation */

/* === CSS Variables === */
:root {
  --v6d2-bg-primary: #1A1A1A;
  --v6d2-bg-secondary: #2D2D2D;
  --v6d2-bg-tertiary: #3D3D3D;
  --v6d2-text-primary: #ECF0F1;
  --v6d2-text-secondary: #808080;
  --v6d2-text-muted: #5D5D5D;
  --v6d2-accent: #D4AF37;
  --v6d2-accent-hover: #C5A028;
  --v6d2-border: #404040;
  --v6d2-gradient-1: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  --v6d2-gradient-2: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
  --v6d2-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --v6d2-shadow-hover: 0 8px 24px rgba(212, 175, 55, 0.2);
}

/* === 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;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--v6d2-text-primary);
  background-color: var(--v6d2-bg-primary);
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.v6d2-loaded {
  opacity: 1;
}

/* === Container === */
.v6d2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* === Header === */
.v6d2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v6d2-bg-secondary);
  border-bottom: 1px solid var(--v6d2-border);
  transition: all 0.3s ease;
}

.v6d2-header.v6d2-scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
}

.v6d2-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.6rem;
  max-width: 430px;
  margin: 0 auto;
}

.v6d2-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v6d2-accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.v6d2-header-buttons {
  display: flex;
  gap: 1rem;
}

.v6d2-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-align: center;
}

.v6d2-btn-register {
  background: var(--v6d2-accent);
  color: var(--v6d2-bg-primary);
}

.v6d2-btn-register:hover {
  background: var(--v6d2-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--v6d2-shadow-hover);
}

.v6d2-btn-login {
  background: transparent;
  color: var(--v6d2-text-primary);
  border: 1px solid var(--v6d2-accent);
}

.v6d2-btn-login:hover {
  background: var(--v6d2-accent);
  color: var(--v6d2-bg-primary);
  transform: translateY(-2px);
}

.v6d2-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v6d2-text-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === Mobile Menu === */
.v6d2-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v6d2-bg-secondary);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
}

.v6d2-mobile-menu.v6d2-active {
  right: 0;
}

.v6d2-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.v6d2-mobile-menu.v6d2-active ~ .v6d2-menu-overlay {
  display: block;
}

.v6d2-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem;
  border-bottom: 1px solid var(--v6d2-border);
}

.v6d2-menu-close {
  background: none;
  border: none;
  color: var(--v6d2-text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v6d2-menu-nav {
  padding: 1.6rem;
}

.v6d2-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--v6d2-text-primary);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid var(--v6d2-border);
  transition: color 0.2s ease;
}

.v6d2-menu-link:hover {
  color: var(--v6d2-accent);
}

/* === Hero Section === */
.v6d2-hero {
  background: var(--v6d2-gradient-1);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 60px;
}

.v6d2-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--v6d2-accent);
  line-height: 1.2;
}

.v6d2-hero-subtitle {
  font-size: 1.6rem;
  color: var(--v6d2-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.v6d2-hero-cta {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--v6d2-accent);
  color: var(--v6d2-bg-primary);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.v6d2-hero-cta:hover {
  background: var(--v6d2-accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--v6d2-shadow-hover);
}

/* === Sections === */
.v6d2-section {
  padding: 4rem 0;
}

.v6d2-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--v6d2-accent);
  text-align: center;
}

.v6d2-section-subtitle {
  font-size: 1.5rem;
  color: var(--v6d2-text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* === Game Cards === */
.v6d2-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v6d2-game-card {
  background: var(--v6d2-bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--v6d2-border);
}

.v6d2-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--v6d2-shadow-hover);
  border-color: var(--v6d2-accent);
}

.v6d2-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.v6d2-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--v6d2-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Features === */
.v6d2-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.v6d2-feature-card {
  background: var(--v6d2-bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--v6d2-border);
  transition: all 0.3s ease;
}

.v6d2-feature-card:hover {
  border-color: var(--v6d2-accent);
  transform: translateY(-3px);
  box-shadow: var(--v6d2-shadow);
}

.v6d2-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--v6d2-accent);
}

.v6d2-feature-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--v6d2-text-primary);
}

.v6d2-feature-desc {
  font-size: 1.4rem;
  color: var(--v6d2-text-secondary);
  line-height: 1.6;
}

/* === Content === */
.v6d2-content {
  background: var(--v6d2-bg-secondary);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border: 1px solid var(--v6d2-border);
}

.v6d2-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--v6d2-text-primary);
}

.v6d2-content h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--v6d2-accent);
}

.v6d2-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.v6d2-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: var(--v6d2-text-primary);
}

.v6d2-link {
  color: var(--v6d2-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.v6d2-link:hover {
  color: var(--v6d2-accent-hover);
  text-decoration: underline;
}

/* === FAQ === */
.v6d2-faq-item {
  background: var(--v6d2-bg-secondary);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--v6d2-border);
  overflow: hidden;
}

.v6d2-faq-question {
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v6d2-text-primary);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.v6d2-faq-question::after {
  content: '+';
  font-size: 2rem;
  color: var(--v6d2-accent);
}

.v6d2-faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--v6d2-text-secondary);
  line-height: 1.6;
  display: none;
}

.v6d2-faq-item.v6d2-active .v6d2-faq-answer {
  display: block;
}

.v6d2-faq-item.v6d2-active .v6d2-faq-question::after {
  content: '−';
}

/* === Footer === */
.v6d2-footer {
  background: var(--v6d2-bg-tertiary);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
  border-top: 1px solid var(--v6d2-border);
}

.v6d2-footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.v6d2-footer-logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v6d2-accent);
  margin-bottom: 1rem;
}

.v6d2-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.v6d2-footer-link {
  color: var(--v6d2-text-primary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.2s ease;
}

.v6d2-footer-link:hover {
  color: var(--v6d2-accent);
}

.v6d2-footer-text {
  color: var(--v6d2-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* === Mobile Bottom Navigation === */
.v6d2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v6d2-bg-secondary);
  border-top: 2px solid var(--v6d2-accent);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.v6d2-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--v6d2-text-secondary);
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
}

.v6d2-nav-item:hover {
  color: var(--v6d2-accent);
  background: rgba(212, 175, 55, 0.1);
}

.v6d2-nav-item.v6d2-active {
  color: var(--v6d2-accent);
}

.v6d2-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.v6d2-nav-label {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* === Desktop Styles === */
@media (min-width: 769px) {
  .v6d2-bottom-nav {
    display: none;
  }

  .v6d2-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .v6d2-menu-toggle {
    display: block;
  }

  main {
    padding-bottom: 80px;
  }
}

/* === Utility === */
.v6d2-text-center {
  text-align: center;
}

.v6d2-mb-1 {
  margin-bottom: 1rem;
}

.v6d2-mb-2 {
  margin-bottom: 2rem;
}

.v6d2-mb-3 {
  margin-bottom: 3rem;
}
