:root {
    --joel_brown: #7D5A3E;
    --background_white: #f5f5f5;
    --text-muted: #555;
    --border-subtle: rgba(125, 90, 62, 0.25);
    --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.08);
    --radius-card: 12px;
    --accent-danger: #b23a2f;
    --surface: white;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    background: var(--background_white);
}

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/cinzel/v19/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfY3lDWxcZqTFUw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/cormorant/v18/H4c2BXOCl9bbnla_nHIA47NMUjsNbCVrFhFTc7Nq7Q.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/raleway/v28/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrEVIT9d0c8.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
    color: inherit;
}

.navigation-line-break {
    border-top: 3px solid #7D5A3E;
    opacity: 0.3;

}

.navigation-line-break-inner {
    margin-top: 1%;
    margin-right: 1.5%;
    margin-left: 1.5%;
    border-top: 1px solid black;
    opacity: 0.2;

}

h1 {
    font-family: Cinzel, cursive;
}

h2, h3, h4, p, label {
    font-family: Cormorant, serif;
}

.title {
    padding-bottom: 3%;
}

.main {
    padding: 5vh 20% 10vh;
}

.header-container {
    display: flex;
    flex-direction: column;
}

.nav-bar {
    position: sticky;
    top: 0;
    background-color: var(--joel_brown);
    color: white;
    padding: 0.3em 0;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
    z-index: 100;
}

.nav-bar ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
}

.nav-bar ul li {
    text-transform: uppercase;
    font-family: Cinzel, cursive;
    font-weight: lighter;
    font-size: xx-large;
}

.nav-bar ul li:hover {
    cursor: pointer;
    color: black;
}

.open-hours {
    box-shadow: var(--shadow-card);
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1%;
    margin: 1%;
    margin-left: 4%;
    background: var(--joel_brown);
    opacity: 90%;
    display: flex;
    flex-direction: column;
    width: 250px;
}

.open-hours-column {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.open-hours-times {
    display: flex;
    flex-direction: column;
}

.open-hours h3, .open-hours h4 {
    text-align: center;
}

.header-img {
    background: url("/jakarta.faces.resource/images/food.png.xhtml") center;
    background-size: cover;
    padding: 1em 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    border: 4px solid white;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0);
    color: white;
    width: 120px;
    height: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.circle h1 {
    font-size: 1.5em;
}


.review-form {
    display: grid;
    gap: 0.75em;
    max-width: 640px;
    margin: 1em 0 2em;
    padding: 1.5em;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.review-form > label {
    display: none;
}

.review-form h3 {
    color: var(--joel_brown);
    margin-bottom: 0.25em;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 0.5em 0.75em;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-family: Cormorant, serif;
    font-size: 1rem;
}

.review-form textarea {
    min-height: 6em;
    resize: vertical;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--joel_brown);
}

.review-form input[type="submit"] {
    justify-self: start;
    background: var(--joel_brown);
    color: white;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    cursor: pointer;
    font-family: Cinzel, cursive;
    letter-spacing: 0.05em;
    transition: opacity 0.15s;
}

.review-form input[type="submit"]:hover {
    opacity: 0.9;
}

.star-name {
    display: flex;
    align-items: center;
    gap: 1em;
}

.review-name-input {
    margin-top: 0.8em;
    font-size: x-large;
}

.stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.stars > input {
    display: none;
}

.stars > label {
    position: relative;
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.1s;
    padding: 0 0.05em;
}

.stars > label::before {
    content: "\2605";
    position: absolute;
    top: 0;
    left: 0.05em;
    color: #FFD700;
    opacity: 0;
    transition: opacity 0.1s;
}

.stars > label:hover:before,
.stars > label:hover ~ label:before,
.stars > input:checked ~ label:before {
    opacity: 1;
}

.stars > #ranking,
.stars input[type="text"] {
    display: none;
}

/* Existing comments list */
#grade_loc > .review-form ~ h2 {
    margin-top: 2em;
    color: var(--joel_brown);
}

.review-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5em;
}

.review-item {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1em 1.25em;
    margin-bottom: 0.75em;
}

.review-item-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.25em;
}

.review-item-name {
    font-family: Cinzel, cursive;
    font-size: 1.1rem;
    color: var(--joel_brown);
}

.review-item-rating {
    color: #FFD700;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
}

.review-item-text {
    color: #333;
    font-family: Cormorant, serif;
    font-size: 1.05rem;
    line-height: 1.4;
}

.last {
    padding-bottom: 6vh;
}



.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: var(--joel_brown);
    color: white;
    padding: 1em 0 2em;
}

.footer-container * {
    font-weight: normal;
}

.checked {
    color: gold;
}

.today-event {
    padding: 2% 0 5%;
}

.events {
    padding: 1% 0 0;
}

.admin-main {
    padding: 5vh 0 10vh;
    background-color: var(--background_white);
}

.admin-week {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}


.admin-day {
    padding: 3px;
    border: #202020 1px solid;
    box-shadow: var(--shadow-card);
    padding: 1em;
}

.admin-day > h3 {
    text-align: center;
}

.admin-day > hr {
    height: 1px;
    border: none;
    background-color: #202020;
}

.admin-added-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.admin-added-item > i {
    font-size: x-large;
    cursor: pointer;
}

.admin-added-item > i:hover {
    color: red
}

.admin-add-lunch {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.admin-add-lunch > input[type='number'] {
    width: 3em;
}

@media screen and (max-width: 1200px) {
    .admin-week {
        flex-direction: column;
    }
}

.carte-add-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 1em;
    width: fit-content;
}

.admin-carte-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 300px;
}

.admin-carte-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.admin-carte-categories > div {
    margin-top: 2em;
}


.carte-remove {
    cursor: pointer;
}

.carte-remove:hover {
    color: red;
}

.add-food-form {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    width: fit-content;
}

.add-food-form > label {
    padding-right: 2em;
}

.today-event {
    padding: 2% 0 5%;
}

.events {
    padding: 1% 0 0;
}


@media screen and (max-width: 750px) {
    .nav-bar ul li {
        font-size: medium;
    }

    .main {
        padding: 5vh 10% 0;
    }

    .break-point {
        display: none;
    }

    .lunch-item-main {
        justify-content: space-between;
    }

    .lunch-item-main * {
        margin: 0 3px;
    }

    .lunch-item-price {
        white-space: nowrap;
    }

    .menu-item-main {
        justify-content: space-between;
    }

    .menu-item-main * {
        margin: 0 3px;
    }

    .menu-item-price {
        white-space: nowrap;
    }

    .star-name {
        display: block;
    }

    .carte-add-item {
        grid-template-columns: 1fr;
    }

    .admin-carte-categories {
        grid-template-columns: 1fr;
    }
}


/* Shared food list (lunch + carte) */
.lunch-days ul,
.menu-days ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0.5em 0 1em;
}

.lunch-days ul li,
.menu-days ul li {
    transition: opacity 0.2s, color 0.2s;
    cursor: pointer;
    opacity: 0.6;
    font-family: Cinzel, cursive;
    letter-spacing: 0.05em;
}

.lunch-days ul li:hover,
.menu-days ul li:hover {
    opacity: 1;
    color: var(--joel_brown);
}

.lunch-item,
.menu-item {
    margin: 1.25em 2% 1.25em 2%;
    padding-right: 8%;
}

.menu-item {
    cursor: pointer;
}

.lunch-item-main,
.menu-item-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1em;
    margin-bottom: 0.35em;
}

.lunch-item-name,
.menu-item-name {
    color: var(--joel_brown);
    font-family: Cinzel, cursive;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.lunch-item-price,
.menu-item-price {
    color: var(--joel_brown);
    font-family: Cormorant, serif;
    font-size: 1.1rem;
    white-space: nowrap;
    opacity: 0.85;
}

.lunch-item-description,
.menu-item-description {
    color: #333;
    font-family: Cormorant, serif;
    font-size: 1.05rem;
    line-height: 1.45;
    word-wrap: break-word;
    max-width: 80ch;
}

.menu-item-ingr {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.3em;
}

.break-point {
    margin: 0 2%;
}
