/* JackpotPattern Clone - Core Style Guide & Design System */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Color Palette (Light Theme Defaults) */
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --text-muted: #555555;
  --border-color: #eeeeee;
  
  /* Brand Accents */
  --success: #27ae60;
  --success-light: rgba(39, 174, 96, 0.1);
  --danger: #c0392b;
  --danger-light: rgba(192, 57, 43, 0.08);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.12);
  --primary-accent: #007bff;
  --primary-accent-light: rgba(0, 123, 255, 0.1);
  
  /* Card Options (Quiz options, list details) */
  --option-bg: #f8f9fa;
  --option-hover: #e9ecef;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Global Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px 2px rgba(220, 170, 40, 0.4),
                0 0 20px 6px rgba(220, 160, 20, 0.2);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 12px 4px rgba(220, 170, 40, 0.6),
                0 0 30px 10px rgba(220, 160, 20, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px 2px rgba(220, 170, 40, 0.4),
                0 0 20px 6px rgba(220, 160, 20, 0.2);
  }
}

@keyframes pulse-danger {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 10px 15px rgba(192, 57, 43, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.pulse-button {
  animation: pulse 2s infinite ease-in-out;
}

.pulse-button-danger {
  animation: pulse-danger 2s infinite ease-in-out;
}

/* Dark Mode Pages (Homepage, Quiz, VSL) */
.theme-dark {
  background-color: #0d0d0d;
  color: #ffffff;
}

.theme-dark body {
  background-color: #0d0d0d;
  color: #ffffff;
}

/* Layout Utilities */
.min-h-screen {
  min-height: 100vh;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.max-w-lg {
  max-width: 512px;
  width: 100%;
}

.max-w-md {
  max-width: 480px;
  width: 100%;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}

.px-6 {
  padding-left: 24px;
  padding-right: 24px;
}

.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.py-6 {
  padding-top: 24px;
  padding-bottom: 24px;
}

.pt-6 {
  padding-top: 24px;
}

.pb-6 {
  padding-bottom: 24px;
}

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

/* Headers & Alert Banners */
.alert-banner {
  color: #ffffff;
  text-align: center;
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.4px;
  width: 100%;
  text-transform: uppercase;
}

.alert-banner.danger {
  background-color: var(--danger);
}

.alert-banner.warning {
  background-color: var(--warning);
}

.alert-banner.success {
  background-color: var(--success);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.badge.success {
  background-color: var(--success-light);
  border: 1px solid var(--success);
  color: #1a7a40;
}

.badge.danger {
  background-color: rgba(127, 29, 29, 0.1);
  border: 1px solid #7f1d1d;
  color: #7f1d1d;
}

.badge.warning {
  background-color: var(--warning-light);
  border: 1px solid var(--warning);
  color: #b45309;
}

/* Typography */
h1 {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: inherit;
  margin-bottom: 20px;
}

p {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-muted);
  line-height: 1.6;
}

.theme-dark p {
  color: rgba(255, 255, 255, 0.7);
}

strong {
  color: inherit;
}

/* Cards & Content Blocks */
.warning-box {
  margin: 0 20px 32px;
  background-color: var(--danger-light);
  border-left: 4px solid var(--danger);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: clamp(13px, 3vw, 15px);
  color: var(--danger);
  line-height: 1.5;
  text-align: left;
}

.warning-box strong {
  color: var(--danger);
}

.info-box {
  margin: 0 20px 32px;
  background-color: #f9fafb;
  border-radius: 12px;
  border: 0.5px solid #e5e5e5;
  padding: 24px;
  text-align: left;
}

.info-box p {
  margin-bottom: 16px;
  color: #444;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.theme-dark .info-box {
  background-color: #161616;
  border-color: #333333;
}

.theme-dark .info-box p {
  color: rgba(255, 255, 255, 0.8);
}

.discount-box {
  margin: 0 20px 24px;
  background-color: #f0faf4;
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.discount-box .regular-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.discount-box .badge-percent {
  display: inline-block;
  background-color: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.discount-box .price {
  font-size: 36px;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 4px;
}

/* Feature/Benefit Lists */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background-color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-icon svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
}

.benefit-text {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Interactive Quiz Styling */
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 16px 8px;
  margin-bottom: 8px;
}

.quiz-back-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
}

.quiz-logo-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: 2px;
  user-select: none;
}

.quiz-logo-lotto {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  font-family: 'Arial Black', 'Arial', sans-serif;
  text-shadow: 0 2px 8px rgba(255,255,255,0.15);
}

.quiz-logo-app {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  font-family: 'Arial Black', 'Arial', sans-serif;
  text-shadow: 0 2px 8px rgba(255,255,255,0.15);
}

.progress-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar {
  height: 100%;
  background-color: #f5c518;
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease-out;
}

.quiz-question {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
}

.quiz-option-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option-btn .option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option-btn .emoji {
  font-size: 20px;
}

.quiz-option-btn svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.quiz-option-btn:hover svg {
  color: #ffffff;
}

/* Quiz Loading State */
.loading-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  text-align: left;
}

.loading-step {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.3s ease-out forwards;
}

.loading-progress-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
  margin-top: 8px;
}

.loading-progress-bar {
  height: 100%;
  background-color: #ffffff;
  width: 0%;
}

.loading-quote {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: 16px;
  line-height: 1.6;
}

/* Buttons and Links */
.btn-primary {
  display: inline-block;
  background-color: var(--success);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  fontSize: 18px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  text-align: center;
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-decline {
  display: block;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  font-size: 12px;
  color: #aaaaaa;
  padding: 8px 20px 24px;
  background: none;
  border: none;
  width: 100%;
}

.btn-decline:hover {
  color: #888888;
}

/* Testimonials Slider/List */
.testimonial-item {
  background-color: #f0faf4;
  border-left: 4px solid var(--success);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
  text-align: left;
}

.testimonial-author {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* How it Works */
.how-it-works-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  text-align: left;
}

.how-it-works-item:last-child {
  margin-bottom: 0;
}

.how-it-works-num {
  width: 24px;
  height: 24px;
  background-color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

.how-it-works-text {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
}

.how-it-works-text strong {
  color: #1a1a1a;
}

/* VSL & Delayed Section */
.vsl-container {
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
  padding: 24px 16px;
  flex-grow: 1;
}

.video-wrapper {
  background-color: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.delayed-button-container {
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
  width: 100%;
}

.pulse-button-large {
  display: block;
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #c8962a 0%, #e8b84b 50%, #c8962a 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 0 15px 5px rgba(220, 170, 40, 1),
              0 0 40px 15px rgba(220, 160, 20, 0.8),
              0 0 80px 25px rgba(200, 140, 10, 0.5);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Footer styling */
footer {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: auto;
  width: 100%;
}

.theme-light footer {
  color: #888888;
  border-top: 1px solid #eeeeee;
  margin-top: 40px;
}
