/* ============================================================
   MODERN DISCIPLES — Custom Styles
   Brand: #0A0A0A bg | #0A3D9C blue | #B71C1C red | #C9A84C gold
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --black:   #0A0A0A;
  --surface: #111111;
  --border:  #1E1E1E;
  --text:    #FFFFFF;
  --muted:   #A0A0A0;
  --blue:    #0A3D9C;
  --red:     #B71C1C;
  --gold:    #C9A84C;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

/* ── Hero Background ────────────────────────────────────────── */
.hero-gradient-bg {
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(10, 61, 156, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(183, 28, 28, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 90%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, #0a0010 0%, #0A0A0A 40%, #060610 100%);
  animation: heroBreath 10s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  0%   { opacity: 0.9; }
  100% { opacity: 1; }
}

/* Subtle star/particle overlay using repeating gradient */
.hero-particles {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 0%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.08) 0%, transparent 0%),
    radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.10) 0%, transparent 0%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.07) 0%, transparent 0%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.09) 0%, transparent 0%),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.06) 0%, transparent 0%);
  background-size: 100% 100%;
  pointer-events: none;
}

/* ── Gold Gradient Text ─────────────────────────────────────── */
.text-gradient-gold {
  background: linear-gradient(135deg, #e8c87a 0%, #C9A84C 40%, #f0d090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glow Shadows ───────────────────────────────────────────── */
.shadow-blue-glow {
  box-shadow: 0 0 28px rgba(10, 61, 156, 0.45);
}
.shadow-blue-glow:hover {
  box-shadow: 0 0 44px rgba(10, 61, 156, 0.65);
}

/* ── Scroll Indicator ───────────────────────────────────────── */
.scroll-indicator {
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-dot {
  width: 4px;
  height: 9px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,100% { transform: translateY(0);   opacity: 0.9; }
  50%      { transform: translateY(9px); opacity: 0.2; }
}

/* ── Fade-in Up (hero elements) ─────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section Scroll Reveal ──────────────────────────────────── */
.section-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Quiz Wrapper ───────────────────────────────────────────── */
.quiz-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  min-height: 420px;
}

@media (max-width: 640px) {
  .quiz-wrapper { padding: 1.25rem; }
}

/* ── Progress Bar ───────────────────────────────────────────── */
.quiz-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #2563eb);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Section Intro Card ─────────────────────────────────────── */
.section-intro-card {
  text-align: center;
  padding: 3rem 1.5rem;
}

.section-intro-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(10, 61, 156, 0.15);
  border: 1px solid rgba(10, 61, 156, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

/* ── Question Cards ─────────────────────────────────────────── */
.quiz-question-card {
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
}

.quiz-question-card:has(.answer-card.selected) {
  border-color: rgba(10, 61, 156, 0.3);
}

.quiz-question-text {
  color: #e0e0e0;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

/* ── Answer Grid (desktop: 5 cols) ──────────────────────────── */
.quiz-answers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

/* Mobile: single column */
@media (max-width: 600px) {
  .quiz-answers-grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ── Answer Cards ───────────────────────────────────────────── */
.answer-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.65rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  user-select: none;
  -webkit-user-select: none;
}

.answer-card:hover {
  background: rgba(10, 61, 156, 0.15);
  border-color: rgba(10, 61, 156, 0.45);
  color: #ffffff;
}

.answer-card.selected {
  background: rgba(10, 61, 156, 0.28);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(10, 61, 156, 0.35);
}

.answer-card .answer-emoji {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.answer-card .answer-label {
  display: block;
}

/* Mobile: horizontal layout */
@media (max-width: 600px) {
  .answer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.82rem;
  }
  .answer-card .answer-emoji {
    font-size: 1.15rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* ── Slide Animations ───────────────────────────────────────── */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

.slide-in-right { animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.slide-in-left  { animation: slideInLeft  0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ── Results ────────────────────────────────────────────────── */
.results-wrapper {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.archetype-name-display {
  font-family: 'Anton', sans-serif;
  font-size: 2.75rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF 0%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 640px) {
  .archetype-name-display { font-size: 1.9rem; }
}

.blend-name-display {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
}

.archetype-gold-underline {
  display: inline;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

/* ── Score Bars ─────────────────────────────────────────────── */
.score-bar-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.score-bar-label {
  width: 110px;
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
  text-align: right;
}

.score-bar-track {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
}

.score-bar-fill.primary   { background: linear-gradient(90deg, var(--blue), #2563eb); }
.score-bar-fill.secondary { background: linear-gradient(90deg, #a07830, var(--gold)); }
.score-bar-fill.tertiary  { background: linear-gradient(90deg, #555, #777); }
.score-bar-fill.other     { background: rgba(255,255,255,0.12); }

.score-bar-value {
  width: 38px;
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .score-bar-label { width: 78px; font-size: 0.7rem; }
}

/* ── Profile Cards ──────────────────────────────────────────── */
.profile-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.profile-label {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.profile-value {
  font-size: 0.875rem;
  color: #d0d0d0;
  line-height: 1.65;
}

/* ── Course Cards ───────────────────────────────────────────── */
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover { transform: translateY(-5px); }

.course-card-activate {
  border-color: rgba(10, 61, 156, 0.5);
  box-shadow: 0 0 40px rgba(10, 61, 156, 0.12);
}
.course-card-activate:hover { box-shadow: 0 0 60px rgba(10, 61, 156, 0.22); }

.course-card-transform {
  border-color: rgba(201, 168, 76, 0.38);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.06);
}
.course-card-transform:hover { box-shadow: 0 0 60px rgba(201, 168, 76, 0.14); }

.course-popular-badge,
.course-powerful-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.course-popular-badge  { background: var(--blue); color: #fff; }
.course-powerful-badge { background: var(--gold); color: #000; }

/* ── Coming Soon Cards ──────────────────────────────────────── */
.coming-soon-card {
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.14);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.coming-soon-card:hover {
  border-color: rgba(201, 168, 76, 0.28);
  box-shadow: 0 0 28px rgba(201, 168, 76, 0.05);
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: #161616;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  animation: modalScaleIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal inputs */
.modal-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  padding: 0.72rem 1rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.modal-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 61, 156, 0.18);
}

.modal-input::placeholder { color: rgba(160,160,160,0.45); }

.modal-input option {
  background: #1a1a1a;
  color: #fff;
}

/* ── Social Share Section ───────────────────────────────────── */
.share-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.share-eyebrow {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.share-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.65rem;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

/* Message preview box */
.share-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  position: relative;
}

.share-preview-label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.share-preview-text {
  color: #c8c8c8;
  font-size: 0.8rem;
  line-height: 1.7;
}

/* Button grid */
.share-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 480px) {
  .share-buttons-grid { grid-template-columns: 1fr; }
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  border: none;
  color: #fff;
  transition: opacity 0.18s ease, transform 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
  line-height: 1;
}

.share-btn:hover  { opacity: 0.86; transform: translateY(-2px); }
.share-btn:active { transform: translateY(0); opacity: 1; }

.share-btn-facebook  { background: #1877F2; }
.share-btn-whatsapp  { background: #25D366; }
.share-btn-x         { background: #000; border: 1px solid rgba(255,255,255,0.18); }
.share-btn-instagram { background: linear-gradient(135deg, #833AB4 0%, #C13584 50%, #F77737 100%); }
.share-btn-copy      { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }

/* Full-width on odd last item */
.share-btn-copy { grid-column: 1 / -1; }

@media (max-width: 480px) {
  .share-btn-copy { grid-column: 1; }
}

/* Feedback toast */
.share-feedback {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.75rem;
  min-height: 1.2rem;
  transition: opacity 0.5s ease;
}

/* ── Utility ────────────────────────────────────────────────── */
.gold-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}
