/* IPL Cricket Quiz - Modern Design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 25%, #4a7c59 50%, #6b9c7a 75%, #8bbd9b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Cricket Field Background */
.cricket-field {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cricket-field::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Main Container */
.container {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

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

/* Screen Base Styles */
.screen {
  padding: 40px;
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Start Screen */
.header {
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.logo-image {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  overflow: hidden;
}

.ipl-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

/* Fallback cricket ball if image doesn't load */
.logo-image:empty::before {
  content: '🏏';
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #8b6914 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #4a7c59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
  margin-bottom: 20px;
}

.difficulty-section h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Difficulty Buttons */
.difficulty-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.difficulty-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.difficulty-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;
}

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

.difficulty-btn.easy {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.difficulty-btn.medium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.difficulty-btn.hard {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.difficulty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  font-size: 1.5rem;
  min-width: 32px;
}

.btn-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.btn-desc {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Quiz Screen */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.quiz-info {
  display: flex;
  gap: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.info-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

.timer {
  color: #ef4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.quit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.quit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.quit-icon {
  font-size: 1.1rem;
}

/* Question Container */
.question-container {
  text-align: left;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 16px;
  border-left: 4px solid #4a7c59;
}

/* Options Container */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #4a7c59;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.option-btn:hover {
  transform: translateX(4px);
  border-color: #4a7c59;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.15);
}

.option-btn:hover::before {
  transform: scaleY(1);
}

.option-btn.correct {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #22c55e;
  color: #166534;
}

.option-btn.correct::before {
  background: #22c55e;
  transform: scaleY(1);
}

.option-btn.incorrect {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-color: #ef4444;
  color: #991b1b;
}

.option-btn.incorrect::before {
  background: #ef4444;
  transform: scaleY(1);
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Result Screen */
.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.result-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.score-label {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a472a 0%, #4a7c59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.action-btn.retry {
  background: linear-gradient(135deg, #4a7c59 0%, #2d5a3d 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.action-btn.home {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-radius: 16px;
  }
  
  .screen {
    padding: 24px;
  }
  
  .logo h1 {
    font-size: 2rem;
  }
  
  .logo-image {
    width: 50px;
    height: 50px;
  }
  
  .quiz-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .quiz-info {
    gap: 16px;
  }
  
  .result-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .difficulty-btn {
    padding: 16px 20px;
  }
  
  .btn-text {
    font-size: 1.1rem;
  }
  
  .question-text {
    font-size: 1.1rem;
  }
}