/* Picole — custom styles (poleg Tailwind CDN) */

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom button states za 1/2 mix flow (M3) */
.half-selected {
    background-color: #B14A2B;
    color: #fff;
    border-color: #B14A2B;
}

.half-selected::before {
    content: '✓ ';
}

/* Flash animacija ob dodajanju v cart */
@keyframes cart-flash {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.cart-flash { animation: cart-flash 0.3s ease-out; }

/* Disable state */
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === Prose stili za pravne dokumente (M6) === */
.prose-picola h1 { font-size: 1.6rem; font-weight: 700; margin: 1.2em 0 0.6em; color: #2A211A; }
.prose-picola h2 { font-size: 1.3rem; font-weight: 700; margin: 1.5em 0 0.5em; color: #2A211A; }
.prose-picola h3 { font-size: 1.1rem; font-weight: 600; margin: 1.2em 0 0.4em; color: #2A211A; }
.prose-picola h1:first-child, .prose-picola h2:first-child, .prose-picola h3:first-child { margin-top: 0; }
.prose-picola p  { margin: 0.6em 0; }
.prose-picola ul, .prose-picola ol { margin: 0.6em 0; padding-left: 1.5em; }
.prose-picola ul { list-style: disc; }
.prose-picola ol { list-style: decimal; }
.prose-picola li { margin: 0.25em 0; }
.prose-picola a  { color: #B14A2B; text-decoration: underline; }
.prose-picola a:hover { color: #7E2C1A; }
.prose-picola strong { font-weight: 700; }
.prose-picola em { font-style: italic; }
.prose-picola hr { border: none; border-top: 1px solid #D2C5A8; margin: 1.5em 0; }
.prose-picola code { background: #F4EBDB; padding: 0.1em 0.3em; border-radius: 3px; font-family: ui-monospace, monospace; font-size: 0.9em; }
.prose-picola blockquote { border-left: 3px solid #D2C5A8; padding-left: 1em; color: #6F5F4A; margin: 1em 0; font-style: italic; }

/* === Cookie consent banner (M6) === */
#cookie-banner {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    background: #FFFFFF; border-top: 2px solid #D2C5A8;
    padding: 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
#cookie-banner.hidden { display: none; }
@media (min-width: 768px) {
    #cookie-banner { left: auto; right: 16px; bottom: 16px; max-width: 460px; border: 1px solid #D2C5A8; border-radius: 12px; }
}

/* === Background slike + parallax scroll storytelling (v0.53) === */

.hero-rotator {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    isolation: isolate;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 35%; /* hrana je tipično v zgornji tretjini */
    background-image: var(--bg-desktop);
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; }
@media (max-width: 767px) {
    .hero-slide { background-image: var(--bg-mobile); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(42,33,26,0.05) 0%, rgba(244,235,219,0.55) 70%, rgba(244,235,219,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 75vh;
}
.hero-content > div { width: 100%; }

/* Section backgrounds — full-bleed s cross-fade in parallax */
.bg-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.bg-section[style*="--bg-desktop"]::before {
    content: '';
    position: absolute;
    /* Razširimo bg navzgor/navzdol za parallax (transform translateY se premika v range-u) */
    inset: -20% 0;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center 35%;
    transform: translateY(var(--bg-translate, 0));
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    will-change: opacity, transform;
    z-index: 0;
}
.bg-section.is-in-view::before { opacity: 1; }
@media (max-width: 767px) {
    .bg-section[style*="--bg-mobile"]::before { background-image: var(--bg-mobile); }
}
.bg-section > * {
    position: relative;
    z-index: 1;
}
.bg-section[style*="--bg-desktop"] {
    /* Solid placeholder med fade-in-om, da ni bele blink-a */
    background-color: #2A211A;
}

/* Frosted glass card za vsebino nad bg sliko */
.content-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(42, 33, 26, 0.12);
}

/* Reduced motion — disable animations, ostane samo opacity */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .bg-section::before {
        transition: opacity 0.1s linear !important;
        transform: none !important;
    }
}

/* ===== Slike jedi: hover-zoom + lightbox (v1.13) ===== */
.dish-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.dish-zoom-img { transition: transform .15s ease, box-shadow .15s ease; }
.dish-thumb { position: relative; }
/* hover: povečaj sličico (400px vir → oster prikaz); dvig nad sosede */
.dish-zoom:hover { position: relative; z-index: 30; }
.dish-zoom:hover .dish-zoom-img {
    transform: scale(2.6);
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    border-radius: .4rem;
}
@media (hover: none) { /* na dotik ni hoverja — velja klik (lightbox) */
    .dish-zoom:hover .dish-zoom-img { transform: none; box-shadow: none; }
}

.dish-lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.82);
    display: flex; align-items: center; justify-content: center;
    padding: 24px; cursor: zoom-out;
}
.dish-lightbox.hidden { display: none; }
.dish-lightbox-inner { max-width: min(1024px, 92vw); max-height: 92vh; text-align: center; }
.dish-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.dish-lightbox-cap { color: #fff; margin-top: 12px; font-weight: 600; font-size: 15px; }
