@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  /* Colors */
  --bg-dark: #0b0c15;
  --bg-card: #161822;
  --bg-card-hover: #1e2130;
  
  --primary: #00ff9d; /* Neon Green */
  --primary-glow: rgba(0, 255, 157, 0.4);
  
  --secondary: #bd00ff; /* Neon Purple */
  --secondary-glow: rgba(189, 0, 255, 0.4);
  
  --accent: #00f3ff; /* Cyan */
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  
  --danger: #ff4655;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  
  /* UI */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(189, 0, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 255, 157, 0.08) 0%, transparent 40%);
}

#app {
  width: 100%;
  max-width: 600px; /* Mobile focused max width */
  margin: 0 auto;
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

/* Screens */
.screen {
  display: none;
  animation: fadeIn 0.4s ease-out;
  width: 100%;
}

.screen.active {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Quiz List (Home) */
.quiz-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.quiz-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.quiz-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.quiz-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  flex-shrink: 0;
}

.card-content h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Start Screen */
.start-content {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: var(--spacing-md);
  padding: 0;
}

.btn-back:hover {
  color: var(--text-main);
}

.hero-icon {
  width: 80px;
  height: 80px;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Quiz Header */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-badge {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

.timer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-badge.danger {
  color: var(--danger);
  border-color: var(--danger);
  animation: pulse 1s infinite;
}

/* Question Card */
.question-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.question-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.question-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--spacing-lg);
  color: var(--text-main);
}

/* Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.option-letter {
  background: rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.option-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  transform: translateX(4px);
}

/* --- UPDATED: Selected state uses Secondary (Purple) --- */
.option-btn.selected {
  background: rgba(189, 0, 255, 0.15); /* Purple tint */
  border-color: var(--secondary); /* Neon Purple */
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
}

.option-btn.selected .option-letter {
  background: var(--secondary); /* Neon Purple */
  color: #ffffff;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  position: relative;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #33ffb0;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 157, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-main);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-ghost:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Lead Form */
.lead-form {
  background: var(--bg-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(189, 0, 255, 0.2);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Sponsor Footer */
.sponsor-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
}

.sponsor-footer a {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.sponsor-footer a:hover {
  color: var(--danger); /* Bodog Red-ish feel */
  text-shadow: 0 0 10px rgba(255, 70, 85, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Utility */
.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-glow);
}
