﻿/* Public menu */
.menu-page {
    min-height: 100vh;
}

.menu-title {
    letter-spacing: 1px;
    font-weight: 600;
}

.decorative-line {
    position: relative;
    height: 1px;
    width: 120px;
}

.decorative-line-last {
    position: relative;
    height: 1px;
    width: 120px;
}

.decorative-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 15px;
    font-size: 1.2rem;
}

.decorative-icon-last {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 15px;
    font-size: 1.2rem;
}

.menu-item {
    position: relative;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}

    .menu-item:last-child {
        margin-bottom: 0px;
    }

.cocktail-name {
    font-weight: 600;
}

.cocktail-description {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ingredients-section {
    margin-top: 0.75rem;
}

/* Inline ingredients style */
.ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    font-size: 0.85rem;
}

.ingredient {
    position: relative;
    padding-right: 8px;
    margin-right: 4px;
}

.ingredient-list-item::before {
    padding-right: 4px;
}

/* Todo: Make theme dependent */
.ingredient:not(:last-child)::after {
    position: absolute;
    right: -4px;
}

/* List ingredients style */
.ingredients-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.ingredient-list-item {
    margin-bottom: 0.25rem;
}

    .ingredient-list-item:last-child {
        margin-bottom: 0;
    }

/* Category styling */
.category-item {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.category-name {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.7rem;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    margin: 0rem;
}

.category-line {
    height: 1px;
}

/* Style for decorative-line when first item in menu is a category */
.container:has(.menu-items > .category-item:first-child) .decorative-line {
    display: none;
}

/* Styles for a menu-item that comes before a category-item */
.menu-item:has(+ .category-item) {
    padding-bottom: 0rem;
    margin-bottom: 3.5rem;
    border-bottom: none !important;
}

@media (min-width: 768px) {
    .menu-item {
        padding: 0 1.5rem 2rem;
    }
}

.menu-item:last-child {
    border-bottom: none !important;
}

/* Preparation steps */
.preparation-steps {
    margin-top: 1rem;
}

.preparation-title {
    font-size: 1rem;
    font-weight: 600;
}

.preparation-text {
    font-size: 0.9rem;
    white-space: pre-wrap;
    line-height: 1.5;
}