/* Custom Mario Kart 9 Styles */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Nunito:wght@400;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Floating Background Elements */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-coin {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.coin-1 { top: 10%; left: 10%; animation-delay: 0s; }
.coin-2 { top: 20%; right: 15%; animation-delay: 1s; }
.coin-3 { top: 60%; left: 5%; animation-delay: 2s; }
.coin-4 { top: 70%; right: 10%; animation-delay: 3s; }
.coin-5 { top: 40%; right: 5%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.mario-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  background: linear-gradient(45deg, #ff0000, #ffff00, #00ff00, #0066ff, #ff00ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 4px 4px 0 #000, -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000;
  animation: rainbow 3s ease-in-out infinite, bounce 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 4s ease-in-out infinite;
  margin-bottom: 2rem;
}

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

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

.hero-image {
  max-width: 100%;
  height: auto;
  border: 4px solid #fff;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
  to { box-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 215, 0, 0.6); }
}

/* Buttons */
.preorder-button-hero {
  background: linear-gradient(45deg, #ff0000, #ff6600);
  color: white;
  border: none;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 2rem 0;
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3);
}

.preorder-button-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(255, 0, 0, 0.4);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Countdown Timer */
.countdown-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 15px;
  margin: 0 0.5rem;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ff0000;
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
}

/* Section Titles */
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  border-color: #ff6b6b;
}

.feature-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 15px;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
}

.feature-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Character Cards */
.character-carousel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.character-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 60px;
}

.character-scroll {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.character-card {
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 3px solid transparent;
}

.character-card-hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  border-color: #4ecdc4;
}

.character-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid #f0f0f0;
}

.character-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.5rem;
}

.character-ability {
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-button-left {
  left: 0;
}

.carousel-button-right {
  right: 0;
}

/* Track Preview */
.track-main-preview {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.track-main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.track-main-info {
  padding: 2rem;
}

.track-main-name {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
}

.track-main-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-preview {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.track-preview:hover {
  transform: translateX(5px);
  border-color: #45b7d1;
}

.track-preview-active {
  border-color: #ff6b6b;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.track-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.track-info {
  padding: 1rem;
}

.track-name {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.track-difficulty {
  font-size: 0.8rem;
}

.difficulty-label {
  color: #666;
}

.difficulty-easy { color: #4caf50; }
.difficulty-medium { color: #ff9800; }
.difficulty-hard { color: #f44336; }
.difficulty-expert { color: #9c27b0; }

/* Game Mode Cards */
.game-mode-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.game-mode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.mode-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}

.mode-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
}

.mode-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.mode-button {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(68, 160, 141, 0.3);
}

/* Screenshots */
.screenshot-container {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.screenshot-container:hover {
  transform: scale(1.05);
}

.screenshot {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: bold;
}

/* Edition Cards */
.edition-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.edition-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.edition-popular {
  border-color: #ffd700;
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.edition-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.edition-price {
  text-align: center;
  margin-bottom: 2rem;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.current-price {
  font-size: 2rem;
  font-weight: 900;
  color: #ff0000;
}

.edition-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.edition-feature {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
}

.edition-feature:before {
  content: "✓ ";
  color: #4caf50;
  font-weight: bold;
  margin-right: 0.5rem;
}

.preorder-button {
  width: 100%;
  background: linear-gradient(45deg, #ff0000, #ff6600);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 25px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.preorder-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
}

.newsletter-button {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(68, 160, 141, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .character-container {
    padding: 0 40px;
  }
  
  .character-scroll {
    gap: 1rem;
  }
  
  .character-card {
    min-width: 200px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input,
  .newsletter-button {
    width: 100%;
  }
  
  .countdown-unit {
    margin: 0.5rem 0;
  }
  
  .track-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}