/* ==========================================
   Postřeh – položky na běžícím pásu + tlačítka s odpověďmi
   Vyžaduje: Games.css
   ========================================== */

.postreh-stav {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

/* Pás ----------------------------------------------------- */

.postreh-pas {
    position: relative;
    height: 340px;
    overflow: hidden;
}

/* Položka ------------------------------------------------- */

.postreh-polozka {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(0, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 280px;
    text-align: center;
    user-select: none;
}

/* Obrázek má vždy stejnou velikost, vejde se do ní celý (bez ořezu) */
.postreh-polozka img {
    display: block;
    width: 240px;
    height: 240px;
    object-fit: contain;
    border: 3px solid transparent;
    border-radius: 6px;
    transition: border-color 0.15s;
}

.postreh-polozka-text {
    font-size: 26px;
    line-height: 1.2;
    color: var(--e-text);
    transition: color 0.15s;
}

.postreh-polozka.postreh-jen-text {
    width: auto;
    white-space: nowrap;
}

.postreh-polozka.postreh-jen-text .postreh-polozka-text {
    font-size: 48px;
}

.postreh-polozka.postreh-spravne img        { border-color: var(--e-green); }
.postreh-polozka.postreh-spravne .postreh-polozka-text { color: var(--e-green); }
.postreh-polozka.postreh-chybne img         { border-color: #e03535; }
.postreh-polozka.postreh-chybne .postreh-polozka-text  { color: #e03535; }

/* Zpráva po odpovědi -------------------------------------- */

.postreh-zprava {
    min-height: 22px;
    margin: 10px 0;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

.postreh-zprava-ok    { color: var(--e-green); }
.postreh-zprava-chyba { color: #e03535; }
.postreh-zprava-cas   { color: #777; }

/* Tlačítka ------------------------------------------------ */

.postreh-tlacitka {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 40px;
}

.postreh-tlacitko {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 180px;
    padding: 16px 28px;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2);
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

/* Barvy tlačítek - klíče odpovídají PostrehController::COLORS.
   Text a ikona: bílá na tmavých odstínech, tmavá na světlých (kvůli kontrastu). */

.postreh-tlacitko                        { background-color: #2EB92D; color: #fff; }
.postreh-tlacitko.postreh-barva-zelena   { background-color: #2EB92D; color: #fff; }
.postreh-tlacitko.postreh-barva-tmzelena { background-color: #1E7B34; color: #fff; }
.postreh-tlacitko.postreh-barva-modra    { background-color: #3259CD; color: #fff; }
.postreh-tlacitko.postreh-barva-svmodra  { background-color: #4FC3F7; color: #1F1F1F; }
.postreh-tlacitko.postreh-barva-cervena  { background-color: #E03535; color: #fff; }
.postreh-tlacitko.postreh-barva-oranzova { background-color: #F5922F; color: #1F1F1F; }
.postreh-tlacitko.postreh-barva-zluta    { background-color: #FFD23F; color: #1F1F1F; }
.postreh-tlacitko.postreh-barva-fialova  { background-color: #8E44AD; color: #fff; }
.postreh-tlacitko.postreh-barva-hneda    { background-color: #8B5A2B; color: #fff; }
.postreh-tlacitko.postreh-barva-seda     { background-color: #D9D9D9; color: #1F1F1F; }

.postreh-tlacitko-ikona {
    font-size: 40px;
    line-height: 1;
    font-variation-settings: 'FILL' 1;
}

.postreh-tlacitko:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.postreh-tlacitko:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.postreh-tlacitko:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Výsledek ------------------------------------------------ */

.postreh-vysledek {
    text-align: center;
    padding: 40px 20px;
}

.postreh-vysledek h2 {
    font-size: 22px;
    color: var(--e-text);
    margin-bottom: 10px;
}

.postreh-vysledek p {
    font-size: 17px;
    margin-bottom: 20px;
}


@media screen and (max-width: 540px) {
    .postreh-pas {
        height: 240px;
    }

    .postreh-polozka {
        gap: 6px;
        width: 190px;
    }

    .postreh-polozka img {
        width: 150px;
        height: 150px;
    }

    .postreh-polozka-text {
        font-size: 18px;
    }

    .postreh-polozka.postreh-jen-text .postreh-polozka-text {
        font-size: 32px;
    }

    .postreh-tlacitka {
        gap: 12px;
    }

    .postreh-tlacitko {
        min-width: 0;
        flex: 1 1 40%;
        padding: 12px 16px;
        font-size: 17px;
    }

    .postreh-tlacitko-ikona {
        font-size: 30px;
    }
}
