/* ===== Základní layout ===== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Flexbox na celé tělo */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Header ===== */
header {
    background-color: #78b043;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.menu {
    font-size: 14px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1; /* Zabrání zbytečnému roztahování */
}

.menu a {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.menu a:hover {
    color: #ffeb3b;
}

/* Styl pro oddělovač */
.menu a:not(:last-child)::after {
    content: "/";
    color: #ccc;
    margin-left: 6px;
}



/* ===== Dekorativní burger ikonka ===== */
.burger-background {
    position: absolute;
    top: 0;
    left: 10px;
    width: 200px;
    height: 200px;
    z-index: 0;
    opacity: 0.8;
}

.burger-background img {
    width: 100%;
    height: auto;
}

/* ===== Obsah ===== */
main {
    flex: 1;
    padding-bottom: 40px; /* aby footer nebyl nalepený */
}

main h2 {
    text-align: center;
    margin-top: 40px;
    font-size: 24px;
}

/* ===== Grid s kuchyněmi a dezerty (stejný styl) ===== */
.kuchyne-grid,
.dezert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.kuchyne-item,
.dezert-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.kuchyne-item img,
.dezert-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.kuchyne-item:hover img,
.dezert-item:hover img {
    transform: scale(1.03);
}

.overlay-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    z-index: 1;
}

/* ===== Alternativní možnosti (např. .options pro homepage) ===== */
.options {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.option {
    position: relative;
    width: 300px;
    cursor: pointer;
}

.option img {
    width: 100%;
    height: 200px;           /* pevná výška */
    object-fit: cover;       /* ořízne a přizpůsobí obrázek */
    border-radius: 10px;
}

.option-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 40px 0;
}

/* ===== Footer ===== */
footer {
    background-color: #78b043;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    margin-top: auto;
}

footer img {
    width: 24px;
    height: auto;
    margin-left: 10px;
    vertical-align: middle;
}
.dezert-wrapper {
            display: flex;
            justify-content: center;
            max-width: 1000px;
            margin: 40px auto;
            gap: 30px;
            padding: 0 20px;
            flex-wrap: wrap;
        }

        .dezert-img {
            flex: 0 0 280px;
            align-self: stretch;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .dezert-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .dezert-info {
            flex: 1;
            background-color: #ffffff;
            padding: 20px;
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .dezert-info strong {
            display: inline-block;
            margin-top: 10px;
        }

        .dezert-info p {
            margin: 10px 0;
        }

        .nazev-receptu {
            font-size: 22px;
            font-weight: bold;
            color: #000;
            margin-top: 20px;
            text-align: center;
        }


/* ===== Responsivní styl ===== */
@media (max-width: 900px) {
    .kuchyne-grid,
    .dezert-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 30px auto;
        padding: 0 15px;
    }
    .options {
        gap: 30px;
    }
    .option {
        width: 45%;
    }
    .burger-background {
 display: none;
}
}


@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
        position: relative;
    }
    .menu {
        font-size: 13px;
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .menu a {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .kuchyne-grid,
    .dezert-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 20px 10px;
        padding: 0 10px;
    }
    .options {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .option {
        width: 90%;
    }

    main h2 {
        font-size: 20px;
        margin-top: 30px;
    }
    .title {
        font-size: 20px;
        margin: 30px 0;
    }
}

/* Extra drobné úpravy pro very small screens (např. starší mobily) */
@media (max-width: 350px) {
    header {
        padding: 8px 10px;
    }
    .logo {
        font-size: 20px;
    }
    .menu {
        font-size: 12px;
    }
    .option-text {
        font-size: 16px;
    }
}
