/**
 * jibb - Main Stylesheet
 * All classes prefixed with 'w8ba7-' to avoid conflicts
 */

/* CSS Variables */
:root {
  --w8ba7-primary: #00FFFF;
  --w8ba7-secondary: #ADB5BD;
  --w8ba7-accent: #B22222;
  --w8ba7-tertiary: #A0522D;
  --w8ba7-cyan: #00FFFF;
  --w8ba7-gold: #CD853F;
  --w8ba7-dark: #0E1621;
  --w8ba7-darker: #080C12;
  --w8ba7-text-light: #ADB5BD;
  --w8ba7-text-dark: #0E1621;
  --w8ba7-bg-overlay: rgba(14, 22, 33, 0.95);
  --w8ba7-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --w8ba7-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  --w8ba7-glow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--w8ba7-text-light);
  background-color: var(--w8ba7-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

/* Container */
.w8ba7-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.w8ba7-wrapper {
  padding: 1rem 0;
}

/* Header */
.w8ba7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--w8ba7-bg-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w8ba7-tertiary);
  transition: all 0.3s ease;
}

.w8ba7-header-scrolled {
  box-shadow: var(--w8ba7-shadow-lg);
}

.w8ba7-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.w8ba7-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w8ba7-primary);
  cursor: pointer;
  text-shadow: var(--w8ba7-glow);
}

.w8ba7-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.w8ba7-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.w8ba7-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.w8ba7-btn-primary {
  background: linear-gradient(135deg, var(--w8ba7-accent), var(--w8ba7-tertiary));
  color: var(--w8ba7-primary);
}

.w8ba7-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--w8ba7-glow);
}

.w8ba7-btn-secondary {
  background: transparent;
  color: var(--w8ba7-primary);
  border: 1px solid var(--w8ba7-primary);
}

.w8ba7-btn-secondary:hover {
  background-color: var(--w8ba7-primary);
  color: var(--w8ba7-dark);
}

.w8ba7-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.w8ba7-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--w8ba7-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.w8ba7-menu-toggle:hover span {
  background-color: var(--w8ba7-cyan);
}

/* Mobile Menu */
.w8ba7-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--w8ba7-bg-overlay);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 4rem 1rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.w8ba7-mobile-menu.w8ba7-menu-open {
  transform: translateX(0);
}

.w8ba7-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--w8ba7-primary);
  font-size: 2rem;
}

.w8ba7-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.w8ba7-menu-item {
  padding: 1rem;
  border-radius: 8px;
  color: var(--w8ba7-text-light);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.w8ba7-menu-item:hover {
  background-color: var(--w8ba7-primary);
  color: var(--w8ba7-dark);
}

/* Main Content */
main {
  padding-top: 60px;
  padding-bottom: 80px;
}

.w8ba7-section {
  padding: 1.5rem 0;
}

.w8ba7-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w8ba7-primary);
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: var(--w8ba7-glow);
}

/* Carousel */
.w8ba7-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: var(--w8ba7-shadow-lg);
}

.w8ba7-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.w8ba7-carousel-slide {
  min-width: 100%;
  position: relative;
}

.w8ba7-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.w8ba7-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w8ba7-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w8ba7-carousel-indicator.active {
  background-color: var(--w8ba7-primary);
  transform: scale(1.2);
}

/* Game Grid */
.w8ba7-game-section {
  margin: 2rem 0;
}

.w8ba7-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w8ba7-primary);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--w8ba7-accent);
}

.w8ba7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.w8ba7-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.w8ba7-game-item:hover {
  transform: scale(1.05);
}

.w8ba7-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--w8ba7-accent), var(--w8ba7-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--w8ba7-shadow);
  margin-bottom: 0.3rem;
}

.w8ba7-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w8ba7-game-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--w8ba7-text-light);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content Sections */
.w8ba7-content-card {
  background-color: rgba(173, 181, 189, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--w8ba7-tertiary);
}

.w8ba7-content-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w8ba7-primary);
  margin-bottom: 1rem;
}

.w8ba7-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--w8ba7-secondary);
  margin-bottom: 1rem;
}

.w8ba7-content-text p {
  margin-bottom: 1rem;
}

.w8ba7-content-text a {
  color: var(--w8ba7-primary);
  text-decoration: underline;
  font-weight: 600;
}

.w8ba7-content-text a:hover {
  color: var(--w8ba7-cyan);
}

/* Promo Links */
.w8ba7-promo-link {
  display: inline-block;
  color: var(--w8ba7-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.w8ba7-promo-link:hover {
  color: var(--w8ba7-cyan);
  background-color: rgba(0, 255, 255, 0.1);
}

/* Feature List */
.w8ba7-feature-list {
  margin: 1rem 0;
}

.w8ba7-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: rgba(173, 181, 189, 0.05);
  border-radius: 8px;
}

.w8ba7-feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--w8ba7-primary);
}

.w8ba7-feature-text {
  flex: 1;
  font-size: 1.3rem;
  color: var(--w8ba7-secondary);
  line-height: 1.5;
}

/* Stats Cards */
.w8ba7-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.w8ba7-stat-card {
  background: linear-gradient(135deg, var(--w8ba7-accent), var(--w8ba7-tertiary));
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--w8ba7-shadow);
}

.w8ba7-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--w8ba7-primary);
  margin-bottom: 0.3rem;
}

.w8ba7-stat-label {
  font-size: 1.1rem;
  color: var(--w8ba7-dark);
  opacity: 0.8;
}

/* Footer */
.w8ba7-footer {
  background-color: var(--w8ba7-darker);
  border-top: 1px solid var(--w8ba7-tertiary);
  padding: 2rem 0;
  margin-top: 3rem;
}

.w8ba7-footer-content {
  margin-bottom: 2rem;
}

.w8ba7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.w8ba7-footer-link {
  color: var(--w8ba7-secondary);
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.w8ba7-footer-link:hover {
  background-color: var(--w8ba7-primary);
  color: var(--w8ba7-dark);
}

.w8ba7-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.w8ba7-partner-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: var(--w8ba7-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--w8ba7-dark);
  font-weight: 600;
}

.w8ba7-copyright {
  text-align: center;
  color: var(--w8ba7-secondary);
  font-size: 1.1rem;
  opacity: 0.7;
  margin-top: 1rem;
}

/* Bottom Navigation */
.w8ba7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--w8ba7-dark) 0%, var(--w8ba7-darker) 100%);
  border-top: 2px solid var(--w8ba7-primary);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

.w8ba7-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  color: var(--w8ba7-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.w8ba7-nav-item:hover {
  color: var(--w8ba7-primary);
  transform: scale(1.1);
}

.w8ba7-nav-item.w8ba7-nav-active {
  color: var(--w8ba7-primary);
}

.w8ba7-nav-item.w8ba7-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--w8ba7-primary);
  border-radius: 0 0 3px 3px;
}

.w8ba7-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.w8ba7-nav-text {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

/* Loading State */
.w8ba7-loading {
  opacity: 0.6;
  cursor: not-allowed;
}

.w8ba7-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--w8ba7-dark);
  border-top-color: transparent;
  border-radius: 50%;
  animation: w8ba7-spin 0.6s linear infinite;
}

@keyframes w8ba7-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (min-width: 769px) {
  .w8ba7-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.w8ba7-text-center {
  text-align: center;
}

.w8ba7-mt-1 { margin-top: 1rem; }
.w8ba7-mt-2 { margin-top: 2rem; }
.w8ba7-mt-3 { margin-top: 3rem; }
.w8ba7-mb-1 { margin-bottom: 1rem; }
.w8ba7-mb-2 { margin-bottom: 2rem; }
.w8ba7-mb-3 { margin-bottom: 3rem; }

.w8ba7-hidden {
  display: none;
}

/* Animations */
@keyframes w8ba7-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w8ba7-fade-in {
  animation: w8ba7-fadeIn 0.5s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--w8ba7-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--w8ba7-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--w8ba7-accent);
}
