/**
 * jiliqq - Main Stylesheet
 * All classes use v036- prefix for namespace isolation
 */

/* CSS Variables - Color Palette */
:root {
  --v036-primary: #B03060;
  --v036-secondary: #DB7093;
  --v036-dark: #1E1E1E;
  --v036-light: #FFFFFF;
  --v036-accent: #FF6B9D;
  --v036-gray: #4A4A4A;
  --v036-light-gray: #F5F5F5;
  --v036-border: #E0E0E0;
  --v036-shadow: rgba(0, 0, 0, 0.1);
}

/* 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;
  color: var(--v036-dark);
  background-color: var(--v036-light);
  overflow-x: hidden;
  min-width: 320px;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Header Styles */
.v036-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v036-primary) 0%, var(--v036-secondary) 100%);
  box-shadow: 0 2px 10px var(--v036-shadow);
  z-index: 1000;
  padding: 1rem 1.5rem;
}

.v036-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.v036-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--v036-light);
  font-weight: 700;
  font-size: 1.8rem;
}

.v036-logo-icon {
  width: 28px;
  height: 28px;
}

.v036-header-buttons {
  display: flex;
  gap: 1rem;
}

.v036-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.v036-btn-primary {
  background: var(--v036-light);
  color: var(--v036-primary);
}

.v036-btn-primary:hover {
  background: var(--v036-accent);
  color: var(--v036-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176, 48, 96, 0.3);
}

.v036-btn-secondary {
  background: transparent;
  color: var(--v036-light);
  border: 2px solid var(--v036-light);
}

.v036-btn-secondary:hover {
  background: var(--v036-light);
  color: var(--v036-primary);
  transform: translateY(-2px);
}

.v036-menu-toggle {
  display: none;
  background: none;
  color: var(--v036-light);
  font-size: 2.4rem;
  padding: 0.5rem;
}

/* Mobile Menu */
.v036-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: var(--v036-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.v036-mobile-menu.v036-menu-open {
  right: 0;
}

.v036-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v036-border);
}

.v036-menu-title {
  color: var(--v036-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.v036-menu-close {
  color: var(--v036-light);
  font-size: 2.4rem;
  padding: 0.5rem;
}

.v036-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.v036-menu-link {
  color: var(--v036-light);
  font-size: 1.6rem;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.v036-menu-link:hover,
.v036-menu-link.v036-active {
  background: var(--v036-primary);
  color: var(--v036-light);
}

/* Main Content */
.v036-main {
  margin-top: 70px;
  padding: 1.5rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
  .v036-main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.v036-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--v036-shadow);
}

.v036-carousel-slide {
  width: 100%;
  display: none;
}

.v036-carousel-slide:first-child {
  display: block;
}

.v036-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Styles */
.v036-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--v036-light);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--v036-shadow);
}

.v036-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v036-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.v036-section-content {
  color: var(--v036-gray);
  line-height: 1.8;
}

.v036-section-content p {
  margin-bottom: 1rem;
}

/* Game Grid */
.v036-game-category {
  margin-bottom: 2rem;
}

.v036-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v036-primary);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--v036-secondary);
}

.v036-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.v036-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v036-game-item:hover {
  transform: scale(1.05);
}

.v036-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px var(--v036-shadow);
}

.v036-game-name {
  font-size: 1.1rem;
  color: var(--v036-dark);
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Link Styles */
.v036-link {
  color: var(--v036-primary);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.v036-link:hover {
  color: var(--v036-secondary);
}

/* Card Styles */
.v036-card {
  background: var(--v036-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px var(--v036-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v036-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(176, 48, 96, 0.2);
}

.v036-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v036-primary);
  margin-bottom: 1rem;
}

.v036-card-content {
  color: var(--v036-gray);
  line-height: 1.7;
}

/* List Styles */
.v036-list {
  list-style: none;
  padding: 0;
}

.v036-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v036-border);
  color: var(--v036-gray);
  line-height: 1.6;
}

.v036-list-item:last-child {
  border-bottom: none;
}

.v036-list-item::before {
  content: "▸";
  color: var(--v036-primary);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* Footer */
.v036-footer {
  background: linear-gradient(135deg, var(--v036-dark) 0%, #2A2A2A 100%);
  color: var(--v036-light);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.v036-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.v036-footer-description {
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #CCCCCC;
}

.v036-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.v036-footer-link {
  color: var(--v036-secondary);
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v036-secondary);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.v036-footer-link:hover {
  background: var(--v036-secondary);
  color: var(--v036-light);
}

.v036-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v036-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v036-partner-logo:hover {
  opacity: 1;
}

.v036-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: #999999;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation (Mobile) */
.v036-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--v036-dark) 0%, #2A2A2A 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.v036-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--v036-light);
  font-size: 1rem;
  gap: 0.3rem;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
}

.v036-bottom-nav-link:hover,
.v036-bottom-nav-link.v036-active {
  color: var(--v036-secondary);
  transform: scale(1.1);
}

.v036-bottom-nav-icon {
  font-size: 24px;
}

.v036-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v036-bottom-nav {
    display: none;
  }

  .v036-main {
    padding-bottom: 1.5rem;
  }
}

/* Show menu toggle on mobile */
@media (max-width: 768px) {
  .v036-menu-toggle {
    display: block;
  }
}

/* Responsive Grid Adjustments */
@media (max-width: 380px) {
  .v036-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Utility Classes */
.v036-text-center {
  text-align: center;
}

.v036-mt-1 {
  margin-top: 1rem;
}

.v036-mt-2 {
  margin-top: 2rem;
}

.v036-mb-1 {
  margin-bottom: 1rem;
}

.v036-mb-2 {
  margin-bottom: 2rem;
}

.v036-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Animations */
@keyframes v036-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v036-fade-in {
  animation: v036-fadeIn 0.6s ease-out;
}

/* Touch device optimizations */
.v036-touch-device .v036-btn,
.v036-touch-device .v036-bottom-nav-link {
  min-height: 44px;
  min-width: 44px;
}

/* Loading state */
body:not(.v036-loaded) {
  visibility: hidden;
}

body.v036-loaded {
  visibility: visible;
}
