/* =========================================================
   NexRelia — Testler (ilişki testleri) stylesheet
   /styles.css'ten SONRA yüklenir; nav/footer/cookie-banner
   stilleri oradan gelir, buradaki kurallar yalnızca test
   sayfalarının gövdesini kapsar.
   ========================================================= */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
    /* styles.css'te tanımlı olmayanlar */
    --mauve-dark: #B07CA6;
    /* arketip vurgusu — sonuç sayfalarında .stage üzerinde ezilir */
    --accent-l:   #D4A0C8;
    --accent-d:   #B07CA6;
}

/* ── SAYFA YERLEŞİMİ ─────────────────────────────────────── */
body.quiz-page {
    font-family: 'Manrope', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.quiz-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* ── STAGE ───────────────────────────────────────────────── */
.stage {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: 28px;
    padding: 40px 32px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(26, 6, 18, .10);
    border: 1px solid rgba(26, 6, 18, .06);
    animation: stageIn 560ms cubic-bezier(.16, 1, .3, 1);
}
@keyframes stageIn {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.voice { font-family: 'Fraunces', serif; }
.brand-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 28px;
}
.brand-mark a { color: inherit; text-decoration: none; }
.brand-mark a:hover { color: var(--mauve-dark); }

.screen { display: none; }
.screen.active { display: block; animation: rise 480ms cubic-bezier(.16, 1, .3, 1); }
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── INTRO ───────────────────────────────────────────────── */
#screen-intro h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--burgundy);
}
#screen-intro p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.meta-row { display: flex; gap: 18px; margin-bottom: 32px; }
.meta-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: .05em;
}
.meta-item b { color: var(--mauve-dark); font-weight: 500; }

/* ── BUTONLAR ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--mauve-dark); color: var(--white); }
.btn-primary:hover { opacity: .92; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--mauve-light);
}
.btn-ghost:hover { border-color: var(--mauve-dark); }
.btn:focus-visible,
.dot:focus-visible,
.back-link:focus-visible,
.retake:focus-visible {
    outline: 2px solid var(--mauve-dark);
    outline-offset: 3px;
}

/* ── İLERLEME ────────────────────────────────────────────── */
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.progress-track {
    flex: 1;
    height: 3px;
    background: var(--mauve-light);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--mauve-dark);
    border-radius: 2px;
    transition: width 420ms cubic-bezier(.4, 0, .2, 1);
}
.progress-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
}

/* ── SORU ────────────────────────────────────────────────── */
#qBody {
    transition: opacity 260ms cubic-bezier(.4, 0, .2, 1),
                transform 260ms cubic-bezier(.4, 0, .2, 1);
}
#qBody.q-hidden { opacity: 0; transform: translateY(10px); }
.q-text {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 23px;
    line-height: 1.35;
    min-height: 96px;
    margin-bottom: 36px;
    color: var(--burgundy);
}
.scale { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--mauve-light);
    background: var(--white);
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 180ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dot:hover { border-color: var(--mauve-dark); color: var(--mauve-dark); transform: translateY(-2px); }
.dot.selected {
    background: var(--mauve-dark);
    border-color: var(--mauve-dark);
    color: var(--white);
    transform: translateY(-2px) scale(1.06);
}
.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 28px;
}
.scale-labels span { max-width: 90px; line-height: 1.3; }
.scale-labels span:last-child { text-align: right; }
.back-link {
    font-size: 13px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── SONUÇ ───────────────────────────────────────────────── */
.result-eyebrow-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-d); flex-shrink: 0; }
.result-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-d);
}
.result-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--burgundy);
}
.result-text { font-size: 15px; line-height: 1.7; color: var(--text-light); margin-bottom: 28px; }

/* ── PAYLAŞIM KARTI ──────────────────────────────────────── */
.card-preview {
    aspect-ratio: 4/5;
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--accent-l);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.card-texture { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.card-top-row { display: flex; align-items: center; gap: 7px; position: relative; }
.card-top-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--burgundy); opacity: .5; }
.card-top {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px;
    letter-spacing: .1em;
    color: rgba(26, 6, 18, .6);
    text-transform: uppercase;
}
.card-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 29px;
    color: var(--burgundy);
    line-height: 1.05;
    position: relative;
}
.card-caption {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(26, 6, 18, .78);
    max-width: 90%;
    position: relative;
}
.card-icon { width: 38px; height: 38px; position: relative; color: var(--accent-d); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.card-tags .tag {
    font-family: 'Manrope', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    color: var(--burgundy);
    white-space: nowrap;
}
.card-data-row {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    position: relative;
}
.card-data-row[hidden] { display: none; }
.card-stats { display: flex; gap: 18px; }
.stat-num {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 30px;
    color: var(--burgundy);
    line-height: 1;
}
.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 8.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(26, 6, 18, .6);
    margin-top: 4px;
}
.axis-map { width: 92px; height: 92px; flex-shrink: 0; }
.card-bottom {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: .08em;
    color: rgba(26, 6, 18, .5);
    text-transform: uppercase;
    position: relative;
}

/* ── PAYLAŞ / CTA ────────────────────────────────────────── */
.share-row { display: flex; gap: 10px; margin-bottom: 28px; }
.share-row .btn { width: auto; flex: 1; padding: 13px; }
.divider { height: 1px; background: var(--mauve-light); margin: 28px 0 22px; }
.cta-text { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 18px; }
.store-row { display: flex; gap: 10px; margin-bottom: 20px; }
.store-row .btn { width: auto; flex: 1; padding: 14px 10px; font-size: 14px; }
.retake {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
}

/* ── TOAST (link kopyalandı) ─────────────────────────────── */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(14px);
    background: var(--burgundy);
    color: var(--cream);
    font-size: 13.5px;
    font-family: 'Manrope', sans-serif;
    padding: 11px 20px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(26, 6, 18, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    z-index: 200;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MOBİL ───────────────────────────────────────────────── */
@media (max-width: 420px) {
    .quiz-main { padding: 20px 12px; }
    .stage { border-radius: 22px; padding: 30px 20px 24px; }
    #screen-intro h1 { font-size: 29px; }
    .q-text { font-size: 20px; min-height: 88px; margin-bottom: 28px; }
    .dot { width: 40px; height: 40px; font-size: 13px; }
    .meta-row { gap: 12px; }
    .result-name { font-size: 32px; }
    .card-preview { padding: 20px; gap: 11px; }
    .card-name { font-size: 25px; }
    .card-caption { font-size: 12px; max-width: 100%; }
    .stat-num { font-size: 26px; }
    .axis-map { width: 78px; height: 78px; }
    .card-tags .tag { font-size: 10px; padding: 4px 9px; }
    .store-row .btn { font-size: 13px; padding: 13px 8px; }
}

/* ── HAREKET AZALTMA TERCİHİ ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .stage, .screen.active { animation: none; }
    .progress-fill, #qBody, .dot, .btn, .toast { transition: none; }
}
