/**
 * jiliqq1 Layout Stylesheet
 * All classes use vd09- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --vd09-primary: #F0FDFF;
  --vd09-secondary: #262626;
  --vd09-accent: #00D4FF;
  --vd09-bg: #262626;
  --vd09-bg-light: #333333;
  --vd09-text: #F0FDFF;
  --vd09-text-muted: #B0B0B0;
  --vd09-border: #404040;
  --vd09-shadow: rgba(0, 212, 255, 0.2);
}

/* 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, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: var(--vd09-bg);
  color: var(--vd09-text);
  min-height: 100vh;
}

/* Container */
.vd09-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header */
.vd09-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--vd09-bg-light);
  border-bottom: 1px solid var(--vd09-border);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--vd09-shadow);
}

.vd09-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
}

.vd09-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--vd09-text);
}

.vd09-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.5rem;
}

.vd09-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vd09-accent);
}

.vd09-header-buttons {
  display: flex;
  gap: 1rem;
}

.vd09-btn {
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.vd09-btn-register {
  background-color: var(--vd09-accent);
  color: var(--vd09-secondary);
}

.vd09-btn-register:hover {
  background-color: #00B8E6;
  transform: scale(1.05);
}

.vd09-btn-login {
  background-color: transparent;
  color: var(--vd09-primary);
  border: 2px solid var(--vd09-accent);
}

.vd09-btn-login:hover {
  background-color: var(--vd09-accent);
  color: var(--vd09-secondary);
}

/* Mobile Menu Toggle */
.vd09-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.vd09-menu-toggle span {
  width: 2.5rem;
  height: 0.3rem;
  background-color: var(--vd09-text);
  transition: all 0.3s ease;
  border-radius: 0.2rem;
}

/* Mobile Menu */
.vd09-mobile-menu {
  position: fixed;
  top: 6.5rem;
  left: 0;
  right: 0;
  background-color: var(--vd09-bg-light);
  border-bottom: 1px solid var(--vd09-border);
  padding: 2rem 0;
  z-index: 9999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.vd09-mobile-menu.vd09-menu-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.vd09-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.vd09-menu-list {
  list-style: none;
}

.vd09-menu-list li {
  border-bottom: 1px solid var(--vd09-border);
}

.vd09-menu-list a {
  display: block;
  padding: 1.2rem 0;
  color: var(--vd09-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: color 0.3s ease;
}

.vd09-menu-list a:hover {
  color: var(--vd09-accent);
}

/* Main Content */
main {
  margin-top: 6.5rem;
  padding-bottom: 8rem;
  min-height: calc(100vh - 15rem);
}

/* Carousel */
.vd09-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.vd09-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.vd09-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vd09-carousel-slide.vd09-slide-active {
  opacity: 1;
}

.vd09-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd09-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.vd09-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.vd09-carousel-dot.vd09-dot-active {
  background-color: var(--vd09-accent);
  transform: scale(1.2);
}

/* Section Styles */
.vd09-section {
  margin-bottom: 3rem;
}

.vd09-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vd09-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vd09-section-title i {
  font-size: 2.2rem;
}

/* Game Grid */
.vd09-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.vd09-game-item {
  background-color: var(--vd09-bg-light);
  border-radius: 0.8rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--vd09-text);
  display: block;
}

.vd09-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--vd09-shadow);
}

.vd09-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vd09-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--vd09-text);
}

/* Card Styles */
.vd09-card {
  background-color: var(--vd09-bg-light);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--vd09-border);
}

.vd09-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vd09-accent);
  margin-bottom: 1rem;
}

.vd09-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--vd09-text);
}

/* Link Styles */
.vd09-link {
  color: var(--vd09-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.vd09-link:hover {
  color: #00B8E6;
  text-decoration: underline;
}

/* Footer */
.vd09-footer {
  background-color: var(--vd09-bg-light);
  border-top: 1px solid var(--vd09-border);
  padding: 3rem 0 2rem;
}

.vd09-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.vd09-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vd09-footer-links a {
  color: var(--vd09-text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.vd09-footer-links a:hover {
  color: var(--vd09-accent);
}

.vd09-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.vd09-partners img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vd09-partners img:hover {
  opacity: 1;
}

.vd09-copyright {
  text-align: center;
  color: var(--vd09-text-muted);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.vd09-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--vd09-bg-light) 0%, var(--vd09-secondary) 100%);
  border-top: 2px solid var(--vd09-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--vd09-shadow);
}

.vd09-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  text-decoration: none;
  color: var(--vd09-text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.vd09-bottom-nav a:hover {
  color: var(--vd09-accent);
  transform: scale(1.1);
}

.vd09-bottom-nav a.vd09-nav-active {
  color: var(--vd09-accent);
}

.vd09-bottom-nav i {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.vd09-bottom-nav span {
  font-size: 1rem;
  font-weight: 600;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .vd09-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.vd09-text-center {
  text-align: center;
}

.vd09-mt-1 { margin-top: 1rem; }
.vd09-mt-2 { margin-top: 2rem; }
.vd09-mt-3 { margin-top: 3rem; }

.vd09-mb-1 { margin-bottom: 1rem; }
.vd09-mb-2 { margin-bottom: 2rem; }
.vd09-mb-3 { margin-bottom: 3rem; }

/* Animation */
@keyframes vd09-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.vd09-animate-pulse {
  animation: vd09-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 380px) {
  .vd09-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
