/**
 * jilie - Main Theme Stylesheet
 * All classes use vcc9- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --vcc9-primary: #2E8B57;
  --vcc9-purple: #9370DB;
  --vcc9-dark: #2C3E50;
  --vcc9-plum: #DDA0DD;
  --vcc9-green-yellow: #ADFF2F;
  --vcc9-text: #ecf0f1;
  --vcc9-text-muted: #bdc3c7;
  --vcc9-border: #34495e;
  --vcc9-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset and 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, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--vcc9-text);
  background-color: var(--vcc9-dark);
  overflow-x: hidden;
}

.vcc9-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Container */
.vcc9-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vcc9-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.vcc9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--vcc9-dark) 0%, #1a252f 100%);
  box-shadow: 0 2px 10px var(--vcc9-shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.vcc9-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vcc9-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--vcc9-primary);
}

.vcc9-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.vcc9-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vcc9-green-yellow);
}

.vcc9-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.vcc9-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.vcc9-btn-register {
  background: linear-gradient(135deg, var(--vcc9-primary) 0%, #3cb371 100%);
  color: #fff;
}

.vcc9-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.4);
}

.vcc9-btn-login {
  background: linear-gradient(135deg, var(--vcc9-purple) 0%, #ba55d3 100%);
  color: #fff;
}

.vcc9-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 112, 219, 0.4);
}

.vcc9-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--vcc9-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.vcc9-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, var(--vcc9-dark) 0%, #1a252f 100%);
  box-shadow: -2px 0 10px var(--vcc9-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}

.vcc9-menu-open {
  right: 0;
}

.vcc9-menu-no-scroll {
  overflow: hidden;
}

.vcc9-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--vcc9-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.vcc9-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vcc9-menu-nav a {
  color: var(--vcc9-text);
  text-decoration: none;
  font-size: 1.6rem;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.vcc9-menu-nav a:hover {
  background: rgba(46, 139, 87, 0.1);
  border-left-color: var(--vcc9-primary);
  padding-left: 1.5rem;
}

/* Main Content */
.vcc9-main {
  margin-top: 70px;
  flex: 1;
  padding-bottom: 80px;
}

/* Hero Slider */
.vcc9-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.vcc9-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vcc9-slide-active {
  opacity: 1;
  z-index: 1;
}

.vcc9-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page Title */
.vcc9-page-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--vcc9-green-yellow);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* Game Grid */
.vcc9-game-section {
  margin-bottom: 3rem;
}

.vcc9-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--vcc9-plum);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--vcc9-purple);
}

.vcc9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.vcc9-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--vcc9-text);
  transition: transform 0.3s ease;
}

.vcc9-game-item:hover {
  transform: scale(1.05);
}

.vcc9-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--vcc9-shadow);
}

.vcc9-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vcc9-game-item:hover .vcc9-game-icon img {
  transform: scale(1.1);
}

.vcc9-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
  color: var(--vcc9-text);
}

/* Content Modules */
.vcc9-module {
  background: linear-gradient(135deg, rgba(46, 139, 87, 0.1) 0%, rgba(147, 112, 219, 0.1) 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--vcc9-border);
}

.vcc9-module-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--vcc9-green-yellow);
  margin-bottom: 1.5rem;
}

.vcc9-module-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--vcc9-text);
}

.vcc9-module-content p {
  margin-bottom: 1rem;
}

.vcc9-promo-link {
  color: var(--vcc9-green-yellow);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--vcc9-primary);
  transition: all 0.3s ease;
}

.vcc9-promo-link:hover {
  color: var(--vcc9-plum);
  border-color: var(--vcc9-purple);
}

/* Footer */
.vcc9-footer {
  background: linear-gradient(135deg, #1a252f 0%, var(--vcc9-dark) 100%);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

.vcc9-footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vcc9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.vcc9-footer-links a {
  color: var(--vcc9-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.vcc9-footer-links a:hover {
  color: var(--vcc9-green-yellow);
  background: rgba(173, 255, 47, 0.1);
}

.vcc9-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.vcc9-partner img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vcc9-partner img:hover {
  opacity: 1;
}

.vcc9-copyright {
  text-align: center;
  color: var(--vcc9-text-muted);
  font-size: 1.2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--vcc9-border);
}

/* Mobile Bottom Navigation */
.vcc9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(135deg, var(--vcc9-dark) 0%, #1a252f 100%);
  box-shadow: 0 -2px 10px var(--vcc9-shadow);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--vcc9-primary);
}

.vcc9-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--vcc9-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.5rem;
}

.vcc9-nav-item:hover {
  color: var(--vcc9-green-yellow);
  background: rgba(173, 255, 47, 0.1);
  transform: scale(1.05);
}

.vcc9-nav-item.active {
  color: var(--vcc9-green-yellow);
}

.vcc9-nav-icon {
  font-size: 24px;
}

.vcc9-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .vcc9-bottom-nav {
    display: none;
  }

  .vcc9-main {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.vcc9-text-center {
  text-align: center;
}

.vcc9-mt-1 { margin-top: 1rem; }
.vcc9-mt-2 { margin-top: 2rem; }
.vcc9-mt-3 { margin-top: 3rem; }

.vcc9-mb-1 { margin-bottom: 1rem; }
.vcc9-mb-2 { margin-bottom: 2rem; }
.vcc9-mb-3 { margin-bottom: 3rem; }
