/* main.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Цветовая палитра HoReCa */
    --bg-color: #14110F;
    --text-primary: #F4F0EA;
    --text-secondary: #A8A297;
    --color-accent: #D4AF37;
    --color-accent-rgb: 212, 175, 55;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-card-border: rgba(212, 175, 55, 0.15);
    
    /* Шрифты */
    --font-main: 'Montserrat', sans-serif;
    
    /* Сетка и отступы */
    --padding-screen: 50px;
    --border-radius-card: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Kiosk Mode utilities */
.screen-container {
    width: 1920px;
    height: 1080px;
    flex-shrink: 0; /* Prevent flexbox from shrinking the container before scale is applied */
    padding: var(--padding-screen);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Header */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.logo-container img {
    height: 108px;
    object-fit: contain;
    /* CSS filter to turn logo into elegant muted gold (#d4af37) and dim it */
    filter: brightness(0) saturate(100%) invert(76%) sepia(57%) saturate(415%) hue-rotate(357deg) brightness(89%) contrast(87%);
    opacity: 0.6;
}

.screen-title {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* Main Area Layout */
.screen-content {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 60px;
}

/* Footer / Legend */
.screen-footer {
    display: none;
}

.legend-container {
    display: flex;
    gap: 30px;
}

.legend-item {
    font-weight: 500;
}

.legend-item span {
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 5px;
}

/* Menu Card / Containers */
.menu-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--border-radius-card);
    padding: 35px;
    backdrop-filter: blur(10px);
}

/* Menu rows and structure */
.menu-item-group {
    margin-bottom: 35px;
}

.menu-item-group-title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 22px;
    letter-spacing: 1px;
    border-left: 4px solid var(--color-accent);
    padding-left: 15px;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    position: relative;
}

/* Complex two-line row */
.menu-row-complex {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    position: relative;
}

.menu-row-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.menu-item-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.menu-row-name {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    flex: none;
}

.menu-row-dots {
    flex: 1;
    border-bottom: 2px dotted rgba(255, 255, 255, 0.15);
    margin: 0 15px;
    height: 1px;
}

.menu-row-price-container {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}

.menu-row-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-accent);
    text-align: right;
    min-width: 70px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.menu-row-price.fade-out {
    opacity: 0.1;
}

.menu-row-price.fade-in {
    opacity: 1;
}

.price-item {
    display: inline-block;
}

.price-slash {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0.4;
    margin: 0 5px;
}

/* Dynamic Badge */
.badge-new {
    background-color: var(--color-accent);
    color: var(--bg-color);
    font-size: 14px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
}


/* Stop-list overlay style */
.stop-list-tag {
    color: var(--text-secondary);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
}

/* Embedded Animation elements */
.animation-container {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Animated glass styling (CSS vector graphics representation of Pixi elements) */
.animated-glass {
    position: relative;
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: floatCup 6s ease-in-out infinite;
}

.glass-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 60%;
    background: linear-gradient(0deg, #3c2317 0%, #6f4e37 100%);
    opacity: 0.85;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    animation: waveMove 12s linear infinite;
    transform-origin: bottom center;
}

.glass-liquid.tea {
    background: linear-gradient(0deg, #591b0c 0%, #aa3a18 100%);
}

.glass-liquid.shake {
    background: linear-gradient(0deg, #d38d9e 0%, #f3c2cd 100%);
}

.glass-liquid.orange {
    background: linear-gradient(0deg, #d15600 0%, #ffa500 100%);
}

.glass-bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    bottom: -20px;
    animation: riseBubble 4s ease-in-out infinite;
}

.glass-ice {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    transform: rotate(15deg);
    animation: iceFloat 8s ease-in-out infinite;
}

.glass-straw {
    position: absolute;
    top: -50px;
    left: 80px;
    width: 12px;
    height: 200px;
    background: linear-gradient(90deg, #d4af37 0%, #f4e0a5 50%, #d4af37 100%);
    transform: rotate(-15deg);
    border-radius: 6px;
    z-index: 2;
}

/* Animations declarations */
@keyframes floatCup {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes waveMove {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-25%) scaleY(1.05); }
    100% { transform: translateX(-50%) scaleY(1); }
}

@keyframes riseBubble {
    0% { bottom: -20px; opacity: 0; transform: scale(0.8) translateX(0); }
    50% { opacity: 0.6; }
    100% { bottom: 85%; opacity: 0; transform: scale(1.2) translateX(15px); }
}

@keyframes iceFloat {
    0% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-10px) rotate(25deg); }
    100% { transform: translateY(0) rotate(15deg); }
}

/* Blinking animation for cat eyes */
@keyframes blinkEye {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Card Headers with Price Columns */
.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.menu-card-title-main {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 1px;
    border-left: 4px solid var(--color-accent);
    padding-left: 15px;
}

.menu-card-price-headers {
    display: flex;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-right: 10px;
}

.menu-card-price-headers .header-label {
    min-width: 60px;
    text-align: center;
}

.menu-card-price-headers .header-label.cupazh { color: var(--text-primary); }
.menu-card-price-headers .header-label.arabika { color: var(--color-accent); }
.menu-card-price-headers .header-label.decaf { color: #8bb38b; }
