/* Jili666 Login Theme Styles */
/* All classes use prefix 'v3b9-' for namespace isolation */

/* CSS Variables for Theme Colors */
:root {
  --v3b9-primary: #26A69A;
  --v3b9-secondary: #F8F8FF;
  --v3b9-accent: #E8F5E8;
  --v3b9-text: #333333;
  --v3b9-text-light: #F8F8FF;
  --v3b9-bg-dark: #1a1a1a;
  --v3b9-bg-card: #2a2a2a;
  --v3b9-border: rgba(255, 255, 255, 0.1);
  --v3b9-shadow: rgba(0, 0, 0, 0.3);
  --v3b9-gradient: linear-gradient(135deg, #26A69A 0%, #2bbbad 100%);
}

/* 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(--v3b9-text-light);
  background-color: var(--v3b9-bg-dark);
  overflow-x: hidden;
}

/* Utility Classes */
.v3b9-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v3b9-wrapper {
  padding-bottom: 8rem;
}

.v3b9-grid {
  display: grid;
  gap: 1.5rem;
}

.v3b9-flex {
  display: flex;
  align-items: center;
}

.v3b9-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v3b9-text-center {
  text-align: center;
}

.v3b9-text-gradient {
  background: var(--v3b9-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header and Navigation */
.v3b9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v3b9-border);
}

.v3b9-nav {
  padding: 1rem 1.5rem;
}

.v3b9-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--v3b9-primary);
  text-decoration: none;
}

.v3b9-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
}

.v3b9-nav-actions {
  display: flex;
  gap: 1rem;
}

.v3b9-btn {
  padding: 0.8rem 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-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  touch-action: manipulation;
}

.v3b9-btn-primary {
  background: var(--v3b9-gradient);
  color: var(--v3b9-text-light);
  box-shadow: 0 2px 8px rgba(38, 166, 154, 0.3);
}

.v3b9-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(38, 166, 154, 0.4);
}

.v3b9-btn-outline {
  background: transparent;
  color: var(--v3b9-primary);
  border: 2px solid var(--v3b9-primary);
}

.v3b9-btn-outline:hover {
  background: var(--v3b9-primary);
  color: var(--v3b9-text-light);
}

.v3b9-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v3b9-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

.v3b9-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Navigation Menu */
.v3b9-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--v3b9-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.v3b9-nav-menu.active {
  right: 0;
}

.v3b9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v3b9-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.v3b9-nav-list {
  list-style: none;
  padding: 0 1.5rem;
}

.v3b9-nav-item {
  margin-bottom: 0.5rem;
}

.v3b9-nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--v3b9-text-light);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.v3b9-nav-link:hover {
  background: rgba(38, 166, 154, 0.1);
  color: var(--v3b9-primary);
}

/* Carousel */
.v3b9-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px var(--v3b9-shadow);
}

.v3b9-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.v3b9-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.v3b9-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.v3b9-carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v3b9-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v3b9-carousel-indicator.active {
  background: var(--v3b9-primary);
  transform: scale(1.2);
}

/* Game Cards */
.v3b9-game-card {
  background: var(--v3b9-bg-card);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--v3b9-border);
}

.v3b9-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(38, 166, 154, 0.2);
  border-color: var(--v3b9-primary);
}

.v3b9-game-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.v3b9-game-title {
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  color: var(--v3b9-text-light);
}

/* Game Grid */
.v3b9-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

/* Section Styles */
.v3b9-section {
  margin: 3rem 0;
  padding: 2rem 0;
}

.v3b9-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--v3b9-primary);
}

.v3b9-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--v3b9-secondary);
}

/* Content Cards */
.v3b9-content-card {
  background: var(--v3b9-bg-card);
  border-radius: 1rem;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--v3b9-border);
}

.v3b9-content-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.v3b9-content-card p:last-child {
  margin-bottom: 0;
}

/* Links */
.v3b9-link {
  color: var(--v3b9-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.v3b9-link:hover {
  text-decoration: underline;
  color: var(--v3b9-secondary);
}

/* Footer */
.v3b9-footer {
  background: var(--v3b9-bg-card);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
  border-top: 1px solid var(--v3b9-border);
}

.v3b9-footer-content {
  margin-bottom: 2rem;
}

.v3b9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.v3b9-footer-link {
  color: var(--v3b9-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.v3b9-footer-link:hover {
  color: var(--v3b9-primary);
}

/* Partners */
.v3b9-partners {
  margin: 2rem 0;
}

.v3b9-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.v3b9-partner {
  background: var(--v3b9-bg-dark);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
}

.v3b9-partner img {
  max-width: 100%;
  max-height: 3rem;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.v3b9-partner:hover img {
  filter: brightness(1);
}

/* Copyright */
.v3b9-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--v3b9-border);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Bottom Navigation */
.v3b9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v3b9-bg-card);
  border-top: 1px solid var(--v3b9-border);
  z-index: 1000;
  padding: 0.5rem 0;
  display: none;
}

.v3b9-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.v3b9-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
}

.v3b9-bottom-nav-item:hover,
.v3b9-bottom-nav-item.active {
  color: var(--v3b9-primary);
  transform: scale(1.05);
}

.v3b9-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

/* Scroll to Top */
.v3b9-scroll-top {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 4.4rem;
  height: 4.4rem;
  background: var(--v3b9-gradient);
  border: none;
  border-radius: 50%;
  color: var(--v3b9-text-light);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v3b9-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.v3b9-scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(38, 166, 154, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .v3b9-bottom-nav {
    display: block;
  }

  .v3b9-wrapper {
    padding-bottom: 8rem;
  }

  .v3b9-menu-toggle {
    display: block;
  }

  .v3b9-nav-actions .v3b9-btn {
    display: none;
  }

  .v3b9-nav-actions .v3b9-btn:first-child {
    display: inline-flex;
  }

  .v3b9-games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .v3b9-game-image {
    height: 100px;
  }

  .v3b9-carousel-slide img {
    height: 180px;
  }

  .v3b9-section-title {
    font-size: 2rem;
  }

  .v3b9-partners-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
  }

  .v3b9-footer-links {
    gap: 1rem;
  }

  .v3b9-footer-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .v3b9-container {
    padding: 0 1rem;
  }

  .v3b9-nav {
    padding: 1rem;
  }

  .v3b9-logo {
    font-size: 1.8rem;
  }

  .v3b9-logo img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .v3b9-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v3b9-game-image {
    height: 90px;
  }

  .v3b9-carousel-slide img {
    height: 150px;
  }

  .v3b9-section-title {
    font-size: 1.8rem;
  }

  .v3b9-content-card {
    padding: 1.5rem;
  }

  .v3b9-partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .v3b9-bottom-nav-item {
    min-width: 5rem;
    min-height: 5rem;
  }

  .v3b9-bottom-nav-icon {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes v3b9-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v3b9-fade-in {
  animation: v3b9-fadeIn 0.5s ease forwards;
}

/* Utility for hiding elements */
.v3b9-hidden {
  display: none !important;
}

/* Loading state */
.v3b9-loading {
  position: relative;
  pointer-events: none;
}

.v3b9-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 2px solid transparent;
  border-top-color: var(--v3b9-primary);
  border-radius: 50%;
  animation: v3b9-spin 1s linear infinite;
}

@keyframes v3b9-spin {
  to {
    transform: rotate(360deg);
  }
}