﻿:root {
    --main-bg: #f7f8e5;
    --meal-paratlan: #fb5959;
    --meal-paros: #446f7c;
    --border-paratlan: #fb5959;
    --border-paros: #446f7c;
    --paratlan-betuszin: #fff;
    --paros-betuszin: #fff;
}

* {
    box-sizing: border-box;
}

.meal-plan-wrapper {
}

/* Hét navigáció */
.week-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--border-paratlan);
}

    .week-header .arrow {
        background: none;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
    }

        .week-header .arrow:disabled {
            opacity: .4;
            cursor: default;
        }

/* Kereső */
.search-row {
    margin: 1.25rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--border-paratlan);
}

    .search-row input {
        flex: 1;
        padding: 0.4rem 0.6rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: var(--border-paros);
        opacity: 0.4;
        color: black !important;
        font-weight: 600;
    }

.grid-wrapper {
    overflow-x: auto;
    width: 100%;
}

.diet-label {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 2px solid var(--border-paratlan);
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    padding: 0.25rem 0.1rem;
}

    .diet-label .diet-code {
        font-weight: 500;
        font-size: 0.9rem;
    }



/* Fejléc cellák */
.corner-empty {
}

.corner-cell {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    align-self: center;
    color: var(--meal-paratlan);
}

.day-header {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding-left: 0.5rem;
    margin: auto;
}

.day-header-date {
    font-size: 0.9rem;
}
/* Diéta címke */
/*.diet-label {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 1px solid var(--border-paratlan);
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    padding: 0.25rem 0.1rem;
}

    .diet-label .diet-code {
        font-weight: 500;
        font-size: 0.9rem;
    }*/

/* Étkezés-típus cellák */
.meal-type {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    color: var(--paros-betuszin);
    background: var(--meal-paratlan);
}

/* Étel cellák */
.meal-cell {
    position: relative;
    border: 1px solid var(--border-paratlan);
    border-radius: 10%;
    padding: 0.35rem 0.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8em;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .meal-cell.alt {
        border-color: var(--border-paros);
    }

    .meal-cell ul {
        padding: 1.5em 0 1.5em 0 !important;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .meal-cell li {
        line-height: 1.25;
        gap: 1%;
    }

    .meal-cell li:not(:last-child) {
        margin-bottom: 5%;
    }

.star-container {
    position: absolute;
    top: 5px; /* állítsd ízlés szerint */
    right: 5px; /* állítsd ízlés szerint */
}

.star-button {
    color: #dbc927;
    background: none;
    border: none;
    padding: 0;
}
.crying-container {
    position: relative;
    display: inline-block;
    width: 150px; /* lehet max-width: 100% is, ha reszponzív */
}

.sad-image {
    width: 25%;
    display: block;
    margin: auto;
}

.tear {
    position: absolute;
    top: 44%; /* szem pozíció függőleges elhelyezkedése arányosan */
    left: 44%; /* vízszintesen az adott szem alatt */
    width: 6px;
    height: 8px;
    background: #00aaff;
    border-radius: 50%;
    animation: fall 1.2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }

    80% {
        transform: translateY(90%);
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Modal */
.ertekeles-tapanyag-modal-header {
    text-align: center;
    padding: 3%;
    font-size: x-large;
    font-weight: 500;
    background-color: var(--meal-paratlan);
    color: var(--paratlan-betuszin);
    margin-bottom: 2%;
    border-radius: 50% 50% 0 0;
}

.li2-etlap {
    list-style: none !important;
    margin-bottom: 5px !important;
}

.tapanyag-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .tapanyag-table th,
    .tapanyag-table td {
        border: 1px solid var(--meal-paros);
        padding: 8px;
        text-align: left;
    }

    .tapanyag-table th {
        background-color: var(--meal-paros);
        color: var(--paros-betuszin);
        font-weight: bold;
    }

    .tapanyag-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .tapanyag-table tr:hover {
        background-color: #f1f1f1;
    }
/* Mobil: görgethető */
@media(max-width: 1100px) {
    .meal-grid {
        overflow-y: auto;
    }
}

@media(max-width: 540px) {

    .week-header {
        display: flex;
        font-size: 1.5rem !important;
    }

        .week-header .arrow {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
        }
}
