@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Enhanced Color Palette */
  --primary-pink: #ff4081;
  --secondary-pink: #e91e63;
  --accent-purple: #9c27b0;
  --accent-blue: #2196f3;
  --neon-pink: #ff69b4;
  --magenta: #ff1493;
  --electric-blue: #00bcd4;
  --lime-green: #76ff03;
  
  /* Background Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1f2a4a;
  --bg-nav: #0f1419;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-accent: #ff4081;
  --text-muted: #7a7a7a;
  
  /* Effects */
  --shadow-glow: 0 0 20px rgba(255, 64, 129, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 48px rgba(255, 64, 129, 0.2);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(45deg, var(--primary-pink), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 64, 129, 0.5);
}

h2 {
  font-size: 2rem;
  background: linear-gradient(45deg, var(--magenta), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-accent);
  text-shadow: 0 0 15px rgba(255, 64, 129, 0.3);
}

h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Enhanced Navigation */
nav {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 64, 129, 0.2);
  transition: var(--transition);
}

nav:hover {
  background: rgba(15, 20, 25, 0.98);
  border-bottom-color: rgba(255, 64, 129, 0.4);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 64, 129, 0.1), transparent);
  transition: var(--transition);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 64, 129, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, 
    rgba(156, 39, 176, 0.9) 0%, 
    rgba(233, 30, 99, 0.9) 25%,
    rgba(255, 64, 129, 0.9) 50%,
    rgba(33, 150, 243, 0.9) 75%,
    rgba(0, 188, 212, 0.9) 100%);
  background-size: cover;
  background-position: 50%;
  /* animation: gradientShift 8s ease infinite; */
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 64, 129, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 188, 212, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#hero h2 {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

#hero p {
  font-size: clamp(1rem, 4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Enhanced Cards */
.card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 64, 129, 0.1);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-pink), var(--electric-blue));
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 64, 129, 0.3);
}

/* Game Cards */
.game-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1rem;
  border: 1px solid rgba(255, 64, 129, 0.1);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-pink), var(--lime-green));
  transform: scaleX(0);
  transition: var(--transition);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 64, 129, 0.4);
}

.game-card h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.game-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.game-card-game-name {
  padding-right: 4rem;
}

/* Enhanced Buttons */
.voice-clip-btn,
.skill-picture-btn {
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

.voice-clip-btn:hover,
.skill-picture-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(255, 64, 129, 0.5);
}

.voice-clip-btn {
  right: 3.5rem;
}

.skill-picture-btn {
  right: 1rem;
  z-index: 30;
}

/* Search Input */
#searchInput {
  background: rgba(22, 33, 62, 0.8);
  border: 2px solid rgba(255, 64, 129, 0.3);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 400px;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
  transform: scale(1.02);
}

#searchInput::placeholder {
  color: var(--text-muted);
}

/* Category Titles */
.category-title {
  color: var(--text-accent);
  font-size: 1.75rem;
  margin: 1rem 0 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-pink), var(--electric-blue));
  border-radius: 2px;
}

/* Enhanced Pricing */
.text-neon-pink {
  color: var(--primary-pink);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Voice Player */
.voice-player-container {
  position: absolute;
  top: 1rem;
  right: 5rem;
  display: none;
  align-items: center;
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 64, 129, 0.2);
  z-index: 10;
}

.voice-player-container.expanded {
  display: flex;
}

.play-pause-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0.5rem;
  transition: var(--transition);
}

.play-pause-btn:hover {
  transform: scale(1.1);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-pink), var(--electric-blue));
  border-radius: 2px;
  outline: none;
  margin-left: 0.5rem;
  transition: var(--transition);
}

.volume-slider:hover {
  transform: scaleY(1.5);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(255, 64, 129, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 6px rgba(255, 64, 129, 0.3);
}

/* Enhanced Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary-pink);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error States */
.error {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.error-message {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ff4444;
  display: none;
}

.error .error-message {
  display: block;
}

/* Skill Images */
.skill-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(255, 64, 129, 0.3);
  z-index: 20;
  display: none;
  transition: var(--transition);
}

.skill-picture-container:hover .skill-image {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--bg-nav), var(--bg-secondary));
  border-top: 1px solid rgba(255, 64, 129, 0.2);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer p {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .game-card {
    margin: 0.5rem;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .voice-clip-btn,
  .skill-picture-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.shadow-lg { box-shadow: var(--shadow-card); }
.list-disc { list-style-type: disc; }
.pl-6 { padding-left: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
.text-lg { font-size: 1.125rem; }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--magenta), var(--electric-blue));
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.lightbox-content {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 64, 129, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 64, 129, 0.2);
}

.lightbox-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.lightbox-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 64, 129, 0.1);
  color: var(--primary-pink);
  transform: scale(1.1);
}

.lightbox-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  min-height: 300px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 64, 129, 0.2);
  display: flex;
  justify-content: center;
}

.lightbox-new-tab {
  background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

.lightbox-new-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox-header {
    padding: 1rem;
  }
  
  .lightbox-header h3 {
    font-size: 1.1rem;
  }
  
  .lightbox-image {
    max-height: 60vh;
  }
  
  .lightbox-footer {
    padding: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Section spacing */
#hero, #games, #faq, #terms, #contact {
  scroll-margin-top: 6rem;
}

@media (max-width: 768px) {
  #hero, #games, #faq, #terms, #contact {
    scroll-margin-top: 8rem;
  }
}

#quicksearch {
  padding-top: 1.5rem;
}

