/* Modern Dark Mode Glassmorphism Theme for Personal Branding Quiz */

:root {
  --bg-dark: #090D16;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --bg-input: rgba(255, 255, 255, 0.05);

  --accent-teal: #0D9488;
  --accent-pink: #06B6D4;
  --accent-gradient: linear-gradient(135deg, #0D9488 0%, #06B6D4 100%);
  --accent-glow: rgba(13, 148, 136, 0.3);

  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --radius-lg: 16px;
  --radius-md: 12px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-teal);
  color: #FFF;
  padding: 8px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 20% 20%, rgba(13, 148, 136, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 65ch;
  margin: 0 auto;
}

/* Header & Branding */
header {
  text-align: center;
  padding: 24px 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

h2, h3 {
  line-height: 1.25;
}

p {
  line-height: 1.6;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 24px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

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

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Question Section */
.question-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.option-btn {
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-btn:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.option-btn.selected {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #FFF;
  font-weight: 600;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent-gradient);
  color: #FFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px var(--accent-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.4);
}

/* Paywall & Blurred Preview */
.paywall-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 20px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.blurred-text {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.5;
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(4px);
  text-align: center;
  padding: 20px;
}

.lock-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.pix-badge {
  background: #10B981;
  color: #000;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-left: 6px;
}

/* Modal Pix QR Code */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-content {
  background: #111827;
  border: 1px solid var(--accent-teal);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 40px var(--accent-glow);
}

.qr-box {
  background: #FFF;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  margin: 16px 0;
}

.qr-box img {
  width: 200px;
  height: 200px;
  display: block;
}

.copy-input-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.copy-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: monospace;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Result Unlocked Details */
.archetype-badge-large {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--accent-gradient);
  color: #FFF;
  margin: 12px 0;
}

.pill-section {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent-teal);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 14px;
}

.pill-section h4 {
  font-size: 0.95rem;
  color: var(--accent-teal);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Story Canvas Container */
.story-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
}

#storyCanvas {
  max-width: 320px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--bg-card-border);
  transition: all 0.3s ease;
}

/* Format Pills Selector for Canva/Instagram Export */
.format-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.format-pill:hover {
  background: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--text-main);
}

.format-pill.active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.3) 0%, rgba(2, 132, 199, 0.3) 100%);
  border-color: var(--accent-teal);
  color: #FFF;
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.3);
}

footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 24px 0;
}

