/* srdjan - detalj događaja, redizajn 2026-07-22 ("plakat i ulaznica").
   Zaseban prostor imena .evd- da ne dira stilove kalendara/lista u tzdevents.css.
   Boje u OKLCH, neutralne tonirane prema brend crvenoj (hue 21). */

.evd-page {
    /* srdjan - bez zasebne akcentne boje: hijerarhiju nosi samo tipografija.
       Brend crvena je bila oklch(48% 0.19 21) ako je ikad zatreba natrag. */
    --evd-ink: oklch(23% 0.02 21);
    --evd-muted: oklch(50% 0.02 21);
    --evd-hair: oklch(90% 0.008 21);
    --evd-paper: oklch(98.5% 0.004 21);
    --evd-field: oklch(94.5% 0.012 21);
    --evd-ease: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */

    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
    color: var(--evd-ink);
    font-family: "Roboto", system-ui, sans-serif;
}

/* ---------- staza ---------- */
.evd-crumb {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    font-size: 0.82rem; color: var(--evd-muted);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.evd-crumb a { color: var(--evd-muted); text-decoration: none; }
.evd-crumb a:hover { color: var(--evd-ink); text-decoration: underline; }
.evd-crumb-now {
    color: var(--evd-ink); font-weight: 500;
    max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- naslov ---------- */
.evd-head { margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }
.evd-star {
    display: inline-block; margin: 0 0 0.7rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--evd-ink);
}
.evd-title {
    margin: 0;
    font-size: clamp(1.85rem, 5.2vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.022em;
    text-wrap: balance;
    max-width: 22ch;
}

/* ---------- plakat + ulaznica ---------- */
.evd-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
}
.evd-noimg .evd-lead { grid-template-columns: minmax(0, 1fr); max-width: 620px; }

/* Slike su svih omjera (0.71–1.78) — zato contain na zamućenoj kopiji, nikad crop. */
.evd-poster {
    position: relative;
    display: grid; place-items: center;
    margin: 0;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--evd-field);
    cursor: zoom-in;
}
.evd-poster-bg {
    position: absolute; inset: -6%;
    background-size: cover; background-position: center;
    filter: blur(30px) saturate(1.2) brightness(0.85);
    transform: scale(1.08);
}
.evd-poster-img {
    position: relative;
    display: block;
    max-width: 100%;
    max-height: min(72vh, 640px);
    width: auto; height: auto;
    object-fit: contain;
}
.evd-poster-zoom {
    position: absolute; right: 0.85rem; bottom: 0.85rem;
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    display: grid; place-items: center;
    background: oklch(20% 0.02 21 / 0.55); color: #fff;
    opacity: 0; transition: opacity 0.35s var(--evd-ease);
}
.evd-poster-zoom svg { width: 1.1rem; height: 1.1rem; }
.evd-poster:hover .evd-poster-zoom,
.evd-poster:focus-visible .evd-poster-zoom { opacity: 1; }
.evd-poster:focus-visible { outline: 3px solid var(--evd-ink); outline-offset: 3px; }

/* ---------- ulaznica: najglasniji element stranice ---------- */
/* Crvena je namjerno POVUČENA na tanku traku i sitne naglaske: datum je glasan
   veličinom, ne bojom. Ranija puna crvena ploha bila je prejaka. */
.evd-ticket {
    position: sticky; top: 1.25rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--evd-paper);
    border: 1px solid var(--evd-hair);
}
.evd-when {
    padding: clamp(1.1rem, 2.4vw, 1.55rem) clamp(1.15rem, 2.5vw, 1.7rem) clamp(0.9rem, 2vw, 1.25rem);
    border-bottom: 1px solid var(--evd-hair);
}
.evd-day {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 700; line-height: 0.9; letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    color: var(--evd-ink);
}
/* Raspon ("4–14") stoji kao JEDAN broj pa je odmah jasno da je to trajanje
   ovog događaja, a ne naslov nad popisom ispod. */
.evd-day.is-range { font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.035em; }
/* Raspon preko dva mjeseca ispisuje se imenima ("10. srpnja – / 25. kolovoza 2026.");
   drugi redak nosi kraj raspona pa mora biti jednako težak kao prvi, ne prigušen. */
.evd-day.is-range-long { font-size: clamp(1.3rem, 2.9vw, 1.7rem); line-height: 1.12; letter-spacing: -0.02em; }
.evd-day.is-range-long + .evd-month {
    margin-top: 0;
    font-size: clamp(1.3rem, 2.9vw, 1.7rem);
    line-height: 1.12; letter-spacing: -0.02em;
    font-weight: 700; color: var(--evd-ink);
}
.evd-dot { color: var(--evd-ink); }
.evd-month {
    margin: 0.3rem 0 0;
    font-size: clamp(0.92rem, 1.9vw, 1.02rem); font-weight: 500;
    color: var(--evd-muted);
}

.evd-facts { margin: 0; padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.15rem, 2.5vw, 1.7rem); }
.evd-fact + .evd-fact { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--evd-hair); }
.evd-facts dt {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--evd-muted); margin-bottom: 0.3rem;
}
.evd-facts dd { margin: 0; }
/* Skriveno oku, dostupno čitačima ekrana. */
.evd-sr {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
}
.evd-time {
    font-size: clamp(1.45rem, 3.2vw, 1.8rem);
    font-weight: 700; line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.evd-place {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 1rem; font-weight: 500; line-height: 1.35;
}
.evd-place svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.12rem; color: var(--evd-ink); }
.evd-addr { margin-top: 0.3rem; font-size: 0.88rem; color: var(--evd-muted); line-height: 1.45; }
.evd-price { font-size: 1.12rem; font-weight: 700; }
.evd-cat { font-size: 0.96rem; font-weight: 500; }

.evd-cal { padding: 0 clamp(1.15rem, 2.5vw, 1.7rem) clamp(1.15rem, 2.5vw, 1.6rem); }
.evd-cal-label {
    margin: 0 0 0.5rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--evd-muted);
}
.evd-cal-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.evd-btn {
    flex: 1 1 auto; text-align: center;
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--evd-hair); border-radius: 8px;
    background: #fff; color: var(--evd-ink);
    font-size: 0.86rem; font-weight: 500; text-decoration: none;
    transition: border-color 0.25s var(--evd-ease), color 0.25s var(--evd-ease), background 0.25s var(--evd-ease);
}
.evd-btn:hover { border-color: var(--evd-ink); color: var(--evd-ink); background: oklch(96.5% 0.006 21); text-decoration: none; }

/* ---------- kontakt ---------- */
.evd-contact {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.evd-contact-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--evd-hair); border-radius: 999px;
    color: var(--evd-ink); font-size: 0.88rem; text-decoration: none;
    transition: border-color 0.25s var(--evd-ease), color 0.25s var(--evd-ease);
}
.evd-contact-link svg { width: 1rem; height: 1rem; color: var(--evd-ink); }
.evd-contact-link:hover { border-color: var(--evd-ink); color: var(--evd-ink); text-decoration: none; }

/* ---------- opis (neki događaji ga nemaju) ---------- */
.evd-body {
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
    max-width: none;                 /* puna širina ispod plakata i ulaznice */
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.72;
    color: oklch(30% 0.015 21);
}
.evd-body h2, .evd-body h3, .evd-body h4 { break-after: avoid-column; }
.evd-body blockquote, .evd-body img, .evd-body figure { break-inside: avoid; }
.evd-body > :first-child { margin-top: 0; }
.evd-body > :last-child { margin-bottom: 0; }
.evd-body p { margin: 0 0 1.15em; }
.evd-body h2, .evd-body h3, .evd-body h4 {
    margin: 1.9em 0 0.6em; line-height: 1.25; font-weight: 700; letter-spacing: -0.012em;
}
.evd-body h2 { font-size: 1.4em; }
.evd-body h3 { font-size: 1.2em; }
.evd-body h4 { font-size: 1.05em; }
.evd-body a { color: var(--evd-ink); text-underline-offset: 3px; }
.evd-body img { max-width: 100%; height: auto; border-radius: 10px; }
.evd-body ul, .evd-body ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.evd-body li { margin-bottom: 0.4em; }
.evd-body blockquote {
    margin: 1.5em 0; padding: 0.9em 1.2em;
    background: var(--evd-field); border-radius: 10px;
    font-size: 1.02em;
}

/* ---------- prilog ---------- */
.evd-attach {
    display: inline-flex; align-items: center; gap: 0.9rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding: 0.7rem 1.1rem 0.7rem 0.7rem;
    border: 1px solid var(--evd-hair); border-radius: 12px;
    color: var(--evd-ink); text-decoration: none;
    transition: border-color 0.25s var(--evd-ease);
}
.evd-attach:hover { border-color: var(--evd-ink); text-decoration: none; }
.evd-attach img,
.evd-attach-ico {
    width: 3rem; height: 3.9rem; flex: none;
    object-fit: cover; border-radius: 6px;
    background: var(--evd-field); display: grid; place-items: center;
    color: var(--evd-ink);
}
.evd-attach-ico svg { width: 1.5rem; height: 1.5rem; }
.evd-attach-txt { display: flex; flex-direction: column; gap: 0.15rem; }
.evd-attach-txt strong {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--evd-muted);
}
.evd-attach-txt span { font-size: 0.98rem; font-weight: 500; }

/* ---------- naslovi sekcija ---------- */
.evd-h2 {
    margin: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(0.9rem, 2vw, 1.35rem);
    font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: -0.015em;
}

/* ---------- galerija ---------- */
.evd-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.evd-gal-item {
    display: block; overflow: hidden; border-radius: 10px;
    aspect-ratio: 4 / 3; background: var(--evd-field);
}
.evd-gal-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.5s var(--evd-ease); }
.evd-gal-item:hover img { transform: scale(1.05); }

/* ---------- karta ---------- */
.evd-map #event-map { height: 300px; border-radius: 12px; background: var(--evd-field); }

/* ---------- podnožje: natrag + podijeli ---------- */
.evd-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
    border-top: 1px solid var(--evd-hair);
}
.evd-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.92rem; font-weight: 500; color: var(--evd-ink); text-decoration: none;
}
.evd-back svg { width: 1.05rem; height: 1.05rem; transition: transform 0.3s var(--evd-ease); }
.evd-back:hover { color: var(--evd-ink); text-decoration: none; }
.evd-back:hover svg { transform: translateX(-4px); }

.evd-share { display: flex; align-items: center; gap: 0.45rem; }
.evd-share-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--evd-muted); margin-right: 0.15rem;
}
.evd-sbtn {
    width: 2.3rem; height: 2.3rem; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--evd-hair); background: #fff; color: var(--evd-muted);
    cursor: pointer; padding: 0;
    transition: border-color 0.25s var(--evd-ease), color 0.25s var(--evd-ease);
}
.evd-sbtn svg { width: 1.05rem; height: 1.05rem; }
.evd-sbtn:hover { border-color: var(--evd-ink); color: var(--evd-ink); }
.evd-sbtn.is-done { border-color: var(--evd-ink); color: var(--evd-ink); }

/* ---------- više događanja ---------- */
/* Jasan rez: bez njega je veliki datum iznad djelovao kao naslov i nad ovim popisom. */
.evd-more {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    border-top: 1px solid var(--evd-hair);
}
.evd-more .evd-h2 { margin-top: 0; }
.evd-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(0.9rem, 2vw, 1.35rem); }
.evd-card { display: block; color: var(--evd-ink); text-decoration: none; }
.evd-card-img {
    position: relative; display: block;
    aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden;
    background: var(--evd-field);
}
.evd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--evd-ease); }
.evd-card:hover .evd-card-img img { transform: scale(1.05); }
/* Datum je izašao sa slike u tekst: na plakatima (žuti, tamni, šareni) se crvena
   pločica gubila. Ovdje je kontrast uvijek isti. */
.evd-card-date {
    display: block; margin-bottom: 0.2rem;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
    color: var(--evd-ink);
}
/* Kategorija stoji uz datum u istom retku — odvojena tankom crticom, prigušena,
   da ne konkurira naslovu kartice. */
.evd-card-cat { color: var(--evd-muted); font-weight: 500; }
.evd-card-cat::before { content: "·"; margin: 0 0.35em; color: var(--evd-hair); }
.evd-card-txt { display: block; padding-top: 0.7rem; }
.evd-card-txt strong {
    display: block; font-size: 0.98rem; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.evd-card:hover .evd-card-txt strong { color: var(--evd-ink); }
.evd-card-loc { display: block; margin-top: 0.25rem; font-size: 0.83rem; color: var(--evd-muted); }

/* ---------- lightbox plakata ---------- */
.evd-lb {
    position: fixed; inset: 0; z-index: 100000;
    display: none; align-items: center; justify-content: center;
    padding: 1.25rem;
    background: oklch(12% 0.015 21 / 0.94);
}
.evd-lb.is-open { display: flex; }
.evd-lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.evd-lb-x {
    position: absolute; top: 1rem; right: 1rem;
    width: 3rem; height: 3rem; border-radius: 50%;
    display: grid; place-items: center;
    background: oklch(100% 0 0 / 0.14); color: #fff; border: none; cursor: pointer;
    font-size: 2rem; line-height: 1;
}
.evd-lb-x:hover { background: oklch(100% 0 0 / 0.28); }

/* ---------- responzivno ---------- */
@media (max-width: 900px) {
    .evd-lead { grid-template-columns: minmax(0, 1fr); }
    /* Na mobitelu "kada i gdje" ide PRIJE plakata — posjetitelj to prvo traži. */
    .evd-ticket { position: static; order: 1; }
    .evd-poster { order: 2; }
    .evd-noimg .evd-lead { max-width: none; }
}
@media (max-width: 520px) {
    .evd-foot { flex-direction: column; align-items: flex-start; }
    .evd-cal-btns { flex-direction: column; }
    .evd-btn { flex: 1 1 auto; }
}

/* ---------- pristupačnost / postavke sustava ---------- */
@media (prefers-reduced-motion: reduce) {
    .evd-page * { transition: none !important; animation: none !important; }
}
@media print {
    .evd-share, .evd-cal, .evd-more, .evd-crumb, .evd-poster-zoom { display: none !important; }
    .evd-page { max-width: none; }
    .evd-when { background: none; color: #000; border-bottom: 2px solid #000; }
    .evd-month { color: #000; }
}
