/* menu.css - Shared styles for all menu board pages */

:root {
    --primary-color: #2c1b10;
    --accent-color: #a63e00;
    --highlight-color: #ff4d00;
    --bg-color: #fff8f0;
    --light-accent: #ffcc99;
    --card-bg: white;
    --border-style: 6px double var(--accent-color);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    background: var(--bg-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-size: 1.2rem;
}

.menu-board {
    display: flex;
    flex-wrap: nowrap;
    flex: 1;
    gap: 15px;
    padding: 10px;
    background: repeating-linear-gradient(
        45deg,
        var(--bg-color),
        var(--bg-color) 10px,
        #ffeecc 10px,
        #ffeecc 20px
    );
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Default: 3-column layout. Override per-page for 2-column. */
.menu-column {
    background: var(--card-bg);
    border: var(--border-style);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 33.33%;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
}

.section {
    margin-bottom: 6px;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    border-bottom: 2px dashed var(--accent-color);
    padding-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.menu-item {
    margin-bottom: 8px;
    width: 100%;
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 5px;
}

.menu-item-name {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: normal;
    background: var(--card-bg);
    padding-right: 3px;
    z-index: 1;
}

/* Dotted leader between name and price */
.menu-dots {
    flex-grow: 1;
    position: relative;
}

.menu-dots::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-bottom: 2px dotted #ccc;
}

.price-container {
    display: flex;
    gap: 15px;
    white-space: nowrap;
    background: var(--card-bg);
    z-index: 1;
    flex-shrink: 0;
}

.price {
    width: 70px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--highlight-color);
    font-weight: bold;
    text-shadow: 0 0 2px var(--light-accent);
}

.menu-item-description {
    font-size: 1.1rem;
    color: #444;
    margin: 3px 0 0 3px;
    line-height: 1.3;
    max-height: 2.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-label-container {
    display: flex;
    gap: 15px;
    margin-left: auto;
    margin-bottom: 3px;
}

.price-label {
    width: 70px;
    text-align: center;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.info-box {
    background: #fff0e0;
    padding: 6px;
    border: 1px dashed var(--accent-color);
    margin: 4px 0;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
}

.menu-item-double {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.sub-menu-item {
    margin-left: 20px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.sub-menu-item .menu-item-row {
    opacity: 0.9;
}

.sub-menu-item .menu-item-name {
    font-size: 1.15rem;
    font-weight: 500;
    font-style: italic;
    color: #555;
}

.sub-menu-item .price {
    font-size: 1.15rem;
    width: 70px;
    text-align: center;
}
