/* Fundal animat pentru pagina de meniu (doar pe prima pagina, doar in modul inchis, fara tema sezoniera activa) */
html.fundal-viu { background: var(--bg-dark, #1e1e1e); }
html.fundal-viu:not([data-lumina="deschis"]) body { background: transparent !important; }
#fundal-viu {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
    --dim: 0; --c1: #3a1710; --c2: #1e1e1e;
    background: linear-gradient(180deg, var(--c1), var(--c2) 72%);
}
html[data-lumina="deschis"] #fundal-viu { display: none; }
#fundal-viu.intro { animation: fv-aprinde 2.8s ease-out both; }
@keyframes fv-aprinde {
    0%   { opacity: 0; filter: brightness(1.9) saturate(1.3); }
    18%  { opacity: 1; }
    100% { opacity: 1; filter: brightness(1) saturate(1); }
}
#fundal-viu .fv-glow {
    position: absolute; inset: auto -20% -35% -20%; height: 85%; opacity: calc(1 - var(--dim));
    background: radial-gradient(closest-side, rgba(232, 116, 42, .42), rgba(232, 116, 42, .12) 55%, transparent 75%);
    animation: fv-puls 6s ease-in-out infinite;
}
@keyframes fv-puls { 0%, 100% { transform: scale(1); filter: brightness(.8); } 50% { transform: scale(1.06); filter: brightness(1.1); } }
#fundal-viu canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(1 - var(--dim)); }
#fundal-viu .fv-raza {
    position: absolute; inset: 0; opacity: calc(1 - var(--dim));
    background: linear-gradient(105deg, transparent 38%, rgba(255, 214, 140, .09) 50%, transparent 62%);
    transform: translateX(-100%);
    animation: fv-matura 14s ease-in-out infinite;
}
@keyframes fv-matura { 0% { transform: translateX(-100%); } 22%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
    #fundal-viu.intro, #fundal-viu .fv-glow, #fundal-viu .fv-raza { animation: none !important; }
}

/* fv2: carduri translucide + logo animat */
html.fundal-viu:not([data-lumina="deschis"]) main { --bg-card: rgba(26, 24, 22, .6); }
html.fundal-viu:not([data-lumina="deschis"]) .fv-sticla { background-color: rgba(26, 24, 22, .6) !important; }
html.fundal-viu:not([data-lumina="deschis"]) .logo-banner { background: transparent !important; }
html.fundal-viu .logo-banner a { position: relative; display: inline-block; }
html.fundal-viu .brand-logo {
    transform-origin: 50% 70%;
    animation: fv-logo-intrare 1.4s cubic-bezier(.2, .7, .2, 1) both, fv-logo-foc 4.2s ease-in-out 1.4s infinite;
}
@keyframes fv-logo-intrare {
    from { opacity: 0; transform: scale(.9) translateY(10px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fv-logo-foc {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(232, 116, 42, .30)); }
    50%      { filter: drop-shadow(0 0 22px rgba(255, 150, 50, .75)) brightness(1.06); }
}
html.fundal-viu .logo-banner a::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 235, 190, .6) 50%, transparent 60%);
    background-size: 250% 100%; background-position: 150% 0;
    -webkit-mask: url(/img/logo.webp) center / 100% 100% no-repeat;
    mask: url(/img/logo.webp) center / 100% 100% no-repeat;
    animation: fv-logo-luciu 7s ease-in-out 2.2s infinite;
}
@keyframes fv-logo-luciu { 0% { background-position: 150% 0; } 30%, 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
    html.fundal-viu .brand-logo, html.fundal-viu .logo-banner a::after { animation: none !important; }
}

/* ==== fundal-locatie v2 ==== */
/* Poza cladirii sta doar sus (se deruleaza cu pagina), pana unde incepe meniul; marginea de jos se pierde lin in fundalul normal. Inaltimea o seteaza fundal-meniu.js. */
#fundal-locatie {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 8, 6, .45), rgba(10, 8, 6, .62)), url(/img/fundal-locatie-b53733ec.webp) center top / cover no-repeat;
    opacity: .85;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 170px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 170px), transparent);
}

/* poza-sub-verde v1: pe telefon poza are marime fixa (inaltimea o da fundal-meniu.js); sub ea continua culoarea podelei */
@media (max-width: 767.98px) {
    #fundal-locatie {
        background-size: 100% 100%, auto var(--poza-h, 100%);
        background-position: 0 0, center top;
        background-color: #2c2823;
    }
}

/* tel-stil v1: "Comenzi la" ca insigna aurie (sticla fumurie, bordura aurie, stralucire) */
.hero-section p.tel-anim {
    display: flex; width: fit-content; max-width: 100%; align-items: center; justify-content: center; flex-wrap: wrap;
    column-gap: .5rem; row-gap: 0; margin: 0 auto !important;
    padding: .55rem 1.2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(38, 30, 20, .74), rgba(14, 11, 8, .74));
    border: 1px solid rgba(212, 175, 55, .62);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .08), 0 8px 24px rgba(0, 0, 0, .45), 0 0 28px rgba(212, 175, 55, .22);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: clamp(1rem, 4.6vw, 1.35rem) !important;
}
.hero-section .tel-eticheta {
    font-family: 'Cinzel Decorative', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    font-weight: 700; font-size: .6em; letter-spacing: .12em; text-transform: uppercase;
    color: #f1e6c4; opacity: .92; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.hero-section .tel-ico { font-size: 1.05em; }
.hero-section .tel-anim-nr { font-size: 1.12em; font-weight: 800; letter-spacing: .04em; filter: drop-shadow(0 0 7px rgba(212, 175, 55, .45)); white-space: nowrap; }

/* tel-transp v1: "Comenzi la" fara fundal, fara bordura, fara umbra (doar textul) */
.hero-section p.tel-anim {
    background: none !important; border: 0 !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    padding: .2rem 0 !important; border-radius: 0 !important;
}

/* login-compact v1: pe telefon caseta de conectare nu mai are spatiu gol intre text si buton (flex-basis 260px devenea inaltime in coloana) */
@media (max-width: 575.98px) {
    .login-invita { gap: .6rem; padding: .8rem 1rem; }
    .login-invita .login-invita-text { flex: 0 0 auto; }
}

/* desktop-intrare v1: pe desktop poza e scalata pe latime (nu pe inaltime), vizibila pana sub intrarea cladirii; bara de categorii si butoanele din antet sunt transparente */
@media (min-width: 768px) {
    #fundal-locatie {
        background-size: 100% 100%, 100% auto;
        background-position: 0 0, center top;
        background-color: #2c2823;
        -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent);
        mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), transparent);
    }
    .chip-bara:not(.lipit) { background: transparent !important; border-bottom-color: transparent !important; }
    .hero-acces > .btn {
        background: transparent !important; color: var(--accent-gold, #d4af37) !important;
        border: 1.5px solid var(--accent-gold, #d4af37) !important;
    }
    .hero-acces > .btn:hover { background: var(--accent-gold, #d4af37) !important; color: var(--on-gold, #1e1e1e) !important; }
}

/* ==== ultima-sus v1 ==== */
/* Butonul "Ultima comanda" sta deasupra butonului "Top 5 pizza", cu aceeasi latime ca butoanele din grup. */
.hero-ultima { max-width: 440px; margin: 0 auto .6rem; }
@media (min-width: 768px) {
    .hero-ultima .btn {
        background: transparent !important; color: var(--accent-gold, #d4af37) !important;
        border: 1.5px solid var(--accent-gold, #d4af37) !important;
    }
    .hero-ultima .btn:hover { background: var(--accent-gold, #d4af37) !important; color: var(--on-gold, #1e1e1e) !important; }
}

/* ==== scroll-fix v1 ==== */
/* Telefon: fara blur de fundal (backdrop-filter) pe elementele fixe, care pot lasa pagina goala dupa un scroll rapid. */
@media (max-width: 767.98px) {
    .cos-plutitor, .meniu-plutitor, .hero-section p.tel-anim {
        -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    }
    .cos-plutitor { background: rgba(30, 30, 30, .92) !important; }
    .meniu-plutitor { background: rgba(30, 30, 30, .9) !important; }
}

/* tel-transp-fix v1: "Comenzi la" ramane fara fundal, fara bordura, fara umbra (are prioritate peste orice regula anterioara) */
.hero-section p.tel-anim,
.hero-section p.tel-anim:hover {
    background: transparent none !important; border: 0 !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    padding: .2rem 0 !important; border-radius: 0 !important;
}

/* ==== fara-scantei v1 ==== */
#fundal-viu canvas { display: none !important; }
