/* ==========================================================================
   Vibe Swipe — Attendee Experience
   Mobile-first CSS · Optimized for 430px (iPhone) screens
   ========================================================================== */

:root {
  --color-navy: #1A2744;
  --color-navy-light: #243352;
  --color-teal: #0B9E89;
  --color-teal-dark: #089478;
  --color-white: #FFFFFF;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-indigo: #6366F1;
  --color-indigo-dark: #5558E6;
  --color-teal-glow: rgba(11, 158, 137, 0.35);
  --color-indigo-glow: rgba(99, 102, 241, 0.35);

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-stack);
  background-color: var(--color-navy);
  color: var(--color-white);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;
}

#app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
}

/* ---------- Screens ---------- */
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px 20px;
  width: 100%;
  animation: fadeIn 400ms ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Welcome Screen
   ========================================================================== */
.welcome-screen {
  text-align: center;
  gap: 20px;
}

.welcome-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-gray-400);
}

.welcome-event-name {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: var(--color-white);
}

.welcome-hook {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-gray-300);
  max-width: 320px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Shared Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active { transform: scale(0.95); }

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(11, 158, 137, 0.4);
}

.btn-primary:hover { background-color: var(--color-teal-dark); }

/* ==========================================================================
   Progress Dots
   ========================================================================== */
.progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 0 20px;
  width: 100%;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gray-300);
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.dot-active {
  background-color: var(--color-white);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.dot-done {
  background-color: var(--color-teal);
}

/* ==========================================================================
   Scenario Card
   ========================================================================== */
.scenario-screen {
  justify-content: flex-start;
  padding-top: 60px;
}

.swipe-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 24px 32px;
  color: var(--color-navy);
  user-select: none;
  touch-action: none;
  will-change: transform;
  width: 100%;
  max-width: 380px;
  cursor: grab;
  margin: 20px 0;
}

.swipe-card:active { cursor: grabbing; }

/* Glow states */
.swipe-card.glow-right {
  box-shadow: 0 8px 30px var(--color-teal-glow), 0 0 60px var(--color-teal-glow);
}
.swipe-card.glow-left {
  box-shadow: 0 8px 30px var(--color-indigo-glow), 0 0 60px var(--color-indigo-glow);
}

.card-question {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-navy);
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Yes/No response hints */
.card-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-200);
}

.hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-400);
  max-width: 45%;
}

.hint-yes { text-align: right; color: var(--color-teal); }
.hint-no { text-align: left; color: var(--color-indigo); }

/* Overlay labels */
.card-label {
  position: absolute;
  top: 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 3px solid;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.card-label-yes {
  right: 16px;
  color: var(--color-teal);
  border-color: var(--color-teal);
  transform: rotate(15deg);
}

.card-label-no {
  left: 16px;
  color: var(--color-indigo);
  border-color: var(--color-indigo);
  transform: rotate(-15deg);
}

/* ==========================================================================
   Swipe Buttons (Yes / No)
   ========================================================================== */
.swipe-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0 32px;
  width: 100%;
}

.btn-no {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-indigo);
  font-size: 12px;
  font-weight: 700;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.btn-no:hover { background-color: rgba(99, 102, 241, 0.15); }
.btn-no:active { transform: scale(0.95); }

.btn-yes {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(11, 158, 137, 0.35);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-yes:hover { background-color: var(--color-teal-dark); }
.btn-yes:active { transform: scale(0.95); }

/* ==========================================================================
   Generating / Spinner
   ========================================================================== */
.generating-screen { gap: 28px; }

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--color-teal);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.generating-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-gray-200);
  text-align: center;
  animation: textFade 2s ease-in-out infinite;
}

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

/* ==========================================================================
   Archetype Reveal Card
   ========================================================================== */
.reveal-screen,
.content-reveal-screen {
  padding: 20px;
  gap: 20px;
}

.archetype-card {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  color: var(--color-navy);
  text-align: center;
  padding: 40px 24px 32px;
  background: linear-gradient(135deg, var(--archetype-accent, var(--color-teal)) 0%, var(--color-navy) 100%);
  color: var(--color-white);
}

.reveal-entrance {
  animation: archetypeReveal 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes archetypeReveal {
  0% { opacity: 0; transform: scale(0.75) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.archetype-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 12px;
  animation: emojiPop 500ms 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes emojiPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.archetype-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.archetype-tagline {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 16px;
  font-style: italic;
}

.archetype-description {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.85;
  margin-bottom: 24px;
}

.reveal-next-hint {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.archetype-card .btn-primary {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
}

.archetype-card .btn-primary:hover {
  background: rgba(255,255,255,0.3);
}

/* ==========================================================================
   Final (Pack 2 Completion)
   ========================================================================== */
.final-screen {
  text-align: center;
  gap: 24px;
}

.affirmation-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.4;
}

/* ==========================================================================
   Done Screen
   ========================================================================== */
.done-screen {
  text-align: center;
  gap: 20px;
  justify-content: flex-start;
  padding-top: 48px;
}

.done-event-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gray-400);
}

.done-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-white);
}

.done-intro {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-gray-300);
  max-width: 340px;
  text-align: center;
  margin-bottom: 8px;
}

.done-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, var(--card-accent, var(--color-teal)) 0%, var(--color-navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
}

.done-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.done-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.done-emoji { font-size: 36px; }

.done-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}

.done-tagline {
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.done-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Don't Miss Recommendation --- */

.dont-miss-card {
  background: linear-gradient(135deg, #1B2A4A 0%, #0B9E89 100%) !important;
  border: 1px solid rgba(11, 158, 137, 0.3);
  position: relative;
  overflow: hidden;
}

.dont-miss-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.dont-miss-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.dont-miss-speaker {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.dont-miss-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.dont-miss-tag {
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.dont-miss-track {
  background: rgba(11, 158, 137, 0.3);
  color: #FFFFFF;
}

.dont-miss-reason {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
}

.dont-miss-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 16px 0;
}

.dont-miss-agenda-link {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 0.2s;
}

.dont-miss-agenda-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- Start Over --- */

.start-over-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.start-over-hint {
  font-size: 14px;
  color: var(--color-gray-400);
  margin-bottom: 12px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-gray-300);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}
