@import url("https://db.onlinewebfonts.com/c/4ac6e64fec968539605ba9843e208b9f?family=Oskari+G2+Medium");
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-main: #07090e;
  --bg-surface: rgba(15, 18, 28, 0.75);
  --bg-surface-hover: rgba(24, 29, 45, 0.9);
  --bg-card: rgba(17, 21, 34, 0.65);
  --bg-card-hover: rgba(28, 33, 53, 0.85);
  
  --primary: #7c3aed;
  --primary-light: #9061f9;
  --primary-glow: rgba(124, 58, 237, 0.4);
  
  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.35);
  --neon-cyan: #06b6d4;
  --neon-red: #f43f5e;
  --neon-red-glow: rgba(244, 63, 94, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(147, 51, 234, 0.35);
  --border-active: rgba(16, 185, 129, 0.6);
  
  --whatsapp-color: #25d366;
  --whatsapp-glow: rgba(37, 211, 102, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-heading: 'Oskari G2 Medium', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows & Cyber Grid */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}

.glow-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #7c3aed 0%, rgba(99, 102, 241, 0.4) 60%, transparent 80%);
}

.glow-2 {
  width: 400px;
  height: 400px;
  top: 30%;
  left: -100px;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0.2) 60%, transparent 80%);
  opacity: 0.2;
}

.glow-3 {
  width: 450px;
  height: 450px;
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, #f43f5e 0%, rgba(244, 63, 94, 0.2) 60%, transparent 80%);
  opacity: 0.18;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

/* Typography Base */
h1, h2, h3, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Top Announcement Ticker */
.announcement-bar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem 1rem;
  position: relative;
  z-index: 10;
}

.announcement-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-dot 2s infinite;
}

.announcement-link {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s, text-shadow 0.2s;
}

.announcement-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--primary-glow);
}

/* Header Section */
header {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem 1rem;
  position: relative;
  z-index: 5;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.main-title {
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 10%, #e2e8f0 45%, #a78bfa 75%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Banner Box (500+ Games Bundle at 499/-) */
.banner-wrapper {
  position: relative;
  display: inline-flex;
  border-radius: var(--radius-lg);
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 12px 35px -5px rgba(124, 58, 237, 0.35), 0 0 15px rgba(16, 185, 129, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.banner-wrapper:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 45px -5px rgba(124, 58, 237, 0.5), 0 0 25px rgba(16, 185, 129, 0.35);
}

.animated-gradient {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #06b6d4,
    #10b981,
    #f43f5e,
    #7c3aed
  );
  animation: rotateGradient 6s linear infinite;
}

.inner-gradient {
  position: relative;
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 1.1rem 2rem;
  background: linear-gradient(145deg, rgba(17, 21, 38, 0.96) 0%, rgba(10, 13, 24, 0.98) 100%);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .inner-gradient {
    padding: 1.25rem 3rem;
  }
}

.banner-text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.banner-text .text-white {
  color: #ffffff;
  font-weight: 800;
}

.price-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 900;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 5;
}

/* Search Section */
.search-section {
  padding: 1rem 0 2rem 0;
}

.search-box-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box-card:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 15px 35px -10px rgba(124, 58, 237, 0.25), 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon-left {
  position: absolute;
  left: 1.25rem;
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-box-card:focus-within .search-icon-left {
  color: #a78bfa;
}

.search-input {
  width: 100%;
  height: 3.8rem;
  padding: 0 3.25rem 0 3.25rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: #ffffff;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-input::placeholder {
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.clear-search-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.05);
}

.search-btn {
  height: 3.5rem;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: calc(var(--radius-lg) - 6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.search-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.search-btn:active {
  transform: scale(0.98);
}

/* Quick Filter Badges Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem 1.25rem 0.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.counter-number {
  color: #38bdf8;
  font-weight: 700;
}

.features-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Games Container & Grid */
.games-container {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 8rem;
}

.games-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .games-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

/* Game Card */
.game-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  gap: 0.85rem;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #7c3aed, #06b6d4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(124, 58, 237, 0.15);
}

.game-card:hover::before {
  opacity: 1;
}

.game-rank-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.game-card:hover .game-rank-badge {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.game-name {
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.35;
  letter-spacing: 0.05em;
  word-break: break-word;
  flex: 1;
  transition: color 0.2s;
}

.game-card:hover .game-name {
  color: #34d399;
}

/* State Boxes */
.state-box {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  margin: 1rem 0;
}

.state-box.loading {
  border-color: rgba(56, 189, 248, 0.3);
}

.state-box.error {
  border-color: rgba(244, 63, 94, 0.4);
}

.state-box.empty {
  border-color: rgba(139, 92, 246, 0.3);
}

.state-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.25rem auto;
}

.state-box p {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.state-box.loading p {
  color: #38bdf8;
}

.state-box.error p {
  color: var(--neon-red);
}

.state-box.empty p {
  color: var(--text-muted);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(37, 211, 102, 0.25);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .floating-whatsapp {
    bottom: 2rem;
    right: 2rem;
    padding: 0.85rem 1.5rem;
  }
}

.floating-whatsapp:hover {
  border-color: var(--whatsapp-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(37, 211, 102, 0.45);
  transform: translateY(-3px) scale(1.02);
}

.floating-whatsapp:active {
  transform: scale(0.98);
}

.whatsapp-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--whatsapp-color);
  box-shadow: 0 0 10px var(--whatsapp-color);
  animation: pulse-dot 2s infinite;
}

.whatsapp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.whatsapp-label {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whatsapp-number {
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.whatsapp-icon {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: #a78bfa;
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  transform: translateY(-3px);
}

/* Toast notification */
.toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--neon-green);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.3);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 14, 0.95);
  backdrop-filter: blur(12px);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 5;
}

footer a {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Keyframes */
@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
