/* JILIAAA.VIP Stylesheet */
/* CSS class naming: all classes use "v238-" prefix */
/* CSS variables: all variables use "--v238-" prefix */

/* CSS Variables - Color Palette */
:root {
  --v238-primary: #AD1457;
  --v238-secondary: #212F3D;
  --v238-light: #FAFAFA;
  --v238-accent: #BC8F8F;
  --v238-brown: #A0522D;
  --v238-cream: #FAF0E6;
  --v238-text: #212F3D;
  --v238-text-light: #FAFAFA;
  --v238-border: rgba(173, 20, 87, 0.2);
  --v238-shadow: rgba(33, 47, 61, 0.1);
  --v238-gradient-primary: linear-gradient(135deg, #AD1457, #BC8F8F);
  --v238-gradient-secondary: linear-gradient(135deg, #212F3D, #A0522D);
  --v238-font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --v238-font-heading: 'Poppins', 'Roboto', sans-serif;
  --v238-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --v238-radius: 12px;
  --v238-shadow-card: 0 4px 20px rgba(33, 47, 61, 0.08);
  --v238-shadow-hover: 0 8px 30px rgba(173, 20, 87, 0.15);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: var(--v238-font-primary);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v238-text);
  background-color: var(--v238-light);
  overflow-x: hidden;
}

/* Container and Layout */
.v238-container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.v238-wrapper {
  min-height: 100vh;
  padding-bottom: 6.4rem; /* Space for bottom nav */
}

/* Header Styles */
.v238-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v238-gradient-primary);
  backdrop-filter: blur(10px);
  box-shadow: var(--v238-shadow-card);
  height: 6rem;
}

.v238-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 1.6rem;
}

.v238-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--v238-text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.8rem;
  font-family: var(--v238-font-heading);
}

.v238-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--v238-radius);
  object-fit: cover;
}

.v238-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Button Styles */
.v238-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--v238-radius);
  font-family: var(--v238-font-primary);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v238-transition);
  min-height: 4.4rem;
  position: relative;
  overflow: hidden;
}

.v238-btn-primary {
  background: var(--v238-cream);
  color: var(--v238-primary);
  border: 2px solid transparent;
}

.v238-btn-primary:hover {
  background: var(--v238-light);
  transform: translateY(-2px);
  box-shadow: var(--v238-shadow-hover);
}

.v238-btn-secondary {
  background: transparent;
  color: var(--v238-text-light);
  border: 2px solid var(--v238-text-light);
}

.v238-btn-secondary:hover {
  background: var(--v238-text-light);
  color: var(--v238-primary);
}

.v238-btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.v238-btn-large {
  padding: 1.4rem 2.8rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

/* Hamburger Menu */
.v238-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  width: 2.8rem;
  height: 2.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.v238-hamburger span {
  width: 100%;
  height: 0.3rem;
  background: var(--v238-text-light);
  border-radius: 0.2rem;
  transition: var(--v238-transition);
  transform-origin: center;
}

.v238-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.v238-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.v238-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Mobile Navigation */
.v238-mobile-nav {
  position: fixed;
  top: 6rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 6rem);
  background: var(--v238-secondary);
  transform: translateX(-100%);
  transition: var(--v238-transition);
  z-index: 999;
  overflow-y: auto;
}

.v238-nav-active {
  transform: translateX(0);
}

.v238-nav-menu {
  list-style: none;
  padding: 2rem 0;
}

.v238-nav-item {
  margin: 0;
}

.v238-nav-link {
  display: block;
  padding: 1.6rem 2.4rem;
  color: var(--v238-text-light);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  transition: var(--v238-transition);
  border-bottom: 1px solid rgba(250, 240, 230, 0.1);
}

.v238-nav-link:hover,
.v238-nav-link:focus {
  background: var(--v238-primary);
  padding-left: 3.2rem;
}

/* Overlay */
.v238-nav-overlay {
  position: fixed;
  top: 6rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 6rem);
  background: rgba(33, 47, 61, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: var(--v238-transition);
  z-index: 998;
}

.v238-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.v238-main {
  padding-top: 6rem;
  min-height: calc(100vh - 6rem);
}

/* Section Styles */
.v238-section {
  padding: 3.2rem 0;
}

.v238-section-title {
  font-family: var(--v238-font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v238-primary);
  text-align: center;
  margin-bottom: 2.4rem;
  line-height: 1.2;
}

.v238-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v238-secondary);
  margin-bottom: 1.6rem;
}

.v238-section-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v238-text);
  margin-bottom: 1.6rem;
}

/* Card Styles */
.v238-card {
  background: white;
  border-radius: var(--v238-radius);
  box-shadow: var(--v238-shadow-card);
  padding: 2rem;
  margin-bottom: 1.6rem;
  transition: var(--v238-transition);
  border: 1px solid var(--v238-border);
}

.v238-card:hover {
  box-shadow: var(--v238-shadow-hover);
  transform: translateY(-4px);
}

.v238-card-title {
  font-family: var(--v238-font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v238-primary);
  margin-bottom: 1.2rem;
}

.v238-card-text {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--v238-text);
  margin-bottom: 1.2rem;
}

/* Carousel Styles */
.v238-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  border-radius: var(--v238-radius);
  overflow: hidden;
  margin-bottom: 2.4rem;
  box-shadow: var(--v238-shadow-card);
}

.v238-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.v238-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  cursor: pointer;
}

.v238-slide-active {
  opacity: 1;
}

.v238-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v238-carousel-indicators {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.v238-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(250, 240, 230, 0.5);
  cursor: pointer;
  transition: var(--v238-transition);
}

.v238-indicator-active {
  background: var(--v238-cream);
  transform: scale(1.2);
}

/* Game Grid */
.v238-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.v238-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: var(--v238-radius);
  background: white;
  box-shadow: var(--v238-shadow-card);
  transition: var(--v238-transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--v238-border);
}

.v238-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--v238-shadow-hover);
  text-decoration: none;
  color: inherit;
}

.v238-game-img {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.8rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
  transition: var(--v238-transition);
}

.v238-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--v238-text);
  line-height: 1.3;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v238-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: v238-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes v238-skeleton-pulse {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Category Headers */
.v238-category {
  margin: 3.2rem 0 2.4rem 0;
}

.v238-category-title {
  font-family: var(--v238-font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--v238-primary);
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--v238-primary);
  display: inline-block;
}

/* Footer Styles */
.v238-footer {
  background: var(--v238-gradient-secondary);
  color: var(--v238-text-light);
  padding: 3.2rem 0 2rem 0;
  margin-top: 4rem;
}

.v238-footer-content {
  text-align: center;
}

.v238-footer-text {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2.4rem;
}

.v238-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.6rem;
  margin-bottom: 2.4rem;
}

.v238-footer-link {
  color: var(--v238-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  transition: var(--v238-transition);
  border: 1px solid transparent;
}

.v238-footer-link:hover {
  background: var(--v238-primary);
  border-color: var(--v238-primary);
  text-decoration: none;
  color: var(--v238-text-light);
}

.v238-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.4rem 0;
}

.v238-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  border-radius: 0.6rem;
  background: rgba(250, 240, 230, 0.1);
  padding: 0.4rem;
  transition: var(--v238-transition);
}

.v238-partner-logo:hover {
  transform: scale(1.1);
  background: rgba(250, 240, 230, 0.2);
}

.v238-copyright {
  font-size: 1.2rem;
  color: var(--v238-accent);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 240, 230, 0.1);
}

/* Bottom Navigation */
.v238-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v238-secondary);
  height: 6.4rem;
  box-shadow: 0 -2px 20px rgba(33, 47, 61, 0.15);
}

.v238-bottom-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0.8rem;
}

.v238-nav-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--v238-accent);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--v238-transition);
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  min-height: 4.8rem;
  flex: 1;
  max-width: 7.2rem;
}

.v238-nav-icon i {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.v238-nav-icon:hover,
.v238-nav-icon:focus,
.v238-nav-active {
  color: var(--v238-primary);
  background: rgba(173, 20, 87, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Utility Classes */
.v238-text-center {
  text-align: center;
}

.v238-text-left {
  text-align: left;
}

.v238-text-right {
  text-align: right;
}

.v238-mb-1 {
  margin-bottom: 1rem;
}

.v238-mb-2 {
  margin-bottom: 2rem;
}

.v238-mb-3 {
  margin-bottom: 3rem;
}

.v238-mt-1 {
  margin-top: 1rem;
}

.v238-mt-2 {
  margin-top: 2rem;
}

.v238-mt-3 {
  margin-top: 3rem;
}

.v238-hidden {
  display: none;
}

.v238-visible {
  display: block;
}

/* Animation Classes */
.v238-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--v238-transition);
}

.v238-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
.v238-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--v238-secondary);
  color: var(--v238-text-light);
  padding: 1.2rem 2.4rem;
  border-radius: var(--v238-radius);
  font-size: 1.4rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: var(--v238-transition);
  box-shadow: var(--v238-shadow-hover);
}

.v238-toast-show {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
  html {
    font-size: 58%;
  }
  
  .v238-container {
    padding: 0 1.2rem;
  }
  
  .v238-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 1rem;
  }
  
  .v238-game-img {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 430px) {
  .v238-container {
    padding: 0 2rem;
  }
}

/* Print Styles */
@media print {
  .v238-header,
  .v238-bottom-nav,
  .v238-hamburger,
  .v238-mobile-nav {
    display: none !important;
  }
  
  .v238-main {
    padding-top: 0;
  }
  
  .v238-wrapper {
    padding-bottom: 0;
  }
}