/*
|--------------------------------------------------------------------------
| Bartle Questionnaire
|--------------------------------------------------------------------------
*/

:root {
    --bartle-primary: #5b5bd6;
    --bartle-primary-dark: #4545b8;
    --bartle-primary-light: #eeeeff;

    --bartle-bg: #f5f7fb;
    --bartle-card: #ffffff;

    --bartle-text: #252a34;
    --bartle-muted: #737b8c;

    --bartle-border: #e3e7ef;

    --bartle-success: #20a779;

    --bartle-radius: 18px;
}


/*
|--------------------------------------------------------------------------
| Oldal
|--------------------------------------------------------------------------
*/

.bartle-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            rgba(91, 91, 214, 0.10),
            transparent 35%
        ),
        var(--bartle-bg);

    color: var(--bartle-text);
}


.bartle-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}


/*
|--------------------------------------------------------------------------
| Fejléc
|--------------------------------------------------------------------------
*/

.bartle-header {
    text-align: center;
    margin-bottom: 38px;
}


.bartle-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;

    border-radius: 999px;

    background: var(--bartle-primary-light);
    color: var(--bartle-primary);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;

    margin-bottom: 15px;
}


.bartle-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}


.bartle-subtitle {
    max-width: 650px;
    margin: 0 auto;

    color: var(--bartle-muted);
    font-size: 16px;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Információs sáv
|--------------------------------------------------------------------------
*/

.bartle-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 20px;
}


.bartle-info-item {
    background: #fff;
    border: 1px solid var(--bartle-border);

    padding: 8px 14px;
    border-radius: 999px;

    font-size: 14px;
}


.bartle-info-item strong {
    color: var(--bartle-primary);
}


/*
|--------------------------------------------------------------------------
| Progress
|--------------------------------------------------------------------------
*/

.bartle-progress-wrapper {
    margin-bottom: 30px;
}


.bartle-progress-info {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 13px;
    color: var(--bartle-muted);
}


.bartle-progress {
    height: 8px;

    border-radius: 999px;

    background: #e6e9f0;

    overflow: hidden;
}


.bartle-progress-bar {
    height: 100%;
    width: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--bartle-primary),
            #8b5cf6
        );

    transition: width .3s ease;
}


/*
|--------------------------------------------------------------------------
| Kérdés kártya
|--------------------------------------------------------------------------
*/

.bartle-question {
    position: relative;

    background: var(--bartle-card);

    border: 1px solid var(--bartle-border);
    border-radius: var(--bartle-radius);

    padding: 28px;

    margin-bottom: 22px;

    box-shadow:
        0 8px 30px rgba(31, 38, 56, 0.055);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.bartle-question:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 40px rgba(31, 38, 56, 0.09);
}


.bartle-question.answered {
    border-color:
        rgba(91, 91, 214, .45);
}


.bartle-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 10px;

    background: var(--bartle-primary-light);
    color: var(--bartle-primary);

    font-size: 14px;
    font-weight: 800;

    margin-bottom: 15px;
}


.bartle-question-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;

    margin-bottom: 20px;
}


/*
|--------------------------------------------------------------------------
| Válaszok
|--------------------------------------------------------------------------
*/

.bartle-options {
    display: grid;
    gap: 12px;
}


.bartle-option {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 65px;

    padding: 15px 18px;

    border: 2px solid var(--bartle-border);
    border-radius: 13px;

    cursor: pointer;

    background: #fff;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}


.bartle-option:hover {
    border-color: #b6b6ed;
    background: #fafaff;
    transform: translateX(2px);
}


.bartle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.bartle-option-marker {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    margin-right: 14px;

    border: 2px solid #d8dce6;
    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;

    color: var(--bartle-muted);

    transition: all .15s ease;
}


.bartle-option-text {
    font-size: 15px;
    line-height: 1.5;
}


.bartle-option:has(input:checked) {
    border-color: var(--bartle-primary);
    background: var(--bartle-primary-light);

    box-shadow:
        0 5px 18px rgba(91, 91, 214, .12);
}


.bartle-option:has(input:checked)
.bartle-option-marker {
    border-color: var(--bartle-primary);
    background: var(--bartle-primary);
    color: #fff;
}


/*
|--------------------------------------------------------------------------
| Gomb
|--------------------------------------------------------------------------
*/

.bartle-submit-wrapper {
    display: flex;
    justify-content: center;

    margin-top: 35px;
}


.bartle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 230px;

    padding: 15px 26px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--bartle-primary),
            #7557dd
        );

    color: #fff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(91, 91, 214, .25);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.bartle-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(91, 91, 214, .32);
}


.bartle-button:active {
    transform: translateY(0);
}


/*
|--------------------------------------------------------------------------
| Start oldal
|--------------------------------------------------------------------------
*/

.bartle-start-card {
    max-width: 560px;
    margin: 0 auto;

    padding: 38px;

    background: #fff;

    border: 1px solid var(--bartle-border);
    border-radius: 22px;

    box-shadow:
        0 20px 55px rgba(31, 38, 56, .08);
}


.bartle-label {
    display: block;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 8px;
}


.bartle-input {
    width: 100%;

    padding: 15px 16px;

    border: 2px solid var(--bartle-border);
    border-radius: 12px;

    font-size: 18px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .12em;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.bartle-input:focus {
    border-color: var(--bartle-primary);

    box-shadow:
        0 0 0 4px rgba(91, 91, 214, .10);
}


/*
|--------------------------------------------------------------------------
| Eredmény
|--------------------------------------------------------------------------
*/

.bartle-result-main {
    text-align: center;

    padding: 35px;

    margin-bottom: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #eeeeff,
            #f5efff
        );

    border: 1px solid #dcdcff;
}


.bartle-result-label {
    color: var(--bartle-muted);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;

    margin-bottom: 8px;
}


.bartle-result-type {
    color: var(--bartle-primary);

    font-size: 34px;
    font-weight: 800;

    letter-spacing: -.03em;
}


.bartle-score {
    margin-bottom: 22px;
}


.bartle-score-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;
}


.bartle-score-name {
    font-weight: 700;
}


.bartle-score-value {
    font-weight: 800;
    color: var(--bartle-primary);
}


.bartle-score-track {
    height: 11px;

    background: #e7e9ef;

    border-radius: 999px;

    overflow: hidden;
}


.bartle-score-bar {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--bartle-primary),
            #8b5cf6
        );

    border-radius: 999px;
}


/*
|--------------------------------------------------------------------------
| Mobil
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .bartle-container {
        padding:
            30px 14px
            60px;
    }


    .bartle-question {
        padding: 20px;
        border-radius: 15px;
    }


    .bartle-question-text {
        font-size: 16px;
    }


    .bartle-option {
        padding: 13px 14px;
    }


    .bartle-start-card {
        padding: 25px 20px;
    }


    .bartle-result-type {
        font-size: 28px;
    }
}

.bartle-button.w-100 {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Eredménylista
|--------------------------------------------------------------------------
*/

.bartle-results-card {
    background: #fff;

    border: 1px solid var(--bartle-border);
    border-radius: 18px;

    box-shadow:
        0 12px 40px rgba(31, 38, 56, .07);

    overflow: hidden;
}


.bartle-results-table {
    margin-bottom: 0;
    white-space: nowrap;
}


.bartle-results-table thead th {
    background: #f7f8fc;

    border-bottom:
        1px solid var(--bartle-border);

    color: var(--bartle-text);

    font-size: 13px;
    font-weight: 700;

    padding: 14px 12px;
}


.bartle-results-table tbody td {
    padding: 14px 12px;

    border-color:
        var(--bartle-border);

    font-size: 14px;
}


.bartle-results-table tbody tr:hover {
    background: #fafaff;
}


.bartle-measurement-header {
    color: var(--bartle-primary) !important;

    background:
        var(--bartle-primary-light) !important;

    border-left:
        2px solid #fff;
}


.bartle-neptun {
    position: sticky;
    left: 0;

    background: #fff !important;

    z-index: 2;

    font-weight: 800;
    letter-spacing: .06em;

    color: var(--bartle-primary);
}


.bartle-results-table tbody tr:hover
.bartle-neptun {
    background: #fafaff !important;
}

/*
|--------------------------------------------------------------------------
| Játékostípus tipp
|--------------------------------------------------------------------------
*/

.bartle-type-selector {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.bartle-type-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 24px 18px;

    border: 2px solid var(--bartle-border);
    border-radius: 16px;

    background: #fff;

    text-align: center;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.bartle-type-card:hover {
    transform: translateY(-3px);

    border-color: #bcbcef;

    box-shadow:
        0 10px 25px
        rgba(91, 91, 214, .10);
}


.bartle-type-card input {
    position: absolute;
    opacity: 0;
}


.bartle-type-card:has(input:checked) {
    border-color:
        var(--bartle-primary);

    background:
        var(--bartle-primary-light);

    box-shadow:
        0 10px 30px
        rgba(91, 91, 214, .15);
}


.bartle-type-icon {
    font-size: 38px;
    margin-bottom: 10px;
}


.bartle-type-card strong {
    font-size: 18px;

    color:
        var(--bartle-primary);

    margin-bottom: 7px;
}


.bartle-type-card span {
    color:
        var(--bartle-muted);

    font-size: 13px;
    line-height: 1.5;
}


@media (max-width: 600px) {

    .bartle-type-selector {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Tipp vs eredmény
|--------------------------------------------------------------------------
*/

.bartle-prediction-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 25px;
}


.bartle-prediction-card {
    text-align: center;

    padding: 30px 20px;

    border: 1px solid
        var(--bartle-border);

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 12px 35px
        rgba(31, 38, 56, .07);
}


.bartle-result-winner {
    background:
        linear-gradient(
            135deg,
            #eeeeff,
            #f5efff
        );

    border-color: #d4d4ff;
}


.bartle-big-icon {
    font-size: 52px;
    margin: 10px 0;
}


.bartle-prediction-type {
    font-size: 24px;
    font-weight: 800;

    color:
        var(--bartle-primary);
}


/*
|--------------------------------------------------------------------------
| Találat / nem találat
|--------------------------------------------------------------------------
*/

.bartle-prediction-result {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 28px;

    padding: 22px 25px;

    border-radius: 18px;
}


.bartle-prediction-result.is-correct {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}


.bartle-prediction-result.is-different {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}


.bartle-prediction-result-icon {
    flex: 0 0 auto;

    font-size: 38px;
}


.bartle-prediction-result strong {
    display: block;

    font-size: 20px;
    margin-bottom: 3px;
}


.bartle-prediction-result p {
    margin: 0;

    color:
        var(--bartle-muted);
}


/*
|--------------------------------------------------------------------------
| Domináns típus magyarázat
|--------------------------------------------------------------------------
*/

.bartle-result-description {
    max-width: 600px;

    margin:
        12px auto 0;

    color:
        var(--bartle-muted);

    font-size: 16px;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Profilkártyák
|--------------------------------------------------------------------------
*/

.bartle-profile-title {
    text-align: center;

    font-size: 22px;
    font-weight: 800;

    margin-bottom: 25px;
}


.bartle-profile-grid {
    display: grid;
    gap: 18px;
}


.bartle-profile-card {
    padding: 18px;

    border:
        1px solid
        var(--bartle-border);

    border-radius: 15px;

    background: #fafbfe;
}


.bartle-profile-card-top {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 12px;
}


.bartle-profile-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    background:
        var(--bartle-primary-light);

    font-size: 24px;
}


.bartle-profile-percent {
    margin-left: auto;

    color:
        var(--bartle-primary);

    font-size: 19px;
    font-weight: 800;
}


.bartle-profile-footnote {
    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid
        var(--bartle-border);

    text-align: center;

    color:
        var(--bartle-muted);

    font-size: 13px;
}


@media (max-width: 650px) {

    .bartle-prediction-grid {
        grid-template-columns: 1fr;
    }


    .bartle-prediction-result {
        align-items: flex-start;
    }
}

/*
|--------------------------------------------------------------------------
| Kilépés
|--------------------------------------------------------------------------
*/

.bartle-exit-wrapper {
    display: flex;
    justify-content: center;

    margin-top: 35px;
}


.bartle-exit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 30px;

    border: 2px solid
        var(--bartle-primary);

    border-radius: 13px;

    background: #fff;

    color:
        var(--bartle-primary);

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


.bartle-exit-button:hover {
    background:
        var(--bartle-primary);

    color: #fff;

    transform: translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| Elköszönő oldal
|--------------------------------------------------------------------------
*/

.bartle-goodbye {
    max-width: 650px;

    margin: 60px auto;

    padding: 55px 40px;

    background: #fff;

    border:
        1px solid
        var(--bartle-border);

    border-radius: 24px;

    text-align: center;

    box-shadow:
        0 20px 60px
        rgba(31, 38, 56, .09);
}


.bartle-goodbye-icon {
    font-size: 65px;

    margin-bottom: 20px;
}


.bartle-goodbye-divider {
    width: 70px;
    height: 3px;

    margin: 30px auto;

    border-radius: 999px;

    background:
        var(--bartle-primary);
}


.bartle-goodbye .bartle-button {
    text-decoration: none;
}


@media (max-width: 600px) {

    .bartle-goodbye {
        margin: 25px auto;

        padding: 40px 22px;
    }
}