/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Gujarati', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  padding: 10px;
  overflow-x: hidden;
}

/* Header Styles */
header {
  text-align: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #6200ea, #3700b3);
  color: white;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(98, 0, 234, 0.3);
  position: relative;
  z-index: 100;
}

header h1 {
  color: white !important; /* WHITE game heading as requested */
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 10px;
}

.score-display {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

/* Ad Container Styles - Systematic Placement */
.ad-container {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: bold;
}

/* Top Ad - Full Width Banner */
.top-ad {
  width: 100%;
  height: 90px;
  margin: 15px auto;
  max-width: 728px;
}

/* Sidebar Ads - Fixed Position */
.left-ad, .right-ad {
  position: fixed;
  top: 120px;
  width: 160px;
  height: 600px;
  z-index: 99;
}

.left-ad {
  left: 10px;
}

.right-ad {
  right: 10px;
}

/* Bottom Sticky Ad */
.bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #ddd;
}

/* Hide sidebar ads on mobile */
@media (max-width: 1024px) {
  .left-ad, .right-ad {
    display: none;
  }
}

/* Main Container */
.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 80px; /* Space for bottom ad */
}

main {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Screen Management */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Welcome Screen */
.welcome-content {
  padding: 40px 30px;
  text-align: center;
}

.welcome-content h2 {
  font-size: 24px;
  color: #6200ea;
  margin-bottom: 30px;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.2);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 14px;
  font-weight: 600;
  color: #1565c0;
}

/* Game Screen */
.game-content {
  padding: 30px;
}

.question-header {
  text-align: center;
  margin-bottom: 30px;
}

.question-header h3 {
  font-size: 24px;
  color: #6200ea;
  margin-bottom: 15px;
  font-weight: 700;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  flex: 1;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6200ea, #3700b3);
  transition: width 0.4s ease;
  border-radius: 6px;
}

.progress-text {
  font-weight: 600;
  color: #6200ea;
  min-width: 40px;
}

.question-box {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.question-text {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 30px 0;
  color: #333;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.option-button {
  padding: 20px;
  font-size: 20px;
  font-weight: 700;
  border: 3px solid #6200ea;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(98, 0, 234, 0.2);
  color: #333;
}

.option-button:hover {
  background: linear-gradient(135deg, #e1d5ff, #d1c4e9);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(98, 0, 234, 0.3);
}

.option-button:active {
  transform: translateY(0);
}

.feedback-message {
  text-align: center;
  margin: 20px 0;
  font-weight: 700;
  font-size: 18px;
  min-height: 25px;
}

/* Loading Screen */
.loading-content {
  padding: 60px 30px;
  text-align: center;
}

.loading-animation {
  margin-bottom: 30px;
}

.spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #6200ea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-content h2 {
  font-size: 24px;
  color: #6200ea;
  margin-bottom: 30px;
}

.success-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.points-text {
  font-size: 20px;
  color: #4caf50;
  font-weight: 700;
}

.points-earned {
  font-size: 24px;
  color: #4caf50;
  font-weight: 700;
  background: rgba(76, 175, 80, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
}

/* Reward Screen */
.reward-content {
  padding: 50px 30px;
  text-align: center;
}

.reward-animation {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.reward-content h2 {
  font-size: 32px;
  color: #6200ea;
  margin-bottom: 20px;
}

.reward-amount {
  font-size: 72px;
  font-weight: 700;
  color: #4caf50;
  margin: 30px 0;
  text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
  animation: pulse 2s infinite;
}

.reward-message, .next-step {
  font-size: 16px;
  margin: 15px 0;
  color: #555;
}

/* Referral Screen */
.referral-content {
  padding: 40px 30px;
  text-align: center;
}

.referral-content h2 {
  font-size: 28px;
  color: #6200ea;
  margin-bottom: 20px;
}

.referral-instruction {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.referral-progress {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin: 30px 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.progress-label {
  font-weight: 600;
  color: #333;
}

.progress-count {
  font-weight: 700;
  color: #6200ea;
  font-size: 18px;
}

.referral-bar {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.referral-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #2e7d32);
  transition: width 0.4s ease;
  border-radius: 6px;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.share-button.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.share-button.facebook {
  background: linear-gradient(135deg, #1877f2, #166fe5);
  color: white;
}

.share-button.telegram {
  background: linear-gradient(135deg, #0088cc, #006699);
  color: white;
}

.share-icon {
  font-size: 20px;
}

/* Withdrawal Screen */
.withdrawal-content {
  padding: 40px 30px;
}

.withdrawal-content h2 {
  text-align: center;
  font-size: 28px;
  color: #6200ea;
  margin-bottom: 20px;
}

.withdrawal-amount {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  color: #4caf50;
  margin: 20px 0 40px 0;
}

.withdrawal-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  border-color: #6200ea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.1);
}

/* Success Screen */
.success-content {
  padding: 40px 30px;
  text-align: center;
}

.success-animation {
  font-size: 80px;
  color: #4caf50;
  margin-bottom: 20px;
}

.success-content h2 {
  font-size: 32px;
  color: #6200ea;
  margin-bottom: 30px;
}

.user-details {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #333;
}

.detail-value {
  font-weight: 700;
  color: #6200ea;
}

.success-message {
  margin: 30px 0;
}

.processing-time {
  font-size: 18px;
  font-weight: 600;
  color: #4caf50;
  margin-bottom: 10px;
}

.share-reminder {
  font-size: 16px;
  color: #ff5722;
  font-weight: 600;
}

/* Buttons */
.cta-button {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  padding: 15px 25px;
  background: linear-gradient(135deg, #6200ea, #3700b3);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(98, 0, 234, 0.3);
  text-align: center;
}

.cta-button:hover {
  background: linear-gradient(135deg, #4e00c2, #2e0080);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98, 0, 234, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cta-button.disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
}

/* Animations */
@keyframes spin {
  to { 
    transform: rotate(360deg); 
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding: 5px;
  }
  
  header h1 {
    font-size: 24px;
  }
  
  .score-display {
    gap: 20px;
    font-size: 14px;
  }
  
  .main-container {
    padding-bottom: 70px;
  }
  
  .welcome-content, .game-content, .loading-content, 
  .reward-content, .referral-content, .withdrawal-content, 
  .success-content {
    padding: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .question-text {
    font-size: 28px;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .option-button {
    padding: 15px;
    font-size: 18px;
  }
  
  .reward-amount {
    font-size: 56px;
  }
  
  .withdrawal-amount {
    font-size: 40px;
  }
  
  .progress-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .progress-text {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .question-text {
    font-size: 24px;
  }
  
  .reward-amount {
    font-size: 48px;
  }
  
  .withdrawal-amount {
    font-size: 36px;
  }
}

