/* ==========================================================
   LESSON 13 — I LIKE / I DON'T LIKE
   SAME VISUAL SYSTEM AS LESSON 5
========================================================== */

@import url("lesson-5.css");


/* ==========================================================
   BODY
========================================================== */

.likes-lesson-body {
    font-family: "Fredoka", sans-serif;
}


/* ==========================================================
   FLOATING DECORATIONS
========================================================== */

.floating-like-one {
    top: 19%;
    left: 5%;
    transform: rotate(-10deg);
}

.floating-like-two {
    top: 43%;
    right: 5%;
    transform: rotate(8deg);
}

.floating-like-three {
    bottom: 11%;
    left: 8%;
    transform: rotate(-6deg);
}


/* ==========================================================
   INTRO
========================================================== */

.likes-intro-page .story-book-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 112px;
    height: 112px;

    margin: 0 auto 22px;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            #fff0f4,
            #f8e4e9
        );

    border: 2px solid rgba(179, 116, 133, 0.12);

    box-shadow:
        0 15px 30px rgba(109, 72, 83, 0.10);

    font-size: 58px;
}

.likes-intro-page .mission-icon {
    background:
        linear-gradient(
            145deg,
            #fff7e8,
            #f6eaf0
        );
}


/* ==========================================================
   MAP PAGE
========================================================== */

.likes-map-page {
    position: relative;
}

.likes-progress-card {
    margin-bottom: 30px;
}


/* ==========================================================
   PROGRESS ICONS
========================================================== */

.likes-progress-preview {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 18px;
}

.likes-progress-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 17px;

    background: #f7e9ed;

    border: 2px solid rgba(150, 102, 115, 0.08);

    font-size: 27px;

    opacity: 0.52;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.likes-progress-icon.completed {
    opacity: 1;

    background: #fff3f6;

    transform: translateY(-2px);

    box-shadow:
        0 7px 15px rgba(108, 73, 83, 0.10);
}


/* ==========================================================
   OVERALL PROGRESS
========================================================== */

.likes-overall-progress-track {
    width: 100%;
    height: 10px;

    margin-top: 14px;

    overflow: hidden;

    border-radius: 999px;

    background: #eee5e8;
}

.likes-overall-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #e7bcc7,
            #dba4b4
        );

    transition: width 0.4s ease;
}


/* ==========================================================
   PART CARDS — SAME ALIGNMENT AS OTHER LESSONS
========================================================== */

.lesson-parts-map {
    width: min(920px, 100%);

    margin:
        28px auto
        0;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


.likes-part-card {
    width: 100%;
    min-height: 360px;

    padding:
        24px
        22px
        20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;

    background:
        linear-gradient(
            180deg,
            #fffefc,
            #faf7f2
        );

    border: 2px solid #e7dfd7;
    border-bottom: 7px solid #d7cbc0;
    border-radius: 27px;

    box-shadow:
        0 12px 28px
        rgba(95, 78, 62, 0.07);

    color: inherit;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        opacity 0.22s ease;
}


.likes-part-card:not(:disabled):hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 30px
        rgba(96, 62, 73, 0.10);
}


.likes-part-card h3 {
    min-height: 58px;

    margin:
        0 0
        8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #5c5564;

    font-size: 25px;
    font-weight: 700;

    line-height: 1.15;
}


.likes-part-card > p {
    min-height: 62px;

    margin:
        0 auto
        15px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    color: #817a85;

    font-size: 13px;
    line-height: 1.45;
}


.likes-example-row {
    min-height: 44px;

    margin:
        4px 0
        18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}


.likes-example-row span {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: #fff;

    border: 2px solid #ebe4de;
    border-radius: 14px;

    font-size: 23px;
}


.likes-part-card .part-card-footer {
    width: 100%;

    margin-top: auto;
    padding-top: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-top: 2px solid #eee8e2;

    color: #8a8290;

    font-size: 10px;
}


.likes-part-card .part-card-footer strong {
    color: #716879;

    font-size: 11px;
}


.likes-part-card.locked-part {
    opacity: 0.43;

    filter: grayscale(0.25);

    cursor: not-allowed;
}


.likes-part-card.completed-part {
    border-color: #d5dfc3;
    border-bottom-color: #b9c79d;
}


.likes-part-card.completed-part .part-card-label {
    background: #f1f5e9;

    color: #6f7b58;
}


.likes-part-card.completed-part
.part-card-footer strong {
    color: #6f7b58;
}


/* ==========================================================
   EXAMPLE ROW
========================================================== */

.likes-example-row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin: 18px 0;
}

.likes-example-row span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;
    height: 42px;

    padding: 0 10px;

    border-radius: 13px;

    background: #fff7f9;

    border: 1px solid rgba(136, 94, 106, 0.08);

    font-size: 21px;
}


/* ==========================================================
   MAP FINISH BUTTON
========================================================== */

.likes-map-finish-button {
    margin-top: 30px;
}


/* ==========================================================
   RULE PAGES
========================================================== */

.likes-rule-page {
    max-width: 900px;
}


/* ==========================================================
   MAIN RULE CARD
========================================================== */

.likes-main-card {
    width: min(720px, 100%);

    margin:
        0 auto
        22px;

    padding:
        24px;

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            #fffefd,
            #fff8f9
        );

    border: 2px solid #eadde1;
    border-bottom: 7px solid #dbc5cc;

    box-shadow:
        0 12px 28px
        rgba(96, 67, 77, 0.07);
}


/* ==========================================================
   FORMULA
========================================================== */

.likes-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 20px;

    padding: 18px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #fff1f4,
            #f8edf0,
            #fff7ea
        );

    border: 2px solid #eadce1;
}

.likes-formula span {
    min-width: 50px;

    padding:
        8px
        11px;

    background: #fff;

    border-radius: 12px;

    color: #6c5960;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
}

.likes-formula strong {
    padding:
        9px
        14px;

    border-radius: 12px;

    background: #f4dfe5;

    color: #8a5f6b;

    font-size: 14px;
}


/* ==========================================================
   RULE EXAMPLES
========================================================== */

.likes-example-card {
    display: grid;

    grid-template-columns:
        58px
        1fr;

    align-items: center;

    gap: 14px;

    margin-top: 12px;

    padding:
        17px
        18px;

    border-radius: 18px;

    background: #fff;

    border: 2px solid #eee4e6;
    border-bottom: 5px solid #dccdd1;

    text-align: left;
}

.likes-example-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #fff1f4,
            #f8e8ed
        );

    font-size: 30px;
}

.likes-example-card strong {
    display: block;

    color: #5f5055;

    font-size: 18px;
}

.likes-example-card p {
    margin:
        3px 0
        0;

    color: #8c7a80;

    font-size: 12px;
}


/* ==========================================================
   MEMORY CARD
========================================================== */

.likes-memory-card {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    width: min(720px, 100%);

    margin:
        0 auto
        22px;

    padding:
        18px
        20px;

    border-radius: 21px;

    background:
        linear-gradient(
            135deg,
            #fff6e9,
            #fff0f4,
            #f6f1ff
        );

    border: 2px solid #eadce1;
    border-bottom: 6px solid #d4c1c7;
}

.likes-memory-card > div {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    flex-shrink: 0;

    border-radius: 16px;

    background: #fff;

    font-size: 29px;
}

.likes-memory-card p {
    margin: 0;

    color: #6e6064;

    font-size: 14px;
    line-height: 1.6;

    text-align: left;
}


/* ==========================================================
   COMPARE GRID
========================================================== */

.likes-compare-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px;

    width: min(740px, 100%);

    margin:
        0 auto
        22px;
}

.likes-compare-card {
    min-height: 275px;

    padding:
        22px
        20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 25px;

    background:
        linear-gradient(
            180deg,
            #fffefd,
            #fff8f9
        );

    border: 2px solid #e9dfe2;
    border-bottom: 6px solid #d8c7cc;

    box-shadow:
        0 11px 24px
        rgba(97, 67, 76, 0.06);

    text-align: center;
}

.likes-compare-label {
    padding:
        6px
        10px;

    border-radius: 999px;

    background: #f5e5ea;

    color: #89606c;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;
}

.likes-compare-icon {
    margin:
        15px 0
        10px;

    font-size: 54px;
}

.likes-compare-card strong {
    color: #5c4e53;

    font-size: 19px;
}

.likes-compare-card p {
    margin:
        7px 0
        0;

    color: #8b7a7f;

    font-size: 13px;
}


/* ==========================================================
   FAVORITES PAGE
========================================================== */

.favorites-page {
    max-width: 850px;
}

.favorites-card {
    max-width: 650px;

    margin:
        25px auto
        0;

    text-align: center;
}

.favorites-emoji {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 108px;
    height: 108px;

    margin:
        13px auto
        10px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #fff2f5,
            #f9e5eb
        );

    border: 2px solid rgba(151, 101, 115, 0.10);

    font-size: 62px;
}

.favorites-word {
    margin:
        5px 0
        4px;

    color: #5b4c51;

    font-size: 34px;
}

.favorites-question {
    margin:
        0 0
        19px;

    color: #8d7a80;

    font-size: 14px;
}


/* ==========================================================
   FAVORITES CHOICES
========================================================== */

.favorites-choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;

    width: min(430px, 100%);

    margin:
        0 auto;
}

.favorites-choice-button {
    min-height: 60px;

    font-weight: 700;
}

.favorites-choice-button.selected-like {
    background: #e8f1df;

    border-color: #bfd0af;

    color: #637356;
}

.favorites-choice-button.selected-dislike {
    background: #f5e1e4;

    border-color: #dcb8c0;

    color: #8b626b;
}


/* ==========================================================
   FAVORITES RESULT
========================================================== */

.favorites-result-card {
    width: min(650px, 100%);

    margin:
        25px auto
        0;

    padding:
        30px
        24px;

    border-radius: 29px;

    background:
        linear-gradient(
            180deg,
            #fffefd,
            #fff8f9
        );

    border: 2px solid #e8dce0;
    border-bottom: 7px solid #d7c5ca;

    box-shadow:
        0 14px 32px
        rgba(95, 66, 76, 0.07);

    text-align: center;
}

.favorites-result-card:not([hidden]) {
    display: block;
}

.favorites-result-icon {
    margin-bottom: 8px;

    font-size: 62px;
}

.favorites-result-card h3 {
    margin:
        5px 0
        18px;

    color: #594b50;

    font-size: 29px;
}

.favorites-list {
    display: grid;

    gap: 9px;

    margin-bottom: 22px;
}

.favorite-result-line {
    padding:
        11px
        14px;

    border-radius: 14px;

    background: #fff6f8;

    color: #6c5960;

    font-size: 14px;
    font-weight: 600;
}


/* ==========================================================
   MEDIA CARDS
========================================================== */

.video-card-grid
.learning-video-card:nth-child(1)
.video-card-illustration {
    background:
        linear-gradient(
            145deg,
            #fff1f4,
            #f7e5ea
        );
}

.video-card-grid
.learning-video-card:nth-child(2)
.video-card-illustration {
    background:
        linear-gradient(
            145deg,
            #fff7e7,
            #f6ebdb
        );
}

.video-card-grid
.learning-video-card:nth-child(3)
.video-card-illustration {
    background:
        linear-gradient(
            145deg,
            #f4efff,
            #eee6fa
        );
}


/* ==========================================================
   PRACTICE
========================================================== */

.likes-lesson-body .practice-heading-icon {
    background:
        linear-gradient(
            145deg,
            #fff1f4,
            #f6e5ea
        );
}


/* ==========================================================
   QUESTION CARD
========================================================== */

.likes-question-card {
    width: min(650px, 100%);

    margin:
        0 auto;

    padding:
        28px
        24px;

    border-radius: 27px;

    background:
        linear-gradient(
            180deg,
            #fffefd,
            #fff8f9
        );

    border: 2px solid #e9dde1;
    border-bottom: 6px solid #d8c7cc;

    box-shadow:
        0 11px 26px
        rgba(95, 65, 75, 0.07);

    text-align: center;
}

.likes-question-emoji {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 88px;
    height: 88px;

    margin:
        0 auto
        13px;

    border-radius: 26px;

    background: #fff1f4;

    font-size: 53px;
}

.likes-question-card h3 {
    margin:
        9px 0
        18px;

    color: #594b50;

    font-size: 24px;
    line-height: 1.45;
}

.likes-question-card > p:not(.screen-label) {
    color: #88767c;

    font-size: 14px;
}


/* ==========================================================
   ANSWER GRID
========================================================== */

.likes-answer-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;

    margin-top: 18px;
}

.likes-answer-button {
    min-height: 58px;

    padding:
        12px
        14px;

    border-radius: 16px;

    border: 2px solid #e2d6da;
    border-bottom: 5px solid #cdbbc1;

    background:
        linear-gradient(
            180deg,
            #fffafd,
            #f8eef1
        );

    color: #68575d;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.likes-answer-button:not(:disabled):hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 15px
        rgba(94, 64, 73, 0.06);
}

.likes-answer-button.correct {
    background: #e8f1df;

    border-color: #bdcfab;
    border-bottom-color: #a5bb92;

    color: #607153;
}

.likes-answer-button.wrong {
    background: #f5e0e4;

    border-color: #ddb6bf;
    border-bottom-color: #c998a3;

    color: #93646f;
}

.likes-answer-button:disabled {
    cursor: default;
}


/* ==========================================================
   GAME FEEDBACK
========================================================== */

.game-feedback {
    min-height: 24px;

    margin-top: 14px;

    font-size: 13px;
    font-weight: 600;
}

.correct-feedback {
    color: #687b5e;
}

.wrong-feedback {
    color: #986a72;
}


/* ==========================================================
   FINISH
========================================================== */

.likes-lesson-body .finish-main-icon {
    background:
        linear-gradient(
            145deg,
            #fff0f4,
            #f3dfe5
        );
}

.likes-lesson-body .finish-badge {
    background:
        linear-gradient(
            145deg,
            #fff7e9,
            #f8e8ed
        );
}


/* ==========================================================
   SMALL ANIMATION
========================================================== */

@keyframes favoritePop {

    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    70% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.favorite-pop {
    animation:
        favoritePop
        0.3s ease;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 760px) {

    .likes-compare-grid {
        grid-template-columns: 1fr;
    }

    .favorites-choice-grid {
        grid-template-columns: 1fr;
    }

    .likes-answer-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 560px) {

    .likes-progress-preview {
        gap: 9px;
    }

    .likes-progress-icon {
        width: 47px;
        height: 47px;

        font-size: 24px;
    }

    .likes-main-card {
        padding:
            19px
            15px;
    }

    .likes-example-card {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .likes-example-icon {
        margin: 0 auto;
    }

    .likes-memory-card {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .likes-memory-card p {
        text-align: center;
    }

    .favorites-emoji {
        width: 92px;
        height: 92px;

        font-size: 54px;
    }

    .likes-question-card {
        padding:
            24px
            17px;
    }

}


/* ==========================================================
   HIDDEN SAFETY
========================================================== */

[hidden] {
    display: none !important;
}

@media (max-width: 850px) {

    .lesson-parts-map {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .likes-part-card {
        min-height: auto;
    }

    .likes-part-card h3,
    .likes-part-card > p {
        min-height: auto;
    }
}