/* "Festival" visual layer — bold, colourful event-app look on top of styles.css.
   Brand colour comes from admin (--brand); gradients and accents derive from it. */
:root {
  --font-head: "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, sans-serif;
  --hot: #ec4899; --sun: #f97316; --mint: #10b981; --sky: #0ea5e9;
  --grad: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 40%, var(--hot)) 55%, var(--sun) 110%);
  --grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, transparent), color-mix(in srgb, var(--hot) 10%, transparent));
  --bg: #f4f2fb; --r-lg: 22px; --r-md: 16px;
  --shadow: 0 2px 4px rgba(30, 20, 60, .04), 0 10px 30px rgba(30, 20, 60, .07);
  --glow: 0 10px 30px color-mix(in srgb, var(--brand) 35%, transparent);
}
:root[data-theme="dark"] { --bg: #0d0b1a; --surface: #17142a; --surface-2: #221e3a; --line: #2c2748; }
body { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, .hero2 h2, .page, .section-title h2 { font-family: var(--font-head); letter-spacing: -.02em; }
.card { border: 0; }
.content { padding-top: 10px; }

/* ---------- top bar ---------- */
.topbar { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 0; }
.topbar h1 { font-size: 18px; font-weight: 800; }
.topbar .icon-btn { background: var(--surface-2); border-radius: 14px; width: 38px; height: 38px; color: var(--ink); }
body.on-hero .topbar { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; color: #fff; }
body.on-hero .topbar .icon-btn { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); }
body.on-hero .topbar h1 { opacity: 0; }
body.on-hero .main { position: relative; }
body.on-hero .content { padding-top: 0; }

/* ---------- floating tab bar ---------- */
.tabbar { left: 12px; right: 12px; bottom: 12px; height: 66px; border-radius: 24px; border: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.8) blur(18px); box-shadow: 0 12px 40px rgba(30,20,60,.18); padding: 6px; gap: 2px; }
.tabbar a { border-radius: 18px; color: var(--ink-3); transition: all .2s; }
.tabbar a.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.content { padding-bottom: calc(var(--tab-h) + 44px); }
@media (min-width: 600px) { .tabbar { left: 50%; width: calc(var(--app-w) - 24px); transform: translateX(-50%); right: auto; } }

/* ---------- hero (home) ---------- */
.hero2 { position: relative; margin: 0 -14px; min-height: 430px; color: #fff; overflow: hidden; border-radius: 0 0 34px 34px; background: var(--grad); }
.hero2 .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,5,30,.25) 0%, rgba(10,5,30,.15) 35%, color-mix(in srgb, var(--brand) 70%, #0a0520) 100%); }
.hero2 .in { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 24px; z-index: 1; }
.hero2 .hello { font-size: 14px; font-weight: 600; opacity: .9; }
.hero2 h2 { font-size: 34px; line-height: 1.02; margin: 6px 0 12px; font-weight: 800; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero2 .chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.glass { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); border-radius: 18px; padding: 10px 12px; }
.stats b { display: block; font: 800 22px/1.1 var(--font-head); }
.stats span { font-size: 11.5px; opacity: .85; font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; }
.quick .q { width: 60px; height: 60px; border-radius: 22px; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 22px rgba(30,20,60,.15); }
.q1 { background: linear-gradient(135deg, var(--brand), var(--hot)); } .q2 { background: linear-gradient(135deg, var(--sun), #facc15); }
.q3 { background: linear-gradient(135deg, var(--hot), #a855f7); } .q4 { background: linear-gradient(135deg, var(--mint), var(--sky)); }

.section-title { margin: 26px 2px 12px; }
.section-title h2 { font-size: 20px; font-weight: 800; }
.section-title a { color: var(--brand); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 2px 14px 10px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* live cards */
.live-card { width: 290px; border-radius: 24px; padding: 16px; color: #fff; background: var(--grad); box-shadow: var(--glow); position: relative; overflow: hidden; display: block; }
.live-card::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.12); right: -60px; top: -70px; }
.live-card .top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; }
.live-card h3 { font-size: 18px; line-height: 1.22; margin: 12px 0 10px; min-height: 66px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.live-card .bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; } .live-card .bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.live-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; opacity: .92; }
.live-card.alt { background: linear-gradient(135deg, #111827, color-mix(in srgb, var(--brand) 60%, #111827)); }

/* faces */
.face { width: 108px; text-align: center; color: var(--ink); }
.face .ph { width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 32px; overflow: hidden; background: var(--grad); padding: 3px; }
.face .ph img, .face .ph span { width: 100%; height: 100%; border-radius: 29px; object-fit: cover; display: grid; place-items: center; background: var(--surface); color: var(--brand); font: 800 24px var(--font-head); }
.face b { font-size: 12.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* explore tiles */
.tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border: 0; border-radius: 22px; min-height: 112px; padding: 14px 8px 12px; background: var(--tile, var(--surface)); color: var(--tile-ink, var(--ink)); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -24px; bottom: -26px; background: rgba(255,255,255,.18); }
.tile .ic { width: 50px; height: 50px; border-radius: 18px; background: #fff; box-shadow: 0 6px 14px rgba(30,20,60,.12); }
.tile .ic img { width: 30px; height: 30px; }
.tile .lock { color: inherit; opacity: .75; }

/* sponsors marquee */
.marquee { overflow: hidden; margin: 0 -14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: slide 40s linear infinite; padding: 4px 0; }
.marquee a { width: 128px; height: 74px; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 10px; box-shadow: var(--shadow); }
.marquee img { max-height: 54px; object-fit: contain; }
@keyframes slide { to { transform: translateX(-50%); } }

/* venue card */
.venue-card { position: relative; display: block; border-radius: 24px; overflow: hidden; min-height: 170px; color: #fff; background: #222; box-shadow: var(--shadow); }
.venue-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75)); }
.venue-card .in { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.venue-card b { font: 800 17px/1.2 var(--font-head); display: block; }

/* ---------- agenda ---------- */
.agenda-head { margin: 0 -14px; padding: 16px 14px 14px; background: var(--grad); color: #fff; border-radius: 0 0 30px 30px; box-shadow: var(--glow); }
.agenda-head h2 { color: #fff; margin: 0 0 12px; font-size: 26px; }
.agenda-head .search { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.agenda-head .search input { color: #fff; } .agenda-head .search input::placeholder { color: rgba(255,255,255,.75); }
.agenda-head .daytab { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 18px; }
.agenda-head .daytab small { color: rgba(255,255,255,.8); }
.agenda-head .daytab.on { background: #fff; color: var(--brand); border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.agenda-head .daytab.on small { color: var(--brand); }
.chip { border: 0; background: var(--surface); box-shadow: var(--shadow); height: 36px; }
.chip.on { background: var(--ink); color: var(--surface); }

.timeline { position: relative; margin-top: 8px; }
.timeslot { grid-template-columns: 50px minmax(0, 1fr); position: relative; }
.timeslot .t { font: 800 14px var(--font-head); color: var(--ink); padding-top: 16px; }
.timeslot::before { content: ""; position: absolute; left: 59px; top: 0; bottom: -10px; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.timeslot > div:last-child { padding-left: 14px; position: relative; }
.timeslot > div:last-child::before { content: ""; position: absolute; left: -4px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }

.sess { border: 0; border-radius: 22px; box-shadow: var(--shadow); padding: 14px 14px 14px 16px; }
.sess::before { width: 0; }
.sess .meta { font-size: 12.5px; }
.sess h3 { font-size: 16px; margin: 8px 0 8px; font-weight: 750; }
.hall-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; background: color-mix(in srgb, var(--sess-c, var(--brand)) 14%, transparent); color: color-mix(in srgb, var(--sess-c, var(--brand)) 80%, #000); }
:root[data-theme="dark"] .hall-chip { color: color-mix(in srgb, var(--sess-c, var(--brand)) 70%, #fff); }
.hall-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sess-c, var(--brand)); }
.dur { font-weight: 700; color: var(--ink-2); }
.stackrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.stack-av { display: flex; } .stack-av .avatar { width: 28px; height: 28px; font-size: 10.5px; border: 2px solid var(--surface); margin-left: -9px; } .stack-av .avatar:first-child { margin-left: 0; }
.sess .lbar { height: 5px; border-radius: 99px; background: var(--surface-2); margin-top: 10px; overflow: hidden; } .sess .lbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #22c55e); }
.sess.live { box-shadow: 0 0 0 2px #22c55e, var(--shadow); }
.sess .save { top: 10px; right: 10px; background: var(--surface-2); border-radius: 14px; width: 36px; height: 36px; }

/* ---------- detail ---------- */
.detail-hero { margin: -14px -14px 0; padding: 20px 18px 26px; color: #fff; background: var(--grad); border-radius: 0 0 30px 30px; position: relative; overflow: hidden; }
.detail-hero::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.1); right: -80px; top: -90px; }
.detail-hero h2 { color: #fff; font-size: 24px; line-height: 1.18; margin: 10px 0 12px; position: relative; }
.detail-hero .glass { position: relative; }
.actions { margin-top: -22px; position: relative; z-index: 2; padding: 0 4px; }
.actions .btn { background: var(--surface); box-shadow: var(--shadow); border-radius: 18px; font-weight: 700; }
.actions .btn.on { background: var(--grad); color: #fff; }
.role-group h4 { color: var(--brand); }
.person-row { background: var(--surface); box-shadow: var(--shadow); margin-bottom: 8px; border-radius: 18px; }

/* ---------- people as portrait cards ---------- */
.people-grid.portraits { grid-template-columns: 1fr 1fr; gap: 12px; }
.portrait { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .ini { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px var(--font-head); color: rgba(255,255,255,.9); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,5,30,.85)); }
.portrait .in { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; }
.portrait b { display: block; font: 800 14.5px/1.2 var(--font-head); }
.portrait small { display: block; font-size: 11.5px; opacity: .85; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.portrait .cnt { position: absolute; top: 10px; left: 10px; z-index: 1; }
.pcard { border: 0; box-shadow: var(--shadow); border-radius: 20px; }
.lcard, .list-row { border: 0; box-shadow: var(--shadow); border-radius: 20px; }
.list-row + .list-row { margin-top: 10px; }
.btn.primary { background: var(--grad); box-shadow: var(--glow); }
.daytab.on { background: var(--grad); border: 0; }
.page { font-size: 26px; font-weight: 800; }
/* hero: artwork on top, fades into brand colour where the text sits */
.hero2 { min-height: 470px; background: color-mix(in srgb, var(--brand) 72%, #0a0520); }
.hero2 .bgimg { height: 62%; object-position: center top; }
.hero2::after { background: linear-gradient(180deg, rgba(10,5,30,.30) 0%, rgba(10,5,30,0) 22%, transparent 34%, color-mix(in srgb, var(--brand) 72%, #0a0520) 62%); }
.hero2 .bgimg { object-position: center 42%; }
.person-hero { margin: -10px -14px 0; padding: 26px 18px 22px; text-align: center; color: #fff; background: var(--grad); border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.person-hero::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.10); left: -90px; top: -110px; }
.person-hero .avatar.lg { width: 116px; height: 116px; border-radius: 38px; border: 4px solid rgba(255,255,255,.7); margin: 0 auto; font-size: 34px; position: relative; }
.person-hero h2 { color: #fff; font-size: 24px; margin: 12px 0 4px; position: relative; }
.person-hero .muted, .person-hero .small, .person-hero .faint { color: rgba(255,255,255,.88); position: relative; }
.person-hero .btn.ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.person-hero .btn.primary { background: #fff; color: var(--brand); box-shadow: none; }
.person-hero .avatar { background: rgba(255,255,255,.18); color: #fff; }
.kpis .kpi:first-child { background: var(--grad); color: #fff; } .kpis .kpi:first-child span { color: rgba(255,255,255,.85); }
/* phone-like: no desktop scrollbars (scrolling still works) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { width: 0; height: 0; display: none; }
* { scrollbar-width: none; }
/* demo controls never cover the app inside the preview */
body.framed .devbar { display: none; }
/* standalone: small round button at the top-right corner, away from content and tabs */
.devbar { top: 70px; bottom: auto; }
.devbar > button { width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 0; opacity: .55; }
.devbar > button::after { content: "⚙"; font-size: 16px; }
.devbar > button:hover { opacity: 1; }
.devpanel { top: 42px; bottom: auto; }
/* swipe rows keep the page margin on both sides when snapping */
.hscroll, .banner-strip { scroll-padding-inline: 14px; padding-left: 14px; padding-right: 14px; }
.hscroll::after { content: ""; flex: 0 0 2px; }
.banner-strip { margin: 0 -14px; }
/* no black click outline on cards; keep a soft ring for keyboard users */
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
