/* Kibbo — Index / Homepage styles */

:root {
  --neon-cyan: #00f5ff;
  --neon-pink: #ff006e;
  --neon-purple: #8b5cf6;
  --neon-green: #39ff14;
  --dark-bg: #040814;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Exo 2', sans-serif;
  background: var(--dark-bg);
  color: #fff;
  overflow-x: hidden;
}

/* Animated background */
.hero-bg {
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,92,246,0.35) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0,245,255,0.2) 0%, transparent 50%),
              radial-gradient(ellipse 50% 30% at 10% 80%, rgba(255,0,110,0.2) 0%, transparent 50%),
              #040814;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Neon text */
.neon-text-cyan { color: var(--neon-cyan); text-shadow: 0 0 20px var(--neon-cyan), 0 0 60px rgba(0,245,255,0.5); }
.neon-text-pink { color: var(--neon-pink); text-shadow: 0 0 20px var(--neon-pink), 0 0 60px rgba(255,0,110,0.5); }
.neon-text-purple { color: var(--neon-purple); }

/* Glass cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-card:hover {
  border-color: rgba(0,245,255,0.3);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,245,255,0.1), 0 0 0 1px rgba(0,245,255,0.1);
}

/* CTA Button */
.btn-cta {
  position: relative;
  background: linear-gradient(135deg, #8b5cf6, #00f5ff);
  border: none;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00f5ff, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-cta:hover::before { opacity: 1; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(139,92,246,0.5); }
.btn-cta span { position: relative; z-index: 1; }

.btn-play {
  background: linear-gradient(135deg, #39ff14, #00f5ff);
  color: #040814;
  font-weight: 800;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-play:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(57,255,20,0.5); }

/* Stars */
.star-filled { color: #ffd700; }
.star-empty { color: #333; }

/* Carousel */
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex-shrink: 0; }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.4); }
  50% { box-shadow: 0 0 40px rgba(139,92,246,0.8), 0 0 80px rgba(0,245,255,0.3); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.float-anim { animation: float 4s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Ticker */
.ticker-wrap { overflow: hidden; }
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

/* Sticky bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4,8,20,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,245,255,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-bar.visible { transform: translateY(0); }

/* Nav */
.nav-glass {
  background: rgba(4,8,20,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Section titles */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
}

/* Scan line effect */
.scan-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.3;
  animation: scan-line 6s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

/* Badge */
.badge-hot {
  background: linear-gradient(135deg, #ff006e, #ff4400);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-new {
  background: linear-gradient(135deg, #39ff14, #00f5ff);
  color: #040814;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Observe animation trigger */
.observe-me { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.observe-me.visible { opacity: 1; transform: translateY(0); }

/* Progress bar for ratings */
.rating-bar {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 4px;
}

.game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

/* Scroll indicator */
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.scroll-indicator { animation: bounce 1.5s ease-in-out infinite; }
