/* Tailwind CSS Configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;500;600;700;800;900&display=swap');

/* Base Styles */
body {
  font-family: 'Inter', sans-serif !important;
  padding-top: 80px; /* Account for fixed header */
}

/* Preserve Font Awesome icons */
.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Custom Styles */
.highlighted-section {
  outline: 2px solid #3F20FB;
  background-color: rgba(63, 32, 251, 0.1);
}

.edit-button {
  position: absolute;
  z-index: 1000;
}

/* Hide scrollbars */
::-webkit-scrollbar {
  display: none;
}

html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Dark Mode Styles */
.dark {
  color-scheme: dark;
}

/* Component-specific styles */
.console-card {
  transition: all 0.3s ease;
}

.console-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .console-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dark .game-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Button styles */
.btn-primary {
  background-color: #5A7D9A;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: rgba(90, 125, 154, 0.9);
  transform: translateY(-1px);
}

.dark .btn-primary {
  background-color: #3B82F6;
}

.dark .btn-primary:hover {
  background-color: #2563EB;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.dark .btn-secondary {
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.dark .btn-secondary:hover {
  background-color: rgba(59, 130, 246, 0.3);
}

/* Navigation styles */
.nav-link {
  color: #333333;
  transition: color 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

.nav-link:hover {
  color: #5A7D9A;
}

.dark .nav-link {
  color: #E2E8F0;
}

.dark .nav-link:hover {
  color: #3B82F6;
}

/* Search input styles */
.search-input {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(142, 142, 142, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  width: 16rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(90, 125, 154, 0.3);
}

.dark .search-input {
  background-color: rgba(38, 38, 38, 0.8);
  border: 1px solid rgba(64, 64, 64, 0.3);
  color: #F5F5F5;
}

.dark .search-input:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.dark .search-input::placeholder {
  color: #A3A3A3;
}

/* Hero section styles */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.dark .hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 20;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Card styles */
.card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark .card {
  background-color: #262626;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #404040;
}

.dark .card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: #3B82F6;
}

/* Status badges */
.status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-available {
  background-color: #10B981;
  color: white;
}

.status-limited {
  background-color: #F59E0B;
  color: white;
}

.status-trending {
  background-color: #EF4444;
  color: white;
}

.status-new {
  background-color: #8B5CF6;
  color: white;
}

/* Filter buttons */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active {
  background-color: #5A7D9A;
  color: white;
}

.dark .filter-btn.active {
  background-color: #3B82F6;
}

.filter-btn.inactive {
  background-color: white;
  color: #333333;
  border: 1px solid #E5E7EB;
}

.filter-btn.inactive:hover {
  background-color: #F9FAFB;
}

.dark .filter-btn.inactive {
  background-color: #262626;
  color: #F5F5F5;
  border: 1px solid #404040;
}

.dark .filter-btn.inactive:hover {
  background-color: #1A1A1A;
}

/* Select dropdown styles */
.select-dropdown {
  appearance: none;
  background-color: white;
  border: 1px solid #E5E7EB;
  color: #333333;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.select-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(90, 125, 154, 0.3);
}

.dark .select-dropdown {
  background-color: #262626;
  border: 1px solid #404040;
  color: #F5F5F5;
}

.dark .select-dropdown:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Testimonial styles */
.testimonial-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark .testimonial-card {
  background-color: #262626;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid #404040;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark .testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-color: #3B82F6;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  margin-right: 1rem;
}

/* Footer styles */
.footer-link {
  color: #9CA3AF;
  transition: color 0.3s ease;
  cursor: pointer;
}

.dark .footer-link {
  color: #A0AEC0;
}

.dark .footer-link:hover {
  color: #3B82F6;
}

/* Newsletter styles */
.newsletter-input {
  background-color: white;
  border: 1px solid #E5E7EB;
  color: #333333;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.dark .newsletter-input {
  background-color: #262626;
  border: 1px solid #404040;
  color: #F5F5F5;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(90, 125, 154, 0.3);
}

.dark .newsletter-input:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.newsletter-btn {
  background-color: #5A7D9A;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dark .newsletter-btn {
  background-color: #3B82F6;
}

.newsletter-btn:hover {
  background-color: rgba(90, 125, 154, 0.9);
  transform: translateY(-1px);
}

.dark .newsletter-btn:hover {
  background-color: #2563EB;
}

/* Section backgrounds */
.section-bg {
  background-color: #FAF9F6;
}

.dark .section-bg {
  background-color: #0F0F0F;
}

.section-bg-alt {
  background-color: white;
}

.dark .section-bg-alt {
  background-color: #1A1A1A;
}

/* Text colors */
.text-primary {
  color: #333333;
}

.dark .text-primary {
  color: #E2E8F0;
}

.text-secondary {
  color: #8E8E8E;
}

.dark .text-secondary {
  color: #A0AEC0;
}

/* Border colors */
.border-light {
  border-color: #E5E7EB;
}

.dark .border-light {
  border-color: #404040;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    height: 400px;
  }
  
  .search-input {
    width: 100%;
    max-width: 16rem;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 1s ease-out;
}

.animate-bounce-gentle {
  animation: bounceGentle 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceGentle {
  0%, 100% { 
    transform: translateY(0);
  }
  50% { 
    transform: translateY(-10px);
  }
}

/* New hero background animations */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  25% { 
    transform: translateY(-20px) translateX(10px) scale(1.05);
  }
  50% { 
    transform: translateY(-10px) translateX(-5px) scale(0.95);
  }
  75% { 
    transform: translateY(-30px) translateX(-10px) scale(1.02);
  }
}

@keyframes floatDelayed {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% { 
    transform: translateY(-25px) translateX(-15px) rotate(5deg);
  }
  66% { 
    transform: translateY(-5px) translateX(20px) rotate(-3deg);
  }
}

@keyframes floatSlow {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% { 
    transform: translateY(-40px) translateX(15px) scale(1.1);
  }
}

@keyframes particle1 {
  0% { 
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  25% { 
    opacity: 1;
  }
  100% { 
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}

@keyframes particle2 {
  0% { 
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  30% { 
    opacity: 1;
  }
  100% { 
    transform: translateY(-80px) translateX(-30px);
    opacity: 0;
  }
}

@keyframes particle3 {
  0% { 
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0;
  }
  20% { 
    opacity: 1;
  }
  100% { 
    transform: translateY(-120px) translateX(20px) scale(0.5);
    opacity: 0;
  }
}

@keyframes particle4 {
  0% { 
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  40% { 
    opacity: 1;
  }
  100% { 
    transform: translateY(-90px) translateX(-40px);
    opacity: 0;
  }
}

@keyframes particle5 {
  0% { 
    transform: translateY(0px) translateX(0px) scale(0.8);
    opacity: 0;
  }
  35% { 
    opacity: 1;
  }
  100% { 
    transform: translateY(-110px) translateX(35px) scale(1.2);
    opacity: 0;
  }
}

@keyframes rotateSlow {
  from { 
    transform: rotate(0deg);
  }
  to { 
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  from { 
    transform: rotate(360deg);
  }
  to { 
    transform: rotate(0deg);
  }
}

@keyframes sway {
  0%, 100% { 
    transform: rotate(12deg) translateX(0px);
  }
  50% { 
    transform: rotate(12deg) translateX(10px);
  }
}

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

/* Enhanced button hover effects */
.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.group:hover .group-hover\:rotate-12 {
  transform: rotate(12deg);
}

/* Hero section enhancements */
.hero-svg {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.dark .hero-svg {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Dark mode specific animations */
.dark .fade-in {
  animation: fadeInDark 0.6s ease-in-out;
}

@keyframes fadeInDark {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero background effects */
.hero-animated-bg {
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.03), 
    rgba(147, 51, 234, 0.03), 
    rgba(236, 72, 153, 0.03), 
    rgba(59, 130, 246, 0.03)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.dark .hero-animated-bg {
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.08), 
    rgba(147, 51, 234, 0.08), 
    rgba(236, 72, 153, 0.08), 
    rgba(59, 130, 246, 0.08)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.hero-grid-pattern {
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

.dark .hero-grid-pattern {
  background-image: 
    linear-gradient(rgba(147, 51, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

@keyframes gridMove {
  0% { 
    transform: translate(0, 0);
  }
  100% { 
    transform: translate(50px, 50px);
  }
}

/* Animation classes for new effects */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatDelayed 8s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-float-slow {
  animation: floatSlow 10s ease-in-out infinite;
  animation-delay: 4s;
}

.animate-particle-1 {
  animation: particle1 8s linear infinite;
  animation-delay: 0s;
}

.animate-particle-2 {
  animation: particle2 6s linear infinite;
  animation-delay: 1s;
}

.animate-particle-3 {
  animation: particle3 9s linear infinite;
  animation-delay: 2s;
}

.animate-particle-4 {
  animation: particle4 7s linear infinite;
  animation-delay: 3s;
}

.animate-particle-5 {
  animation: particle5 8s linear infinite;
  animation-delay: 4s;
}

.animate-rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

.animate-rotate-reverse {
  animation: rotateReverse 15s linear infinite;
}

.animate-sway {
  animation: sway 4s ease-in-out infinite;
}

/* Radial gradient utility */
.bg-gradient-radial {
  background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

/* Cursor effects styles */
#hero-canvas {
  z-index: 1;
}

#cursor-glow {
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(147, 51, 234, 0.1) 30%, 
    rgba(236, 72, 153, 0.05) 60%, 
    transparent 100%
  );
}

.dark #cursor-glow {
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.25) 0%, 
    rgba(147, 51, 234, 0.2) 30%, 
    rgba(236, 72, 153, 0.15) 60%, 
    transparent 100%
  );
}

/* Performance optimizations for cursor effects */
#hero {
  backface-visibility: hidden;
  perspective: 1000;
}

#hero-canvas,
#cursor-glow {
  transform: translateZ(0);
}

/* Enhanced card styles */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.console-card,
.game-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.console-card:hover,
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
}

.dark .console-card:hover,
.dark .game-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(147, 51, 234, 0.3);
}

/* Book button styles - Pure Transparent Outlined Buttons */
.book-console-btn,
.book-game-btn {
  position: relative;
  background: transparent !important;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.dark .book-console-btn,
.dark .book-game-btn {
  border-color: #8b5cf6;
  color: #8b5cf6;
}

.book-console-btn:hover,
.book-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Ensure no background or gradient */
.book-console-btn::before,
.book-game-btn::before {
  display: none !important;
}

.book-console-btn,
.book-game-btn {
  background-image: none !important;
  background: transparent !important;
}

/* Ensure consistent card heights */
#consoles-grid,
#games-grid {
  display: grid;
  grid-template-rows: 1fr;
}

/* Price styling */
.price-display {
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Rating stars enhancement */
.fa-star,
.fa-star-half-alt {
  margin-right: 1px;
}

/* Status badge improvements */
.status-badge {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Genre badge styles */
.genre-badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Glass morphism effect for dark mode */
.dark .glass-effect {
  background: rgba(38, 38, 38, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Gradient backgrounds for dark mode */
.dark .gradient-bg {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
}

.dark .gradient-card {
  background: linear-gradient(135deg, #262626 0%, #1A1A1A 100%);
  border: 1px solid #404040;
}

/* Hover effects for dark mode */
.dark .hover-glow:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.dark .hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Move genre tag to new line on small screens */
@media (max-width: 392px) {
  .game-card .flex.items-center.justify-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important; /* 4px gap between platform and genre */
  }
}

/* Hide Book Game button icon on very small screens */
@media (max-width: 372px) {
  .book-game-btn i {
    display: none !important;
  }
  
  .book-game-btn span {
    gap: 0 !important;
  }
}

/* Force mobile layout for tablets and smaller desktops */
@media only screen and (max-width: 1200px) {
  #hero .grid {
    grid-template-columns: 1fr !important;
  }
  
  #hero .order-1.lg\:order-2 {
    order: 1 !important;
  }
  
  #hero .order-2.lg\:order-1 {
    order: 2 !important;
  }
  
  #hero .block.lg\:hidden {
    display: block !important;
  }
  
  #hero .hidden.lg\:block {
    display: none !important;
  }
  
  #hero .hidden.lg\:flex {
    display: none !important;
  }
  
  /* Force mobile button to be center-aligned - more aggressive approach */
  #hero .mobile-button {
    justify-content: center !important;
    display: flex !important;
  }
  
  /* Hide desktop button on smaller screens */
  #hero .desktop-button {
    display: none !important;
  }
  
  /* Additional fallback - target any flex container in hero */
  #hero > div > div > div > div > div > div > div[class*="flex"] {
    justify-content: center !important;
  }
} 