/* Jiliko App Design System - Part 1 */
/* All classes use wc629- prefix for namespace isolation */

/* CSS Variables */
:root {
  --wc629-primary: #D2691E;
  --wc629-secondary: #1E1E1E;
  --wc629-bg: #0A0A0A;
  --wc629-text: #F5F5F5;
  --wc629-text-secondary: #B0B0B0;
  --wc629-border: #2A2A2A;
  --wc629-card-bg: #151515;
  --wc629-success: #4CAF50;
  --wc629-warning: #FF9800;
  --wc629-error: #F44336;
  --wc629-radius: 8px;
  --wc629-radius-sm: 4px;
  --wc629-radius-lg: 12px;
  --wc629-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --wc629-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
  --wc629-transition: all 0.3s ease;
}

/* 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(--wc629-bg);
  color: var(--wc629-text);
  overflow-x: hidden;
}

/* Utility Classes */
.wc629-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wc629-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem;
}

.wc629-grid {
  display: grid;
  gap: 1.5rem;
}

.wc629-flex {
  display: flex;
}

.wc629-flex-col {
  flex-direction: column;
}

.wc629-items-center {
  align-items: center;
}

.wc629-justify-between {
  justify-content: space-between;
}

.wc629-justify-center {
  justify-content: center;
}

.wc629-text-center {
  text-align: center;
}

.wc629-hidden {
  display: none !important;
}

/* Header */
.wc629-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--wc629-secondary);
  border-bottom: 1px solid var(--wc629-border);
  z-index: 1000;
  transition: var(--wc629-transition);
}

.wc629-header.scrolled {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
}

.wc629-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.wc629-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--wc629-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.wc629-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--wc629-radius-sm);
}

.wc629-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wc629-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--wc629-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wc629-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  white-space: nowrap;
}

.wc629-btn-primary {
  background: var(--wc629-primary);
  color: white;
}

.wc629-btn-primary:hover {
  background: #E67E22;
  transform: translateY(-2px);
  box-shadow: var(--wc629-shadow);
}

.wc629-btn-outline {
  background: transparent;
  color: var(--wc629-primary);
  border: 2px solid var(--wc629-primary);
}

.wc629-btn-outline:hover {
  background: var(--wc629-primary);
  color: white;
}

.wc629-menu-button {
  background: none;
  border: none;
  color: var(--wc629-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--wc629-radius-sm);
  transition: var(--wc629-transition);
}

.wc629-menu-button:hover {
  background: rgba(210, 105, 30, 0.1);
}

/* Mobile Menu */
.wc629-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--wc629-secondary);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--wc629-border);
}

.wc629-mobile-menu.active {
  right: 0;
}

.wc629-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--wc629-border);
}

.wc629-menu-close {
  background: none;
  border: none;
  color: var(--wc629-text);
  font-size: 2.4rem;
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--wc629-radius-sm);
  transition: var(--wc629-transition);
}

.wc629-menu-close:hover {
  background: rgba(210, 105, 30, 0.1);
}

.wc629-menu-nav {
  padding: 1.5rem;
}

.wc629-menu-nav ul {
  list-style: none;
}

.wc629-menu-nav li {
  margin-bottom: 0.5rem;
}

.wc629-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--wc629-text);
  text-decoration: none;
  border-radius: var(--wc629-radius);
  transition: var(--wc629-transition);
  font-weight: 500;
}

.wc629-menu-nav a:hover {
  background: rgba(210, 105, 30, 0.1);
  color: var(--wc629-primary);
}

.wc629-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--wc629-transition);
}

.wc629-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.wc629-main {
  padding-top: 6rem;
  min-height: calc(100vh - 6rem);
}

/* Carousel */
.wc629-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--wc629-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--wc629-shadow-lg);
}

.wc629-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.wc629-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.wc629-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wc629-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.wc629-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--wc629-transition);
}

.wc629-indicator.active {
  background: var(--wc629-primary);
  width: 2rem;
  border-radius: 0.5rem;
}

/* Typography */
.wc629-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--wc629-text);
}

.wc629-h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--wc629-text);
}

.wc629-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--wc629-text);
}

.wc629-p {
  margin-bottom: 1rem;
  color: var(--wc629-text-secondary);
  line-height: 1.6;
}

/* Cards */
.wc629-card {
  background: var(--wc629-card-bg);
  border-radius: var(--wc629-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--wc629-border);
  transition: var(--wc629-transition);
}

.wc629-card:hover {
  border-color: var(--wc629-primary);
  box-shadow: var(--wc629-shadow);
}

/* Game Grid */
.wc629-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.wc629-game-card {
  background: var(--wc629-card-bg);
  border-radius: var(--wc629-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--wc629-transition);
  border: 1px solid var(--wc629-border);
}

.wc629-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--wc629-primary);
  box-shadow: var(--wc629-shadow);
}

.wc629-game-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.wc629-game-name {
  padding: 0.8rem 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections */
.wc629-section {
  margin-bottom: 3rem;
}

.wc629-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.wc629-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wc629-primary);
}

.wc629-section-more {
  color: var(--wc629-primary);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: var(--wc629-transition);
}

.wc629-section-more:hover {
  color: #E67E22;
}

/* Links */
.wc629-link {
  color: var(--wc629-primary);
  text-decoration: none;
  transition: var(--wc629-transition);
}

.wc629-link:hover {
  color: #E67E22;
  text-decoration: underline;
}

/* Footer */
.wc629-footer {
  background: var(--wc629-secondary);
  border-top: 1px solid var(--wc629-border);
  padding: 2rem 0 8rem;
  margin-top: 3rem;
}

.wc629-footer-content {
  margin-bottom: 2rem;
}

.wc629-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wc629-footer-links a {
  color: var(--wc629-text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--wc629-transition);
}

.wc629-footer-links a:hover {
  color: var(--wc629-primary);
}

.wc629-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.wc629-partner {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--wc629-transition);
}

.wc629-partner:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.wc629-copyright {
  text-align: center;
  color: var(--wc629-text-secondary);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wc629-border);
}

/* Bottom Navigation */
.wc629-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--wc629-secondary);
  border-top: 1px solid var(--wc629-border);
  z-index: 1000;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.wc629-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  cursor: pointer;
  transition: var(--wc629-transition);
  color: var(--wc629-text-secondary);
  text-decoration: none;
  position: relative;
}

.wc629-bottom-nav-item:hover,
.wc629-bottom-nav-item.active {
  color: var(--wc629-primary);
  transform: translateY(-2px);
}

.wc629-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.wc629-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wc629-wrapper {
    padding-bottom: 8rem;
  }

  .wc629-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wc629-h1 {
    font-size: 2rem;
  }

  .wc629-h2 {
    font-size: 1.8rem;
  }

  .wc629-section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .wc629-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wc629-game-image {
    height: 100px;
  }

  .wc629-slide img {
    height: 160px;
  }
}

/* Desktop overrides */
@media (min-width: 769px) {
  .wc629-bottom-nav {
    display: none;
  }

  .wc629-wrapper {
    padding-bottom: 0;
  }

  .wc629-footer {
    padding-bottom: 2rem;
  }
}

/* Animations */
@keyframes wc629-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wc629-fade-in {
  animation: wc629-fadeIn 0.6s ease forwards;
}

/* Utility classes for spacing */
.wc629-mb-1 { margin-bottom: 1rem; }
.wc629-mb-2 { margin-bottom: 2rem; }
.wc629-mb-3 { margin-bottom: 3rem; }
.wc629-mt-1 { margin-top: 1rem; }
.wc629-mt-2 { margin-top: 2rem; }
.wc629-mt-3 { margin-top: 3rem; }

/* Loading states */
.wc629-loading {
  position: relative;
  overflow: hidden;
}

.wc629-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(210, 105, 30, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}