/* ==========================================================
   CARD "EVENIMENT VIITOR" — partajat intre pagina de evenimente
   si homepage. Self-contained: nu depinde de :root din event-base.css,
   ca sa poata fi incarcat si peste main.css pe homepage.
   ========================================================== */

/* .sec-head / .underline sunt definite global in event-base.css; aici le
   redefinim SCOPED, ca homepage-ul sa le aiba fara sa polueze main.css */
.section-upcoming .sec-head {
    text-align: center;
    margin-bottom: 22px;
}

.section-upcoming .sec-head h3 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    color: #151B36;
}

.section-upcoming .underline {
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: #C49B6C;
    display: inline-block;
    margin-top: 10px;
}

.section-upcoming .wrap {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-upcoming {
    padding: 46px 0 10px;
}

.up-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .16);
    background: linear-gradient(135deg, #5A1B16 0%, #8A3520 48%, #C9761F 100%);
    color: #fff;
    isolation: isolate;
}

/* poster întreg, nu crop — toate afișele sunt portrait */
.up-media {
    display: grid;
    place-items: center;
    padding: 30px;
    order: 2;
    min-width: 0;
    /* altfel min-content al imaginii sparge grila sub 360px */
}

.up-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 430px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}

.up-body {
    order: 1;
    padding: 38px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.up-eyebrow {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #F1C88A;
}

.up-title {
    margin: 10px 0 2px;
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.01em;
    color: #fff;
}

.up-edition {
    margin: 0 0 16px;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, .78);
}

.up-facts {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.up-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, .92);
}

.up-facts svg {
    flex: none;
    color: #F1C88A;
}

/* al treilea fapt, nu buton — accent prin tipografie, nu prin fundal.
   Selector cu .up-facts ca sa bata specificitatea lui `.up-facts li`. */
.up-facts .up-free {
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #F1C88A;
}

.up-desc {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
    max-width: 46ch;
}

.up-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.up-tag {
    font-size: .84rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .26);
}

.up-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.up-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    color: #4A1512;
    background: #fff;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.up-btn:hover {
    color: #4A1512;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .3);
}

/* CTA secundar — motor de rezervări */
.up-btn--ghost {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    box-shadow: none;
}

.up-btn--ghost:hover {
    color: #4A1512;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .3);
}

.up-btn svg {
    transition: transform .22s ease;
}

.up-btn:hover svg {
    transform: translateX(3px);
}

/* mobil: poster deasupra textului (conform brief) */
@media (max-width:1024px) {
    .up-card {
        grid-template-columns: 1fr;
    }

    .up-media {
        order: 1;
        padding: 24px 24px 0;
    }

    .up-media img {
        max-height: 360px;
    }

    .up-body {
        order: 2;
        padding: 26px 24px 32px;
        align-items: center;
        text-align: center;
    }

    .up-facts li,
    .up-tags,
    .up-actions {
        justify-content: center;
    }

    .up-desc {
        max-width: none;
    }
}

/* Pe telefon cele doua CTA-uri stau pe acelasi rand: impart latimea egal,
   fara wrap. Fara asta se rup, pentru ca la 390px nu incap la dimensiunea
   de desktop. */
@media (max-width: 620px) {
    .up-actions {
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
    }

    .up-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 12px 14px;
        font-size: .9rem;
        white-space: nowrap;
    }

    /* sageata mananca ~27px din latime; pe ecrane inguste o scoatem */
    .up-btn svg {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .up-btn,
    .up-btn svg {
        transition: none;
    }

    .up-btn:hover {
        transform: none;
    }
}

/* ornament alternativ pentru titlul de sectiune: emblema intre doua linii.
   Se aplica doar unde e prezent markup-ul .sec-crest (momentan homepage);
   pagina de evenimente foloseste in continuare .underline. */
.section-upcoming .sec-crest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 14px;
}

.section-upcoming .sec-crest::before,
.section-upcoming .sec-crest::after {
    content: "";
    height: 1px;
    flex: 0 1 92px;
    background: #C49B6C;
}

.section-upcoming .sec-crest img {
    display: block;
    width: 46px;
    height: auto;
    flex: none;
}

@media (max-width: 560px) {
    .section-upcoming .sec-crest {
        gap: 16px;
    }

    .section-upcoming .sec-crest::before,
    .section-upcoming .sec-crest::after {
        flex-basis: 60px;
    }
}
