* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

#banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.banner-showcase {
  margin-bottom: 50px;
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-showcase h2 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.8rem;
  border-bottom: 3px solid #007bff;
  padding-bottom: 10px;
  display: inline-block;
}

.banner-grid {
  display: grid;
  gap: 25px;
  margin-bottom: 20px;
}

.quiz-banner {
  background: white;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  border: 1px #ddd solid;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Theme System - 10 Professional Color Themes */
.quiz-banner.theme-ocean {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.quiz-banner.theme-sunset {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  color: #2c3e50;
}

.quiz-banner.theme-forest {
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
  color: white;
}

.quiz-banner.theme-lavender {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #2c3e50;
}

.quiz-banner.theme-midnight {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
}

.quiz-banner.theme-coral {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: white;
}

.quiz-banner.theme-mint {
  background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
  color: white;
}

.quiz-banner.theme-rose {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.quiz-banner.theme-emerald {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.quiz-banner.theme-royal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Theme-specific text colors */
.quiz-banner.theme-sunset .quiz-title,
.quiz-banner.theme-lavender .quiz-title {
  color: #2c3e50;
}

.quiz-banner.theme-sunset .quiz-category,
.quiz-banner.theme-lavender .quiz-category {
  color: #34495e;
}

/* All other themes use white text which is already set */
.quiz-banner.theme-ocean .quiz-title,
.quiz-banner.theme-forest .quiz-title,
.quiz-banner.theme-midnight .quiz-title,
.quiz-banner.theme-coral .quiz-title,
.quiz-banner.theme-mint .quiz-title,
.quiz-banner.theme-rose .quiz-title,
.quiz-banner.theme-emerald .quiz-title,
.quiz-banner.theme-royal .quiz-title {
  color: white;
}

.quiz-banner.theme-ocean .quiz-category,
.quiz-banner.theme-forest .quiz-category,
.quiz-banner.theme-midnight .quiz-category,
.quiz-banner.theme-coral .quiz-category,
.quiz-banner.theme-mint .quiz-category,
.quiz-banner.theme-rose .quiz-category,
.quiz-banner.theme-emerald .quiz-category,
.quiz-banner.theme-royal .quiz-category {
  color: rgba(255, 255, 255, 0.9);
}

.quiz-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.quiz-banner:hover .quiz-image {
  transform: scale(1.05);
}

.quiz-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
}

.quiz-category {
  color: #007bff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.quiz-difficulty {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.play-button {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Disable button interaction since entire banner is clickable */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Theme-specific button styles */
.quiz-banner.theme-ocean .play-button {
  background: linear-gradient(45deg, #3498db, #2980b9);
}

.quiz-banner.theme-sunset .play-button {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.quiz-banner.theme-forest .play-button {
  background: linear-gradient(45deg, #27ae60, #229954);
}

.quiz-banner.theme-lavender .play-button {
  background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.quiz-banner.theme-midnight .play-button {
  background: linear-gradient(45deg, #34495e, #2c3e50);
}

.quiz-banner.theme-coral .play-button {
  background: linear-gradient(45deg, #e67e22, #d68910);
}

.quiz-banner.theme-mint .play-button {
  background: linear-gradient(45deg, #1abc9c, #16a085);
}

.quiz-banner.theme-rose .play-button {
  background: linear-gradient(45deg, #e91e63, #ad1457);
}

.quiz-banner.theme-emerald .play-button {
  background: linear-gradient(45deg, #00b894, #00a085);
}

.quiz-banner.theme-royal .play-button {
  background: linear-gradient(45deg, #6c5ce7, #5f3dc4);
}

.quiz-banner:hover .play-button {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.loading {
  text-align: center;
  padding: 40px;
  color: white;
  font-size: 1.2rem;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid white;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .banner-showcase {
    padding: 20px;
  }

  .quiz-content {
    padding: 15px;
  }
}
