/* ============================================================
   WayToB Travel Style Quiz — style.css v1.0.0
   Prefix: wtq-
   ============================================================ */

.wtq-wrap *, .wtq-wrap *::before, .wtq-wrap *::after { box-sizing: border-box; }

.wtq-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px; color: #1a1a2e; line-height: 1.5;
    max-width: 680px; margin: 0 auto 40px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
    background: #fff;
}

/* ─── Screens ─── */
.wtq-screen { display: none; }
.wtq-screen.wtq-on { display: block; }

/* ─── Intro Screen ─── */
.wtq-intro {
    background: linear-gradient(160deg, #0d1f3c 0%, #1a3a5c 60%, #0d4a40 100%);
    padding: 48px 36px 40px;
    text-align: center;
}
.wtq-intro-deco {
    display: flex; justify-content: center; gap: 10px;
    font-size: 28px; margin-bottom: 20px;
    animation: wtqDeco 2s ease infinite alternate;
}
@keyframes wtqDeco {
    from { transform: translateY(0); }
    to   { transform: translateY(-4px); }
}
.wtq-intro-title {
    font-size: 28px !important; font-weight: 800 !important; color: #fff !important;
    margin: 0 0 14px !important; padding: 0 !important;
    line-height: 1.2 !important; border: none !important;
    letter-spacing: -0.4px;
}
.wtq-intro-sub {
    font-size: 15px; color: #aec8e0; max-width: 440px; margin: 0 auto 24px;
    line-height: 1.65;
}
.wtq-style-preview {
    display: flex; gap: 8px; flex-wrap: wrap;
    justify-content: center; margin-bottom: 30px;
}
.wtq-sp-pill {
    font-size: 12px; font-weight: 700; padding: 6px 14px;
    border-radius: 20px; border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff; background: rgba(255,255,255,0.08);
}
.wtq-sp-adv { border-color: #ff8c5a44; background: #e55b2e22; }
.wtq-sp-cul { border-color: #c4a8ff44; background: #6b4ea022; }
.wtq-sp-bch { border-color: #5af0dd44; background: #0b9e8a22; }
.wtq-sp-cty { border-color: #8ab4d444; background: #1a3a5c44; }

.wtq-btn-start {
    display: inline-flex; align-items: center; gap: 8px;
    background: #239e8a; color: #fff;
    border: none; border-radius: 12px;
    padding: 16px 34px; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: background 0.2s, transform 0.15s;
    letter-spacing: -0.2px;
}
.wtq-btn-start:hover { background: #1c8573; transform: translateY(-1px); }
.wtq-btn-start:active { transform: translateY(0); }
.wtq-arrow { transition: transform 0.2s; }
.wtq-btn-start:hover .wtq-arrow { transform: translateX(4px); }

.wtq-intro-note {
    margin-top: 16px; font-size: 12px; color: #6b8fa8;
}

/* ─── Quiz Screen ─── */
.wtq-quiz-top {
    padding: 20px 28px 0;
    background: #fff; border-bottom: 1px solid #f3f4f6;
    position: sticky; top: 0; z-index: 10;
}
.wtq-prog-track {
    height: 6px; background: #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 12px;
}
.wtq-prog-fill {
    height: 100%; background: linear-gradient(90deg, #239e8a, #0b9e8a);
    border-radius: 10px; width: 0%; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.wtq-q-counter {
    font-size: 12px; font-weight: 600; color: #9ca3af;
    padding-bottom: 14px; letter-spacing: 0.3px;
}

/* Q box */
.wtq-q-box { padding: 28px 28px 8px; }
.wtq-q-text {
    font-size: 20px; font-weight: 700; color: #0d1f3c;
    line-height: 1.35; margin-bottom: 24px;
    min-height: 60px;
}

/* Options grid */
.wtq-opts-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 12px;
}
.wtq-opt {
    background: #fff; border: 2px solid #e5e7eb;
    border-radius: 12px; padding: 16px 14px 14px;
    cursor: pointer; transition: all 0.18s ease;
    text-align: left; display: flex; flex-direction: column; gap: 6px;
    position: relative; user-select: none; min-height: 90px;
}
.wtq-opt:hover {
    border-color: #b0d9d3;
    background: #f4fefd;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11,158,138,0.12);
}
.wtq-opt.wtq-selected {
    border-color: #239e8a;
    background: #e8f7f5;
    box-shadow: 0 2px 12px rgba(11,158,138,0.18);
}
.wtq-opt.wtq-selected::after {
    content: '✓';
    position: absolute; top: 10px; right: 12px;
    font-size: 13px; font-weight: 800; color: #239e8a;
}
.wtq-opt.wtq-dim { opacity: 0.45; transform: none !important; box-shadow: none !important; }
.wtq-opt-emoji { font-size: 26px; line-height: 1; }
.wtq-opt-text  { font-size: 13px; font-weight: 600; color: #1a1a2e; line-height: 1.4; }

/* Back nav */
.wtq-quiz-nav { padding: 8px 28px 20px; }
.wtq-btn-prev {
    background: transparent; color: #9ca3af;
    border: none; font-size: 13px; cursor: pointer; padding: 6px 0;
    transition: color 0.15s;
}
.wtq-btn-prev:hover { color: #374151; }
.wtq-btn-prev:disabled { opacity: 0; pointer-events: none; }

/* ─── Fade animation for question transitions ─── */
.wtq-q-box { transition: opacity 0.2s ease; }
.wtq-q-box.wtq-fading { opacity: 0; }

/* ─── Result Screen ─── */

/* Hero */
.wtq-result-hero {
    padding: 36px 32px 32px;
    color: #fff;
    position: relative; overflow: hidden;
}
.wtq-result-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.08);
    pointer-events: none;
}
.wtq-hero-badge {
    display: inline-block; font-size: 12px; font-weight: 700;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px; padding: 4px 14px; margin-bottom: 14px;
    letter-spacing: 0.8px; text-transform: uppercase;
}
.wtq-hero-emoji { font-size: 56px; line-height: 1; display: block; margin-bottom: 10px; }
.wtq-hero-title {
    font-size: 30px; font-weight: 800; margin: 0 0 8px; line-height: 1.15;
}
.wtq-hero-tagline {
    font-size: 15px; opacity: 0.85; font-style: italic;
    margin-bottom: 16px; line-height: 1.5; max-width: 480px;
}
.wtq-hero-desc {
    font-size: 14px; opacity: 0.9; max-width: 500px; line-height: 1.7;
}

/* Result body */
.wtq-result-body { padding: 4px 28px 8px; }
.wtq-result-section { margin-bottom: 28px; }
.wtq-sec-title {
    font-size: 14px !important; font-weight: 700 !important;
    color: #374151 !important; margin: 20px 0 12px !important;
    padding: 0 !important; border: none !important;
    text-transform: uppercase; letter-spacing: 0.6px;
}

/* Traits */
.wtq-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.wtq-trait {
    font-size: 12px; font-weight: 600; padding: 7px 14px;
    border-radius: 20px; border: 1.5px solid #e5e7eb;
    color: #374151; background: #f9fafb;
    display: flex; align-items: center; gap: 5px;
}
.wtq-trait::before { content: '✦'; font-size: 10px; }

/* Score chart */
.wtq-score-chart { display: flex; flex-direction: column; gap: 9px; }
.wtq-score-row { display: flex; align-items: center; gap: 10px; }
.wtq-score-lbl {
    font-size: 12px; font-weight: 700; width: 110px;
    min-width: 110px; color: #374151;
    display: flex; align-items: center; gap: 5px;
}
.wtq-score-bar-track {
    flex: 1; height: 8px; background: #f3f4f6; border-radius: 8px; overflow: hidden;
}
.wtq-score-bar {
    height: 100%; border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.wtq-score-n { font-size: 12px; font-weight: 700; color: #6b7280; width: 28px; text-align: right; }

/* Destinations */
.wtq-dests { display: flex; flex-wrap: wrap; gap: 8px; }
.wtq-dest {
    font-size: 12px; font-weight: 600; padding: 7px 14px;
    border-radius: 8px; background: #f3f4f6;
    color: #374151; border: 1px solid #e5e7eb;
    display: flex; align-items: center; gap: 5px;
}
.wtq-dest-pin { font-size: 13px; }

/* Tips */
.wtq-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wtq-tips li {
    font-size: 13px; color: #374151; padding: 10px 14px 10px 36px;
    background: #f9fafb; border-radius: 8px;
    border-left: 3px solid #e5e7eb; position: relative; line-height: 1.5;
}
.wtq-tips li::before {
    content: '→'; position: absolute; left: 12px;
    color: #9ca3af; font-weight: 700;
}

/* Result footer */
.wtq-result-footer {
    padding: 4px 28px 28px; display: flex; gap: 10px; flex-wrap: wrap;
}
.wtq-btn-share, .wtq-btn-retake {
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 10px 20px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.15s; background: #fff; color: #374151;
    flex: 1;
}
.wtq-btn-share:hover  { background: #f3f4f6; border-color: #9ca3af; }
.wtq-btn-retake:hover { border-color: #239e8a; background: #e8f7f5; color: #0d5c52; }

/* Copy success flash */
.wtq-btn-share.wtq-copied { background: #e8f7f5 !important; color: #0d5c52 !important; border-color: #239e8a !important; }

/* ─── Style colour variants ─── */

/* Adventurer — orange-red */
.wtq-adv .wtq-result-hero { background: linear-gradient(135deg, #c94a1a, #e55b2e 60%, #f0723f); }
.wtq-adv .wtq-trait   { border-color: #ffd0b5; background: #fff3ee; }
.wtq-adv .wtq-score-bar { background: #e55b2e; }
.wtq-adv .wtq-tips li   { border-left-color: #e55b2e; }
.wtq-adv .wtq-dest      { background: #fff3ee; border-color: #ffd0b5; color: #7a2500; }

/* Culture Seeker — deep purple */
.wtq-cul .wtq-result-hero { background: linear-gradient(135deg, #3c1f80, #6b4ea0 60%, #8566b8); }
.wtq-cul .wtq-trait   { border-color: #d4b8ff; background: #f5f0ff; }
.wtq-cul .wtq-score-bar { background: #6b4ea0; }
.wtq-cul .wtq-tips li   { border-left-color: #6b4ea0; }
.wtq-cul .wtq-dest      { background: #f5f0ff; border-color: #d4b8ff; color: #3a1f70; }

/* Beach Lover — teal-ocean */
.wtq-bch .wtq-result-hero { background: linear-gradient(135deg, #07746a, #0b9e8a 60%, #14b8a6); }
.wtq-bch .wtq-trait   { border-color: #99e8de; background: #e8f9f7; }
.wtq-bch .wtq-score-bar { background: #0b9e8a; }
.wtq-bch .wtq-tips li   { border-left-color: #0b9e8a; }
.wtq-bch .wtq-dest      { background: #e8f9f7; border-color: #99e8de; color: #065c52; }

/* City Explorer — navy */
.wtq-cty .wtq-result-hero { background: linear-gradient(135deg, #0a1e35, #1a3a5c 60%, #244d78); }
.wtq-cty .wtq-trait   { border-color: #bdd0e8; background: #eef2f8; }
.wtq-cty .wtq-score-bar { background: #1a3a5c; }
.wtq-cty .wtq-tips li   { border-left-color: #1a3a5c; }
.wtq-cty .wtq-dest      { background: #eef2f8; border-color: #bdd0e8; color: #0a1e35; }

/* ─── Responsive ─── */
@media (max-width: 520px) {
    .wtq-intro { padding: 36px 20px 32px; }
    .wtq-intro-title { font-size: 23px !important; }
    .wtq-quiz-top { padding: 16px 16px 0; }
    .wtq-q-box { padding: 20px 16px 8px; }
    .wtq-q-text { font-size: 17px; }
    .wtq-opts-grid { grid-template-columns: 1fr; gap: 10px; }
    .wtq-quiz-nav { padding: 6px 16px 16px; }
    .wtq-result-hero { padding: 28px 20px 24px; }
    .wtq-hero-title { font-size: 24px; }
    .wtq-result-body { padding: 4px 16px 8px; }
    .wtq-result-footer { padding: 4px 16px 22px; flex-direction: column; }
    .wtq-score-lbl { width: 90px; min-width: 90px; }
}

/* ─── Print ─── */
@media print {
    .wtq-intro, .wtq-s-quiz, .wtq-result-footer { display: none !important; }
    .wtq-s-result { display: block !important; }
    .wtq-result-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
