/* Olifest single event page styles.
   Scoped to .ole-ev. Brand colors (--accent etc.) are injected inline from
   plugin settings via wp_add_inline_style(); the values below are fallbacks. */

.ole-ev{
    --accent:#ff6a0e;
    --accent-hover:#e55f08;
    --btn-text:#ffffff;
    --card:#ffffff;
    --border:rgba(17,17,26,.08);
    --ink:#16161a;
    --muted:#65656f;
    --soft:#f5f5f7;
    --radius:22px;
    --radius-sm:14px;
    --shadow:0 18px 40px rgba(17,17,26,.08), 0 6px 16px rgba(17,17,26,.05);
    --shadow-sm:0 6px 18px rgba(17,17,26,.06);
    max-width:1140px;
    margin:0 auto;
    padding:22px 18px 64px;
    color:var(--ink);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    line-height:1.6;
}
.ole-ev *{ box-sizing:border-box; }
.ole-ev img{ max-width:100%; height:auto; }

.ole-back{
    display:inline-flex; align-items:center; gap:6px;
    font-size:14px; font-weight:600; color:var(--muted);
    text-decoration:none; margin-bottom:16px; transition:color .15s ease;
}
.ole-back:hover{ color:var(--accent); }
.ole-ico{ width:1.15em; height:1.15em; flex:0 0 auto; }

/* HERO */
.ole-hero{
    position:relative; border-radius:var(--radius); overflow:hidden;
    min-height:440px; display:flex; align-items:flex-end;
    box-shadow:var(--shadow); isolation:isolate;
    background:linear-gradient(135deg, var(--accent), var(--accent-hover));
}
.ole-hero__img{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position:center; z-index:-2;
}
.ole-hero::after{
    content:""; position:absolute; inset:0; z-index:-1;
    background:linear-gradient(180deg, rgba(10,10,15,0) 28%, rgba(10,10,15,.55) 66%, rgba(10,10,15,.86) 100%);
}
.ole-hero__inner{ padding:clamp(22px,4vw,40px); width:100%; }
.ole-chip{
    display:inline-block; background:var(--accent); color:var(--btn-text);
    font-size:13px; font-weight:700; letter-spacing:.02em;
    padding:6px 13px; border-radius:999px; margin-bottom:14px;
    box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.ole-hero__title{
    margin:0 0 14px; color:#fff;
    font-size:clamp(1.7rem, 4.4vw, 2.8rem); font-weight:800;
    line-height:1.12; letter-spacing:-.01em; text-wrap:balance;
    text-shadow:0 2px 18px rgba(0,0,0,.35);
}
.ole-hero__meta{
    display:flex; flex-wrap:wrap; gap:8px 20px; margin-bottom:20px;
    color:#fff; font-size:15px; font-weight:600;
}
.ole-hero__meta span{ display:inline-flex; align-items:center; gap:8px; }
.ole-hero__cta{ display:flex; flex-wrap:wrap; gap:12px; }

/* View-photos button (opens the lightbox) */
.ole-photos-btn{
    position:absolute; right:16px; top:16px; z-index:2;
    display:inline-flex; align-items:center; gap:7px;
    background:rgba(8,8,12,.55); color:#fff; border:1px solid rgba(255,255,255,.35);
    padding:9px 14px; border-radius:999px; font-size:13px; font-weight:700; cursor:pointer;
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); transition:background .15s ease, color .15s ease;
}
.ole-photos-btn:hover{ background:var(--accent); color:var(--btn-text); border-color:transparent; }

/* BUTTONS */
.ole-btn{
    display:inline-flex; align-items:center; justify-content:center; gap:9px;
    padding:13px 22px; border-radius:var(--radius-sm); font-size:15px; font-weight:700;
    text-decoration:none; cursor:pointer; border:0; line-height:1.1;
    transition:transform .12s ease, background .18s ease, box-shadow .18s ease;
}
.ole-btn--primary{ background:var(--accent); color:var(--btn-text); box-shadow:0 8px 20px rgba(255,106,14,.32); }
.ole-btn--primary:hover{ background:var(--accent-hover); transform:translateY(-2px); color:var(--btn-text); }
.ole-btn--ghost{ background:rgba(255,255,255,.16); color:#fff; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.45); }
.ole-btn--ghost:hover{ background:rgba(255,255,255,.28); transform:translateY(-2px); color:#fff; }
.ole-btn--outline{ background:transparent; color:var(--accent); border:1.5px solid var(--accent); }
.ole-btn--outline:hover{ background:var(--accent); color:var(--btn-text); }
.ole-btn--block{ width:100%; }

/* LAYOUT GRID */
.ole-grid{
    display:grid; gap:24px; margin-top:24px;
    grid-template-columns:1fr; grid-template-areas:"aside" "main";
}
@media (min-width:920px){
    .ole-grid{ grid-template-columns:minmax(0,1fr) 360px; grid-template-areas:"main aside"; align-items:start; }
}
.ole-main{ grid-area:main; display:flex; flex-direction:column; gap:24px; min-width:0; }
.ole-aside{ grid-area:aside; min-width:0; }

/* CARDS */
.ole-card{
    background:var(--card); border:1px solid var(--border);
    border-radius:var(--radius); box-shadow:var(--shadow-sm);
    padding:clamp(20px,3vw,28px);
}
.ole-card h2{
    margin:0 0 16px; font-size:1.3rem; font-weight:800; letter-spacing:-.01em;
    display:flex; align-items:center; gap:10px;
}
.ole-card h2::before{
    content:""; width:6px; height:22px; border-radius:6px; background:var(--accent); flex:0 0 auto;
}
.ole-prose{ color:#2c2c33; font-size:1rem; line-height:1.75; word-wrap:break-word; }
.ole-prose p{ margin:0 0 1em; }
.ole-prose :last-child{ margin-bottom:0; }
.ole-prose img{ border-radius:var(--radius-sm); cursor:zoom-in; }

/* INFO (sidebar) */
.ole-info{ display:flex; flex-direction:column; gap:4px; }
@media (min-width:920px){ .ole-aside .ole-info{ position:sticky; top:24px; } }
.ole-info__row{
    display:flex; gap:14px; padding:15px 0; border-bottom:1px solid var(--border);
}
.ole-info__row:first-of-type{ padding-top:2px; }
/* No trailing divider when this row is the last thing in the card (e.g. past
   events where the action buttons are hidden). When the actions block follows,
   it is the last child, so the last row keeps its border as a separator. */
.ole-info__row:last-child{ border-bottom:0; }
.ole-info__ic{
    flex:0 0 auto; width:42px; height:42px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    background:var(--soft);
    background:color-mix(in srgb, var(--accent) 12%, transparent); color:var(--accent);
}
.ole-info__ic .ole-ico{ width:20px; height:20px; }
.ole-info__txt{ min-width:0; }
.ole-info__label{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:3px; }
.ole-info__val{ font-size:15px; font-weight:600; color:var(--ink); word-wrap:break-word; }
.ole-info__val a{ color:var(--accent); text-decoration:none; }
.ole-info__val a:hover{ text-decoration:underline; }
.ole-info__org{ display:flex; align-items:center; gap:10px; }
.ole-info__org img{ width:40px; height:40px; border-radius:999px; object-fit:cover; flex:0 0 auto; }
.ole-info__actions{ display:flex; flex-direction:column; gap:10px; margin-top:18px; }

/* ARTISTS — card tiles (match the event-card avatar look, premium variant) */
.ole-artists__grid{
    display:grid; gap:16px 14px;
    grid-template-columns:repeat(auto-fill, minmax(130px, 1fr));
}
.ole-artist{
    text-align:center; min-width:0;
    background:var(--card); border:1px solid var(--border); border-radius:18px;
    padding:18px 12px; box-shadow:var(--shadow-sm);
    transition:transform .15s ease, box-shadow .15s ease;
}
.ole-artist:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.ole-artist__avatar{
    width:100%; max-width:104px; aspect-ratio:1/1; margin:0 auto 12px;
    border-radius:999px; object-fit:cover; display:block;
    background:var(--soft); box-shadow:var(--shadow-sm);
    border:3px solid var(--card);
}
img.ole-artist__avatar{ cursor:zoom-in; }
.ole-artist__ph{
    display:flex; align-items:center; justify-content:center;
    font-size:2rem; font-weight:800; color:var(--accent);
    background:var(--soft);
    background:color-mix(in srgb, var(--accent) 14%, var(--soft));
}
.ole-artist__name{ font-size:14px; font-weight:700; line-height:1.25; color:var(--ink); word-wrap:break-word; }

/* MAP — non-interactive preview with a brand-orange overlay pin */
.ole-map{
    position:relative; border-radius:var(--radius-sm); overflow:hidden;
    border:1px solid var(--border); aspect-ratio:16/10; margin-bottom:16px;
}
.ole-map__frame{ width:100%; height:100%; border:0; display:block; pointer-events:none; }
.ole-map__pin{
    position:absolute; left:50%; top:50%; transform:translate(-50%,-100%);
    width:40px; height:40px; color:var(--accent); pointer-events:none;
    filter:drop-shadow(0 3px 4px rgba(0,0,0,.45));
}
.ole-map__pin svg{ width:100%; height:100%; display:block; }
.ole-map-addr{ color:var(--muted); font-size:15px; margin:0 0 16px; }

/* LIGHTBOX (built by olifest-single.js) */
body.ole-lb-open{ overflow:hidden; }
.ole-lb{
    position:fixed; inset:0; z-index:100000;
    display:flex; align-items:center; justify-content:center;
    background:rgba(8,8,12,.93); padding:24px;
}
.ole-lb[hidden]{ display:none; }
.ole-lb__stage{
    margin:0; max-width:94vw; max-height:90vh;
    display:flex; flex-direction:column; align-items:center; gap:12px;
}
.ole-lb__img{
    max-width:94vw; max-height:84vh; border-radius:12px;
    box-shadow:0 24px 70px rgba(0,0,0,.55); object-fit:contain; background:#111;
}
.ole-lb__cap{ color:#fff; font-size:14px; text-align:center; opacity:.85; max-width:80ch; }
.ole-lb__btn{
    position:absolute; background:rgba(255,255,255,.12); color:#fff; border:0;
    width:48px; height:48px; border-radius:999px; cursor:pointer; font-size:26px; line-height:1;
    display:flex; align-items:center; justify-content:center; transition:background .15s ease;
}
.ole-lb__btn:hover{ background:var(--accent,#ff6a0e); }
.ole-lb__close{ top:18px; right:18px; font-size:30px; }
.ole-lb__prev{ left:18px; top:50%; transform:translateY(-50%); }
.ole-lb__next{ right:18px; top:50%; transform:translateY(-50%); }
.ole-lb__count{ position:absolute; bottom:18px; left:50%; transform:translateX(-50%); color:#fff; font-size:13px; opacity:.8; }

@media (max-width:480px){
    .ole-ev{ padding:16px 14px 48px; }
    .ole-hero{ min-height:360px; }
    .ole-hero__cta .ole-btn{ flex:1 1 auto; }
    .ole-artists__grid{ grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); }
    .ole-lb__btn{ width:42px; height:42px; font-size:22px; }
    .ole-lb__close{ top:10px; right:10px; }
    .ole-lb__prev{ left:6px; }
    .ole-lb__next{ right:6px; }
}
