/* ============================================================
   ATLAS GUIDE — FIND YOUR DESTINATION (quiz)
   find-destination.css
   Requires: global.css loaded first
   ============================================================ */

/* ============================================================
   LOCAL TOKEN BRIDGE
   ============================================================ */
:root {
  --primary:       var(--ag-green-800);
  --primary-light: var(--ag-green-600);
  --primary-dark:  var(--ag-green-900);
  --secondary:     var(--ag-terra-500);
  --accent:        var(--ag-gold-500);

  --text:          var(--ag-ink);
  --text-mid:      var(--ag-ink-mid);
  --text-light:    var(--ag-ink-light);

  --bg:            var(--ag-warm-white);
  --bg-warm:       var(--ag-parchment);
  --bg-dark:       var(--ag-night);
  --bg-card:       var(--ag-white);
}

/* ============================================================
   HERO
   ============================================================ */
.fyd-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--bg-dark);
}
.fyd-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0c150e 0%, #0f2420 40%, #1a3830 70%, #0c150e 100%);
}

/* Ambient orbs */
.fyd-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.fyd-hero-orb-1 { width: 500px; height: 500px; background: rgba(26,58,43,.25); top: -100px; right: -100px; }
.fyd-hero-orb-2 { width: 380px; height: 380px; background: rgba(194,75,58,.12); bottom: -50px; left: -80px; }

.fyd-hero-inner { position: relative; z-index: 2; text-align: center; }

/* Badge */
.fyd-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,58,43,.25); border: 1px solid rgba(26,58,43,.4);
  color: rgba(255,255,255,.85);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 20px; border-radius: var(--radius-full);
  margin-bottom: 28px; backdrop-filter: blur(8px);
}
.fyd-hero-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  animation: ag-pulse 2s ease infinite;
}

.fyd-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600; line-height: 1.05; color: #fff;
  letter-spacing: -.03em; margin-bottom: 24px;
}
.fyd-hero h1 em { font-style: italic; color: var(--ag-gold-500); }

.fyd-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.7); max-width: 580px;
  margin: 0 auto 48px; line-height: 1.8;
}

/* Container definitions */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.container--mid {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}
/* Stats row */
.fyd-hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.fyd-hero-stat  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fyd-hero-stat strong { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: #fff; line-height: 1; }
.fyd-hero-stat span   { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.fyd-hero-sep   { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.fyd-how { padding: 80px 0; background: var(--bg-warm); border-top: 1px solid rgba(26,58,43,.06); }
.fyd-how-grid  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.fyd-how-num   { font-family: var(--font-display); font-size: 3rem; font-weight: 400; color: var(--primary); opacity: .18; line-height: 1; margin-bottom: 12px; }
.fyd-how-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); margin-bottom: 8px; }
.fyd-how-desc  { font-size: .88rem; color: var(--text-mid); line-height: 1.75; }

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.fyd-quiz-section { padding: 80px 0 120px; background: var(--bg); }

/* Progress bar */
.fyd-progress-wrap   { margin-bottom: 52px; }
.fyd-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fyd-progress-label  { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.fyd-progress-frac   { font-size: .75rem; font-weight: 600; color: var(--text-light); }
.fyd-progress-track  { width: 100%; height: 4px; background: rgba(26,58,43,.10); border-radius: 4px; overflow: hidden; }
.fyd-progress-fill   { height: 100%; background: linear-gradient(90deg, var(--ag-green-800), var(--ag-green-600)); border-radius: 4px; transition: width .6s var(--ease-out); width: 0%; }

/* Question */
.fyd-question        { display: none; animation: fyd-slide-up .45s var(--ease-out) both; }
.fyd-question.active { display: block; }
@keyframes fyd-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fyd-q-meta { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.fyd-q-text { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 6px; }
.fyd-q-hint { font-size: .83rem; color: var(--text-light); margin-bottom: 32px; }

/* Option grid */
.fyd-options     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
.fyd-options--2  { grid-template-columns: repeat(2, 1fr); }
.fyd-options--4  { grid-template-columns: repeat(4, 1fr); }

.fyd-opt {
  background: var(--bg-card); border: 2px solid rgba(26,58,43,.08);
  border-radius: var(--radius-lg); padding: 20px 16px; cursor: pointer;
  transition: all .3s var(--ease-out);
  display: flex; flex-direction: column; gap: 8px;
  text-align: left; position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.fyd-opt:hover {
  border-color: rgba(26,58,43,.3); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,58,43,.08);
}
.fyd-opt.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(26,58,43,.06), rgba(26,58,43,.02));
  box-shadow: 0 0 0 4px rgba(26,58,43,.08);
}

/* Checkbox */
.fyd-opt-check {
  position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(26,58,43,.2);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; flex-shrink: 0;
}
.fyd-opt.selected .fyd-opt-check { background: var(--primary); border-color: var(--primary); }
.fyd-opt.selected .fyd-opt-check::after {
  content: ''; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.fyd-opt-icon  { font-size: 1.7rem; line-height: 1; }
.fyd-opt-title { font-size: .9rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.fyd-opt-desc  { font-size: .75rem; color: var(--text-mid); line-height: 1.5; }

/* Nav buttons */
.fyd-nav  { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fyd-btn  {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  cursor: pointer; border: none; transition: all .35s var(--ease-out); white-space: nowrap;
}
.fyd-btn:disabled { opacity: .32; cursor: not-allowed; pointer-events: none; }
.fyd-btn-prev { background: transparent; color: var(--text-mid); border: 2px solid rgba(26,58,43,.15); }
.fyd-btn-prev:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.fyd-btn-next { background: var(--primary); color: #fff; box-shadow: 0 4px 24px rgba(26,58,43,.25); margin-left: auto; }
.fyd-btn-next:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 36px rgba(26,58,43,.3); }

/* ============================================================
   LOADING STATE
   ============================================================ */
.fyd-loading        { display: none; text-align: center; padding: 80px 0; }
.fyd-loading.active { display: block; animation: fyd-slide-up .5s var(--ease-out) both; }
.fyd-loading-globe  { font-size: 3rem; margin-bottom: 20px; animation: fyd-spin 3s linear infinite; }
@keyframes fyd-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.fyd-loading-title  { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 10px; }
.fyd-loading-desc   { color: var(--text-mid); font-size: .9rem; }
.fyd-loading-bar    { width: 200px; height: 3px; background: rgba(26,58,43,.1); border-radius: 3px; margin: 20px auto 0; overflow: hidden; }
.fyd-loading-fill   { height: 100%; background: var(--primary); border-radius: 3px; animation: fyd-load-bar 2s ease infinite; }
@keyframes fyd-load-bar {
  0%   { width: 0%;   margin-left: 0; }
  50%  { width: 70%;  margin-left: 0; }
  100% { width: 0%;   margin-left: 100%; }
}

/* ============================================================
   RESULTS
   ============================================================ */
.fyd-results        { display: none; }
.fyd-results.active { display: block; animation: fyd-slide-up .6s var(--ease-out) both; }
.fyd-results-header { text-align: center; margin-bottom: 52px; }
.fyd-results-sub    { font-size: .95rem; color: var(--text-mid); margin-top: 4px; }

/* Result card */
.fyd-card {
  background: var(--bg-card); border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid rgba(26,58,43,.07);
  box-shadow: var(--shadow-md); margin-bottom: 20px;
  display: grid; grid-template-columns: 340px 1fr;
  transition: all .4s var(--ease-out);
}
.fyd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fyd-card:first-child { border-color: var(--ag-green-100); box-shadow: 0 0 0 2px rgba(26,58,43,.08), 0 16px 48px rgba(42,36,32,.10); }

.fyd-card-img { position: relative; overflow: hidden; }
.fyd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.fyd-card:hover .fyd-card-img img { transform: scale(1.05); }

.fyd-card-rank {
  position: absolute; top: 14px; left: 14px;
  background: rgba(12,10,9,.65); backdrop-filter: blur(12px);
  color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,.12);
}
.fyd-card:first-child .fyd-card-rank { background: rgba(26,58,43,.88); }

.fyd-card-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.fyd-card-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fyd-card-name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 400; line-height: 1.1; }
.fyd-card-region { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin-top: 4px; }

.fyd-card-score     { flex-shrink: 0; text-align: right; }
.fyd-card-pct       { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--primary); line-height: 1; }
.fyd-card-pct-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); }

.fyd-card-tagline { font-size: .9rem; color: var(--text-mid); line-height: 1.65; }
.fyd-card-tags    { display: flex; flex-wrap: wrap; gap: 7px; }
.fyd-card-tag     {
  background: var(--ag-green-50); color: var(--ag-green-800);
  font-size: .72rem; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--ag-green-100);
}

.fyd-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 700;
  transition: all .3s var(--ease-out); align-self: flex-start;
}
.fyd-card-cta:hover { background: var(--primary-dark); transform: translateX(3px); }

/* Results actions */
.fyd-results-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.fyd-btn-out {
  background: transparent; color: var(--primary);
  border: 2px solid rgba(26,58,43,.2);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: all .3s var(--ease-out); font-family: var(--font-body);
}
.fyd-btn-out:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   SHARE MODAL
   ============================================================ */
.fyd-share-modal {
  position: fixed; inset: 0; z-index: 10100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.fyd-share-modal.active { opacity: 1; pointer-events: auto; }
.fyd-share-backdrop { position: absolute; inset: 0; background: rgba(12,10,9,.6); backdrop-filter: blur(6px); }
.fyd-share-box {
  position: relative; z-index: 1;
  background: var(--bg-card); border-radius: var(--radius-xl); padding: 40px;
  max-width: 480px; width: 100%; box-shadow: var(--shadow-lg);
  transform: translateY(16px); transition: transform .35s var(--ease-out);
}
.fyd-share-modal.active .fyd-share-box { transform: translateY(0); }

.fyd-share-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--bg-warm); color: var(--text-mid);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.fyd-share-close:hover { background: var(--primary); color: #fff; }

.fyd-share-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 8px; }
.fyd-share-desc  { font-size: .88rem; color: var(--text-mid); margin-bottom: 24px; line-height: 1.6; }

.fyd-share-url-row { display: flex; gap: 10px; margin-bottom: 20px; }
.fyd-share-url-input {
  flex: 1; padding: 12px 16px;
  border: 2px solid rgba(26,58,43,.15); border-radius: var(--radius-md);
  font-size: .82rem; font-family: 'Courier New', monospace;
  color: var(--text-mid); background: var(--bg-warm); outline: 0; min-width: 0;
}
.fyd-share-copy {
  padding: 12px 20px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: .85rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: all .25s; font-family: var(--font-body); flex-shrink: 0;
}
.fyd-share-copy:hover   { background: var(--primary-dark); }
.fyd-share-copy.copied  { background: #16a34a; }

/* Social share buttons */
.fyd-share-socials { display: flex; gap: 10px; }
.fyd-share-social  {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 16px; border-radius: var(--radius-md);
  font-size: .8rem; font-weight: 700; text-decoration: none;
  transition: all .25s; border: 2px solid transparent;
}
.fyd-share-social-x  { background: #000; color: #fff; }
.fyd-share-social-x:hover  { background: #111; transform: translateY(-1px); }
.fyd-share-social-fb { background: #1877f2; color: #fff; }
.fyd-share-social-fb:hover { background: #1565d8; transform: translateY(-1px); }
.fyd-share-social-wa { background: #25d366; color: #fff; }
.fyd-share-social-wa:hover { background: #1da851; transform: translateY(-1px); }

/* Toast */
.fyd-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ag-ink); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease-out);
  z-index: 10200; white-space: nowrap;
}
.fyd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   ABOUT / STATS SECTION
   ============================================================ */
.fyd-about { padding: 100px 0; background: var(--bg-warm); border-top: 1px solid rgba(26,58,43,.06); }
.fyd-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.fyd-about-desc { font-size: .95rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; }

.fyd-stats-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.fyd-stat-card   {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--border); transition: all .3s var(--ease-out);
}
.fyd-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fyd-stat-num    { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.fyd-stat-label  { font-size: .72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }

/* FAQ */
.fyd-faq-item { border-bottom: 1px solid var(--border); }
.fyd-faq-item summary {
  padding: 18px 0; font-size: .92rem; font-weight: 700;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: color .2s;
}
.fyd-faq-item summary::-webkit-details-marker { display: none; }
.fyd-faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 300; transition: transform .3s; flex-shrink: 0; }
.fyd-faq-item[open] summary::after { transform: rotate(45deg); }
.fyd-faq-item summary:hover { color: var(--primary); }
.fyd-faq-ans { padding: 0 0 18px; font-size: .88rem; color: var(--text-mid); line-height: 1.75; max-width: 500px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .fyd-card        { grid-template-columns: 260px 1fr; }
  .fyd-about-grid  { grid-template-columns: 1fr; gap: 48px; }
  .fyd-how-grid    { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .fyd-hero            { padding: 120px 0 60px; }
  .fyd-hero-sep        { display: none; }
  .fyd-options         { grid-template-columns: 1fr 1fr; }
  .fyd-options--4      { grid-template-columns: 1fr 1fr; }
  .fyd-card            { grid-template-columns: 1fr; }
  .fyd-card-img        { height: 200px; }
  .fyd-card-body       { padding: 22px; }
  .fyd-stats-grid      { grid-template-columns: 1fr 1fr; }
  .fyd-results-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .fyd-options     { grid-template-columns: 1fr; }
  .fyd-options--2  { grid-template-columns: 1fr; }
  .fyd-stats-grid  { grid-template-columns: 1fr; }
}