/* ============================================================
   Psikolojik test sayfaları (BFI-44)
   ============================================================ */

.page-test {
    background: var(--brand-50, #eef2f8);
}

/* ---------- Hero (kompakt) ---------- */
.test-hero-widget {
    position: relative;
    overflow: hidden;
    padding: clamp(1.15rem, 2.5vw, 1.65rem) 0;
    background: var(--brand-800, #141e36);
}

.test-hero-widget__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.test-hero-widget__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(20, 30, 54, .92) 0%, rgba(20, 30, 54, .75) 45%, rgba(20, 30, 54, .55) 100%);
}

.test-hero-widget__inner {
    position: relative;
    z-index: 1;
}

.test-hero-widget__tag {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: var(--accent-500, #e11d2f);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.test-hero-widget__title {
    margin: .55rem 0 0;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    color: #fff;
    line-height: 1.15;
}

.test-hero-widget__lead {
    margin: .55rem 0 0;
    color: rgba(226, 232, 244, .9);
    font-size: .92rem;
    line-height: 1.55;
    max-width: 62ch;
}

.test-hero-widget__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin-top: .85rem;
}

.test-hero-widget__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.test-hero-widget__stats li {
    font-size: .82rem;
    color: rgba(226, 232, 244, .75);
}

.test-hero-widget__stats strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.1;
}

.test-hero-widget__traits {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.test-hero-widget__traits li {
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .92);
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.test-hero-widget__auth {
    margin: .65rem 0 0;
    font-size: .82rem;
    color: rgba(226, 232, 244, .75);
}

.test-hero-widget__auth a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Body layout ---------- */
.test-body {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.test-body__layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-items: start;
}

.test-aside__card {
    padding: 1.15rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ink-200, #e2e8f0);
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, .1);
}

.test-aside__title {
    margin: 0 0 .55rem;
    font-size: .95rem;
    color: var(--brand-700, #1d2b4c);
}

.test-aside__card p {
    margin: 0 0 .65rem;
    font-size: .82rem;
    color: var(--ink-500, #64748b);
    line-height: 1.5;
}

.test-aside__meta {
    display: grid;
    gap: .4rem;
    margin: 0 0 .75rem;
}

.test-aside__meta div {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
}

.test-aside__meta dt { color: var(--ink-500, #64748b); font-weight: 500; }
.test-aside__meta dd { margin: 0; font-weight: 700; color: var(--brand-700, #1d2b4c); }

.test-aside__cite {
    font-size: .7rem !important;
    line-height: 1.4;
    border-top: 1px solid var(--ink-100, #f1f5f9);
    padding-top: .65rem;
    margin-bottom: 0 !important;
}

.test-aside__link {
    display: block;
    margin-top: .75rem;
    text-align: center;
}

.test-main {
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--ink-200, #e2e8f0);
    box-shadow: 0 8px 32px -12px rgba(15, 23, 42, .12);
}

.test-main--card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- Kart modu soru arayüzü ---------- */
.b5-form--card { max-width: none; }

.b5-card-wizard__head { margin-bottom: 1.25rem; }

.b5-card-wizard__track {
    height: 6px;
    border-radius: 999px;
    background: var(--ink-100, #f1f5f9);
    overflow: hidden;
}

.b5-card-wizard__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-500, #e11d2f);
    transition: width .28s ease;
}

.b5-card-wizard__count {
    margin: .55rem 0 0;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-500, #64748b);
}

.b5-card {
    position: relative;
    padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.35rem);
    border-radius: 18px;
    background: var(--brand-50, #f2f5fb);
    border: 1px solid var(--brand-100, #e2e8f4);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.b5-card__trait {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.b5-card__trait-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.b5-card__trait--o { background: #e8edf7; color: #3c5180; }
.b5-card__trait--c { background: #e6f3f0; color: #2d6a5f; }
.b5-card__trait--e { background: #fef3e2; color: #92610a; }
.b5-card__trait--a { background: #e6f0f4; color: #2a6178; }
.b5-card__trait--n { background: #fce8ec; color: #9f3d4f; }

.b5-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
    padding: 0 .25rem;
}

.b5-card__num {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #facc15;
    color: var(--brand-800, #141e36);
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 6px 16px -6px rgba(234, 179, 8, .65);
}

.b5-card__text {
    margin: 0;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 800;
    color: var(--brand-700, #1d2b4c);
    line-height: 1.25;
    letter-spacing: -.02em;
}

/* Likert — renkli daireler */
.b5-likert {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .5rem;
}

.b5-likert__opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: .85rem .35rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ink-200, #e2e8f0);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-align: center;
}

.b5-likert__opt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .25);
}

.b5-likert__opt input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.b5-likert__dot {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.b5-likert__opt--red   .b5-likert__dot { background: #fecaca; border-color: #ef4444; }
.b5-likert__opt--orange .b5-likert__dot { background: #fed7aa; border-color: #f97316; }
.b5-likert__opt--amber  .b5-likert__dot { background: #fef08a; border-color: #eab308; }
.b5-likert__opt--lime   .b5-likert__dot { background: #d9f99d; border-color: #84cc16; }
.b5-likert__opt--teal   .b5-likert__dot { background: #99f6e4; border-color: #14b8a6; }

.b5-likert__opt:has(input:checked) {
    border-width: 2px;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .28);
}

.b5-likert__opt--red:has(input:checked)    { border-color: #ef4444; background: #fef2f2; }
.b5-likert__opt--orange:has(input:checked) { border-color: #f97316; background: #fff7ed; }
.b5-likert__opt--amber:has(input:checked)  { border-color: #eab308; background: #fefce8; }
.b5-likert__opt--lime:has(input:checked)   { border-color: #84cc16; background: #f7fee7; }
.b5-likert__opt--teal:has(input:checked)   { border-color: #14b8a6; background: #f0fdfa; }

.b5-likert__opt input:checked + .b5-likert__dot {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor;
}

.b5-likert__opt--red    input:checked + .b5-likert__dot { background: #ef4444; border-color: #b91c1c; color: #ef4444; }
.b5-likert__opt--orange input:checked + .b5-likert__dot { background: #f97316; border-color: #c2410c; color: #f97316; }
.b5-likert__opt--amber  input:checked + .b5-likert__dot { background: #eab308; border-color: #a16207; color: #eab308; }
.b5-likert__opt--lime   input:checked + .b5-likert__dot { background: #84cc16; border-color: #4d7c0f; color: #84cc16; }
.b5-likert__opt--teal   input:checked + .b5-likert__dot { background: #14b8a6; border-color: #0f766e; color: #14b8a6; }

.b5-likert__opt input:checked + .b5-likert__dot::after {
    content: "";
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg);
}

.b5-likert__label {
    font-size: .62rem;
    font-weight: 600;
    color: var(--ink-500, #64748b);
    line-height: 1.25;
    max-width: 9ch;
}

.b5-likert__opt input:checked ~ .b5-likert__label {
    color: var(--brand-700, #1d2b4c);
    font-weight: 800;
}

.b5-likert:has(input:checked) .b5-likert__opt:not(:has(input:checked)) {
    opacity: .55;
}

.b5-likert:has(input:checked) .b5-likert__opt:not(:has(input:checked)):hover {
    opacity: .75;
}

.b5-card-wizard__nav {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    margin-top: 1.25rem;
    padding-top: .5rem;
}

.b5-card-wizard__prev .icon { transform: rotate(180deg); }
.b5-card-wizard__next .icon,
.b5-card-wizard__submit .icon { margin-left: .15rem; }

.b5-card-wizard__prev,
.b5-card-wizard__next,
.b5-card-wizard__submit {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.b5-card-wizard__prev[hidden],
.b5-card-wizard__next[hidden],
.b5-card-wizard__submit[hidden],
.b5-wizard__step[hidden] {
    display: none !important;
}

.b5-form--card {
    scroll-margin-top: calc(var(--header-h, 72px) + 12px);
}

/* Contact step */
.b5-contact--card {
    padding: .5rem 0;
}

.b5-contact__title {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
    color: var(--brand-700, #1d2b4c);
}

.b5-contact__sub {
    margin: 0 0 1rem;
    font-size: .88rem;
    color: var(--ink-500, #64748b);
}

.b5-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.b5-contact .field__label {
    display: block;
    margin-bottom: .35rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--brand-700, #1d2b4c);
}

.b5-contact .field__req { color: var(--accent-500, #e11d2f); }

.b5-contact .field__input {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--ink-200, #e2e8f0);
    border-radius: 12px;
    font-size: .95rem;
    background: #fff;
}

.b5-contact .field__input:focus {
    outline: 2px solid var(--brand-300, #94a6cf);
    border-color: var(--brand-400, #5e74a8);
}

.b5-contact__kvkk {
    margin: .85rem 0 0;
    font-size: .76rem;
    color: var(--ink-500, #64748b);
}

.b5-wizard__error {
    margin: .75rem 0 0;
    padding: .65rem .85rem;
    border-radius: 10px;
    background: #fdf2f4;
    border: 1px solid #f0ccd3;
    color: #9f3d4f;
    font-size: .84rem;
}

/* Results */
.test-notice {
    margin: 0;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #fef8ee;
    border: 1px solid #f0ddb8;
    color: #92610a;
    font-size: .88rem;
}

.test-result__head { margin-bottom: 1.25rem; }
.test-result__title { margin: 0; font-size: 1.2rem; color: var(--brand-700, #1d2b4c); }
.test-result__who { margin: .35rem 0 0; font-size: .92rem; font-weight: 600; color: var(--brand-700, #1d2b4c); }
.test-result__meta { margin: .35rem 0 0; font-size: .78rem; color: var(--ink-500, #64748b); }

.test-result__viz {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    align-items: start;
}

.test-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.test-result__pdf {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.test-result__save-hint {
    margin: 1rem 0 0;
    font-size: .78rem;
    color: var(--ink-500, #64748b);
}

.test-result__code {
    margin: .5rem 0 0;
    font-size: .88rem;
    color: var(--brand-700, #1d2b4c);
}

/* Holland RIASEC trait rozetleri */
.b5-card__trait--r { background: #f0ebe6; color: #6b5344; }
.b5-card__trait--i { background: #e8edf7; color: #3c5180; }
.b5-card__trait--a { background: #fce8ec; color: #9f3d4f; }
.b5-card__trait--s { background: #e6f3f0; color: #2d9a8a; }
.b5-card__trait--e { background: #fef3e2; color: #92610a; }
.b5-card__trait--c { background: #eef1f5; color: #475569; }

.holland-card__prompt {
    margin: 0 0 1rem;
    padding: 0 .25rem;
    font-size: .84rem;
    color: var(--ink-500, #64748b);
}

/* Meslek önerileri */
.holland-careers {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink-200, #e2e8f0);
}

.holland-careers__title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    color: var(--brand-700, #1d2b4c);
}

.holland-careers__sub {
    margin: 0 0 1rem;
    font-size: .84rem;
    color: var(--ink-500, #64748b);
}

.holland-careers__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.holland-career {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    background: var(--brand-50, #f2f5fb);
    border: 1px solid var(--brand-100, #e2e8f4);
}

.holland-career__title {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: var(--brand-700, #1d2b4c);
}

.holland-career__field {
    display: block;
    margin-top: .15rem;
    font-size: .76rem;
    color: var(--ink-500, #64748b);
}

.holland-career__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

.holland-career__match {
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent-600, #be1525);
    padding: .2rem .5rem;
    border-radius: 999px;
    background: var(--accent-50, #fef2f3);
}

.holland-career__zone {
    font-size: .7rem;
    color: var(--ink-500, #64748b);
}

.holland-career__code {
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .45rem;
    border-radius: 6px;
}

.holland-career__code--r { background: #f0ebe6; color: #6b5344; }
.holland-career__code--i { background: #e8edf7; color: #3c5180; }
.holland-career__code--a { background: #fce8ec; color: #9f3d4f; }
.holland-career__code--s { background: #e6f3f0; color: #2d9a8a; }
.holland-career__code--e { background: #fef3e2; color: #92610a; }
.holland-career__code--c { background: #eef1f5; color: #475569; }

.holland-careers__cite {
    margin: .85rem 0 0;
    font-size: .7rem;
    color: var(--ink-500, #64748b);
    line-height: 1.45;
}

.holland-careers__empty {
    margin: 0;
    font-size: .84rem;
    color: var(--ink-500, #64748b);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .test-body__layout { grid-template-columns: 1fr; }
    .test-aside { order: 2; }
}

@media (max-width: 720px) {
    .b5-likert {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: .35rem;
    }
    .b5-likert__opt { padding: .65rem .2rem; }
    .b5-likert__dot { width: 28px; height: 28px; }
    .b5-likert__label { font-size: .55rem; }
    .b5-card__head { flex-direction: row; align-items: flex-start; }
    .b5-card__num { width: 44px; height: 44px; font-size: 1.15rem; }
    .b5-contact__grid { grid-template-columns: 1fr; }
    .test-result__viz { grid-template-columns: 1fr; }
    .b5-card-wizard__nav .btn { flex: 1; justify-content: center; }
}
