/* styles.css */

/* // TODO: replace before launch (add actual licensed font files)
  @font-face {
    font-family: 'Nexa';
    src: url('./fonts/Nexa-Regular.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Boston Angel';
    src: url('./fonts/BostonAngel.woff2') format('woff2');
  }
*/

:root {
  --bg-orange: #FFF5E4;
  --accent-crimson: #F9315C;
  --dark-blue: #18223B;
  --white: #FFFFFF;
  --font-sans: 'Nexa', 'Archivo', sans-serif;
  --font-serif: 'Boston Angel', 'Spectral', serif;
}

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

body {
  background-color: var(--bg-orange);
  color: var(--dark-blue);
  font-family: var(--font-sans);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Mobile-first constraints */
#app-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-orange);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Hero Section */
header {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 24px 20px;
  text-align: center;
}

header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

#dynamic-greeting {
  font-size: 1.1rem;
  font-weight: normal;
  opacity: 0.9;
}

/* Main Content Area */
main {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* YouTube Embedded Player container */
.video-container {
  width: 100%;
  aspect-ratio: 9 / 16; /* Vertical shorts ratio */
  background-color: var(--dark-blue);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(24, 34, 59, 0.15);
}

#player {
  width: 100%;
  height: 100%;
}

/* Calls to Action */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

button {
  background-color: var(--white);
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
  padding: 14px 20px;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

button.primary {
  background-color: var(--accent-crimson);
  color: var(--white);
  border-color: var(--accent-crimson);
}

/* Quiz Styles */
#quiz-container {
  background-color: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.quiz-question h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-progress {
  margin-top: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: #666;
}

.debt-message {
  margin-top: 10px;
  padding: 12px;
  background-color: var(--bg-orange);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--accent-crimson);
  font-weight: bold;
}

/* Result Screen */
.result-screen {
  text-align: center;
}

.result-screen h2 {
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.result-screen p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.email-capture {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.email-capture input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 16px;
  font-size: 0.75rem;
  color: var(--dark-blue);
}

.disclaimer-box {
  border: 1px solid var(--accent-crimson);
  display: inline-block;
  padding: 8px 12px;
  text-transform: uppercase;
}

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

/* Confetti Animation */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9999;
  border-radius: 2px;
  animation: fall linear forwards;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}