/**
 * ============================================================================
 * LANDMARKS QUIZ - ULTRA GAMING UI/UX
 * ============================================================================
 * World Travel Theme with 3D Effects, Animations & Particles
 * High-end gaming interface with smooth transitions
 * ============================================================================
 */

/* ========================================================================
   FONTS & BASE SETUP
   ======================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:wght@400;600;700;800&display=swap");

:root {
  /* Gaming Colors - World Travel Theme */
  --sky-blue: #3b82f6;
  --ocean-blue: #2563eb;
  --deep-blue: #1e40af;
  --travel-green: #10b981;
  --emerald: #059669;
  --gold: #f59e0b;
  --amber: #d97706;
  --sunset-orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;

  /* Gradients */
  --bg-world: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-sky: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
  --bg-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --bg-gold: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --bg-travel: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);

  /* Shadows */
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.5);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.5);
  --glow-gold: 0 0 20px rgba(245, 158, 11, 0.5);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.3);

  /* Animations */
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-world);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========================================================================
   ANIMATED WORLD MAP BACKGROUND
   ======================================================================== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 50%
    );
  animation: worldPulse 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes worldPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Floating Travel Icons */
.travel-icon {
  position: fixed;
  font-size: 3rem;
  opacity: 0.15;
  animation: floatTravel 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes floatTravel {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-40px) rotate(-5deg);
  }
  75% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ========================================================================
   SCREENS & CONTAINERS
   ======================================================================== */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--smooth);
  position: relative;
  z-index: 10;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   WELCOME SCREEN - WORLD TRAVEL ADVENTURE
   ======================================================================== */
#welcome-screen {
  text-align: center;
}

.game-header {
  margin-bottom: 3rem;
  animation: slideInDown 0.8s var(--bounce);
}

.game-icon {
  font-size: 8rem;
  margin-bottom: 1rem;
  animation: bounceGlobe 3s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes bounceGlobe {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(5deg);
  }
  50% {
    transform: translateY(-25px) rotate(-5deg);
  }
  75% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.game-title {
  font-family: "Fredoka One", cursive;
  font-size: 4rem;
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
}

.game-description {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ========================================================================
   DIFFICULTY CARDS - 3D TRAVEL DESTINATIONS
   ======================================================================== */
.difficulty-selection {
  margin: 3rem 0;
  animation: fadeInUp 0.8s var(--smooth) 0.2s both;
}

.difficulty-selection h2 {
  font-family: "Fredoka One", cursive;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.difficulty-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.difficulty-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: all 0.4s var(--spring);
  position: relative;
  overflow: hidden;
}

.difficulty-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s;
  pointer-events: none;
}

.difficulty-card:hover {
  transform: translateY(-15px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-float), var(--glow-blue);
}

.difficulty-card:hover::before {
  left: 100%;
}

.difficulty-card.selected {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.3),
    rgba(16, 185, 129, 0.3)
  );
  border-color: var(--travel-green);
  transform: scale(1.08);
  box-shadow: var(--shadow-float), var(--glow-green);
}

.difficulty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.difficulty-name {
  font-family: "Fredoka One", cursive;
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
}

.difficulty-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.difficulty-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

/* ========================================================================
   EPIC START BUTTON - BOARDING PASS STYLE
   ======================================================================== */
#start-game-btn {
  font-family: "Fredoka One", cursive;
  font-size: 2rem;
  padding: 1.5rem 4rem;
  background: var(--bg-success);
  color: #fff;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--spring);
  margin-top: 2rem;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.8s var(--smooth) 0.4s both;
}

#start-game-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#start-game-btn:hover::before {
  width: 300px;
  height: 300px;
}

#start-game-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: var(--shadow-float), var(--glow-green);
}

#start-game-btn:active {
  transform: scale(1.05);
}

#start-game-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#start-game-btn span {
  position: relative;
  z-index: 1;
}

/* ========================================================================
   GAME SCREEN - QUIZ INTERFACE
   ======================================================================== */
#game-screen {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Top HUD */
.game-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-value {
  font-family: "Fredoka One", cursive;
  font-size: 2rem;
  color: #fff;
}

/* Icon Buttons */
.icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s var(--spring);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-blue);
}

/* ========================================================================
   LANDMARK QUESTION CARD - 3D TRAVEL CARD
   ======================================================================== */
.question-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 3rem;
  margin-bottom: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-card);
  animation: slideInUp 0.6s var(--bounce);
}

.question-header {
  text-align: center;
  margin-bottom: 2rem;
}

.question-number {
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.question-text {
  font-family: "Fredoka One", cursive;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.question-hint {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Landmark Image */
.landmark-image-container {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.landmark-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s var(--smooth);
}

.landmark-image-container:hover .landmark-image {
  transform: scale(1.1);
}

/* Placeholder for missing images */
.landmark-placeholder {
  width: 100%;
  height: 400px;
  background: var(--bg-travel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  border-radius: 20px;
}

/* ========================================================================
   ANSWER CHOICES - GAMING CARDS
   ======================================================================== */
.choices-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.choice-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s var(--spring);
  position: relative;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.choice-letter {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka One", cursive;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.choice-text {
  flex: 1;
}

.choice-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.choice-btn:hover {
  transform: translateX(10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-card), var(--glow-blue);
}

.choice-btn:hover::before {
  left: 100%;
}

.choice-btn.correct {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.4),
    rgba(5, 150, 105, 0.4)
  );
  border-color: var(--travel-green);
  animation: pulseCorrect 0.6s var(--bounce);
  box-shadow: var(--glow-green);
}

.choice-btn.wrong {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.4),
    rgba(220, 38, 38, 0.4)
  );
  border-color: #ef4444;
  animation: shakeWrong 0.5s;
}

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

@keyframes shakeWrong {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* ========================================================================
   FEEDBACK SECTION - TRAVEL STAMP STYLE
   ======================================================================== */
.feedback-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2.5rem;
  margin-top: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.5s var(--bounce);
  text-align: center;
}

.feedback-section.correct {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2),
    rgba(5, 150, 105, 0.2)
  );
  border-color: var(--travel-green);
  box-shadow: var(--glow-green);
}

.feedback-section.wrong {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2),
    rgba(220, 38, 38, 0.2)
  );
  border-color: #ef4444;
}

.feedback-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: popIn 0.5s var(--bounce);
}

.feedback-title {
  font-family: "Fredoka One", cursive;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.feedback-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.fun-fact {
  background: rgba(245, 158, 11, 0.2);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  text-align: left;
}

.fun-fact-label {
  font-family: "Fredoka One", cursive;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.fun-fact-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Next Button */
#next-btn {
  font-family: "Fredoka One", cursive;
  font-size: 1.5rem;
  padding: 1.2rem 3rem;
  background: var(--bg-travel);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s var(--spring);
  box-shadow: var(--shadow-card);
}

#next-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-float), var(--glow-blue);
}

/* ========================================================================
   RESULTS SCREEN - PASSPORT STAMP STYLE
   ======================================================================== */
#results-screen {
  text-align: center;
  padding: 2rem;
}

.results-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 4rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-float);
  animation: fadeInUp 0.8s var(--bounce);
}

.results-icon {
  font-size: 8rem;
  margin-bottom: 2rem;
  animation: celebration 1s var(--bounce);
}

@keyframes celebration {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

.results-title {
  font-family: "Fredoka One", cursive;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.results-score {
  font-family: "Fredoka One", cursive;
  font-size: 5rem;
  color: var(--gold);
  margin: 2rem 0;
  text-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-family: "Fredoka One", cursive;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.results-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-family: "Fredoka One", cursive;
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s var(--spring);
  box-shadow: var(--shadow-card);
}

.btn-primary {
  background: var(--bg-success);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-float);
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */
@media (max-width: 768px) {
  .game-title {
    font-size: 2.5rem;
  }

  .game-icon {
    font-size: 5rem;
  }

  .difficulty-cards {
    grid-template-columns: 1fr;
  }

  .question-text {
    font-size: 1.8rem;
  }

  .choices-container {
    grid-template-columns: 1fr;
  }

  .choice-btn {
    padding: 1.5rem;
    font-size: 1.1rem;
  }

  .game-top-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .results-score {
    font-size: 3.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   MODAL STYLES
   ======================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  border-radius: 30px;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: popIn 0.4s var(--bounce);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}
