/* ============================================================
   Conference App — Mobile-first standalone view
   ============================================================ */

/* Reset some site-theme styles that may leak in */
html.conf-app-html, body.conf-app-body {
    margin: 0;
    padding: 0;
    background: #f5f6f8;
    color: #1f2330;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body.conf-app-body { min-height: 100vh; min-height: 100dvh; }
body.conf-app-body * { box-sizing: border-box; }

/* Hide site chrome that some plugins inject globally */
body.conf-app-body #wpadminbar { display: none !important; }
html.conf-app-html { margin-top: 0 !important; }

.conf-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── Header ─────────────────────────────────────────────────── */
.conf-app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    height: calc(56px + env(safe-area-inset-top));
    background: #080c18;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}
.conf-app-header-logo {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
.conf-app-header-title {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}
.conf-app-header-tab-label {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* ── Main content area ──────────────────────────────────────── */
.conf-app-main {
    flex: 1;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.conf-app-tab { display: none; }
.conf-app-tab.is-active { display: block; }

/* ── Section primitives ─────────────────────────────────────── */
.conf-app-section {
    padding: 24px 16px;
}
.conf-app-section--no-pad-top { padding-top: 16px; }
.conf-app-section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #1f2330;
    letter-spacing: -0.01em;
}
.conf-app-prose {
    font-size: 15px;
    line-height: 1.6;
    color: #3a4053;
}
.conf-app-prose p { margin: 0 0 12px; }
.conf-app-prose a { color: var(--conf-app-primary); }

.conf-app-empty {
    text-align: center;
    padding: 40px 24px;
    color: #6b7385;
}
.conf-app-empty i {
    font-size: 36px;
    color: #c8ccd6;
    margin-bottom: 12px;
}
.conf-app-empty p { margin: 0 0 4px; font-size: 15px; }
.conf-app-empty-sub { font-size: 13px; color: #9ba2b3; }

/* ── Hero (Home tab) ────────────────────────────────────────── */
.conf-app-hero {
    position: relative;
    min-height: 280px;
    background-color: #1f2330;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 32px 20px 28px;
    display: flex;
    align-items: flex-end;
}
.conf-app-hero--logo {
    min-height: 360px;
    align-items: center;
    text-align: center;
    padding: 40px 20px 32px;
}
.conf-app-hero-inner { width: 100%; }
.conf-app-hero--logo .conf-app-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.conf-app-hero--logo .conf-app-meta { align-items: center; }
.conf-app-hero-logo {
    display: block;
    max-width: 78%;
    max-height: 180px;
    width: auto;
    height: auto;
    margin: 0 auto 14px;
    object-fit: contain;
}
.conf-app-hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.conf-app-hero-tagline {
    margin: 0 0 16px;
    font-size: 15px;
    opacity: 0.9;
}
.conf-app-meta {
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.conf-app-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.92;
}
.conf-app-meta-row i {
    width: 16px;
    text-align: center;
    color: var(--conf-app-primary);
}

/* ── CTA buttons ────────────────────────────────────────────── */
.conf-app-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--conf-app-primary);
    color: #1f2330;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
}
.conf-app-cta:active { transform: scale(0.97); filter: brightness(0.95); }
.conf-app-cta--secondary {
    background: transparent;
    color: var(--conf-app-primary);
    border: 1.5px solid var(--conf-app-primary);
    margin-top: 12px;
}

/* ── Day tabs (Schedule) ────────────────────────────────────── */
.conf-app-day-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.conf-app-day-tabs::-webkit-scrollbar { display: none; }
.conf-app-day-tab {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #3a4053;
    cursor: pointer;
    white-space: nowrap;
}
.conf-app-day-tab.is-active {
    background: var(--conf-app-primary);
    border-color: var(--conf-app-primary);
    color: #1f2330;
}
.conf-app-day-panel { display: none; }
.conf-app-day-panel.is-active { display: block; }

.conf-app-session-list { display: flex; flex-direction: column; gap: 10px; }

/* The shared session-row partial gets a card treatment inside the app */
.conf-app .conf-session-row {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    padding-right: 50px;
    border: 1px solid #e7e9ee;
    display: block;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.conf-app .conf-session-row.is-saved {
    border-color: var(--conf-app-primary);
    box-shadow: 0 0 0 1px var(--conf-app-primary) inset;
}

/* Save button (bookmark) — top-right of each session row */
.conf-session-save {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #c8ccd6;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform .12s ease, background .12s ease, color .12s ease;
}
.conf-session-save:hover { background: #f5f6f8; color: #6b7385; }
.conf-session-save:active { transform: scale(0.88); }
.conf-session-save-filled { display: none; color: var(--conf-app-primary); }
.conf-session-row.is-saved .conf-session-save-empty { display: none; }
.conf-session-row.is-saved .conf-session-save-filled { display: inline; }
.conf-session-row.is-saved .conf-session-save { color: var(--conf-app-primary); }

/* My Schedule view filter — hide non-saved rows when active */
.conf-app[data-schedule-view="my"] .conf-session-row:not(.is-saved) { display: none; }

/* Per-day "no saved" state — JS toggles its hidden attribute */
.conf-app-day-empty {
    text-align: center;
    padding: 28px 16px;
    color: #6b7385;
}
.conf-app-day-empty i {
    font-size: 28px;
    color: #c8ccd6;
    margin-bottom: 8px;
}
.conf-app-day-empty p { margin: 0; font-size: 14px; }

/* Global "nothing saved yet" empty state — shown when My Schedule is empty */
.conf-app-myschedule-empty {
    text-align: center;
    padding: 40px 24px;
    color: #6b7385;
    background: #fff;
    border: 1px dashed #d3d6dd;
    border-radius: 16px;
    margin-top: 12px;
}
.conf-app-myschedule-empty i {
    font-size: 36px;
    color: #c8ccd6;
    margin-bottom: 12px;
}
.conf-app-myschedule-empty p { margin: 0 0 4px; font-size: 15px; }

/* Schedule view pills (All / My Schedule) */
.conf-app-schedule-views {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    background: #ebedf2;
    padding: 4px;
    border-radius: 999px;
}
.conf-app-schedule-view {
    flex: 1;
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #3a4053;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .12s ease, color .12s ease;
}
.conf-app-schedule-view.is-active {
    background: #fff;
    color: #1f2330;
    box-shadow: 0 1px 3px rgba(20,30,55,0.08);
}
.conf-app-schedule-view i { font-size: 12px; color: var(--conf-app-primary); }
.conf-app-schedule-view-count {
    font-size: 12px;
    color: #6b7385;
    font-weight: 600;
}
.conf-app-schedule-view.is-active .conf-app-schedule-view-count { color: var(--conf-app-primary); }
.conf-app .conf-session-time {
    font-size: 13px;
    color: #6b7385;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.conf-app .conf-session-time-range { font-weight: 700; color: #1f2330; }
.conf-app .conf-session-room { color: #6b7385; }
.conf-app .conf-session-room i { color: var(--conf-app-primary); }
.conf-app .conf-session-header { margin-bottom: 8px; }
.conf-app .conf-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.06);
    color: #3a4053;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.conf-app .conf-session-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #1f2330;
}
.conf-app .conf-session-description {
    font-size: 14px;
    color: #4a5066;
    margin: 8px 0 0;
    line-height: 1.5;
}
.conf-app .conf-session-speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.conf-app .conf-session-speaker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f6f8;
    border: 0;
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    font: inherit;
}
.conf-app .conf-session-speaker-pill img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.conf-app .conf-session-speaker-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.conf-app .conf-session-speaker-name { font-size: 12px; font-weight: 700; color: #1f2330; }
.conf-app .conf-session-speaker-org { font-size: 11px; color: #6b7385; }
.conf-app .conf-session-speaker-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #e7e9ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7385;
}

/* ── Speakers ───────────────────────────────────────────────── */
.conf-app-speakers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.conf-app-speaker-card {
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #1f2330;
    transition: transform .12s ease;
}
.conf-app-speaker-card:active { transform: scale(0.98); }

.conf-app-speaker-card-photo-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #e7e9ee 0%, #d3d6dd 100%);
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(20,30,55,0.06), 0 4px 14px rgba(20,30,55,0.06);
}
.conf-app-speaker-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.conf-app-speaker-card-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ba2b3;
    font-size: 36px;
}
/* Subtle gradient overlay at the bottom of the photo */
.conf-app-speaker-card-photo-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
}

.conf-app-speaker-card-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: #1f2330;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.conf-app-speaker-card-title {
    display: block;
    font-size: 12px;
    color: #3a4053;
    line-height: 1.3;
    font-weight: 600;
}
.conf-app-speaker-card-org {
    display: block;
    font-size: 12px;
    color: #6b7385;
    line-height: 1.3;
}

/* ── Cards (More tab) ──────────────────────────────────────── */
.conf-app-card {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}
.conf-app-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.conf-app-card-body { padding: 16px; }
.conf-app-card-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--conf-app-primary);
    margin-bottom: 6px;
}
.conf-app-card-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
}
.conf-app-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7385;
    margin: 0 0 10px;
}
.conf-app-card--cta {
    text-align: center;
}
.conf-app-card--cta .conf-app-cta { margin-top: 4px; }

/* ── Bottom tab bar ────────────────────────────────────────── */
.conf-app-tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid #e7e9ee;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}
.conf-app-tabbtn {
    background: transparent;
    border: 0;
    padding: 10px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    color: #6b7385;
    font: inherit;
    transition: color .12s ease, transform .12s ease;
}
.conf-app-tabbtn:active { transform: scale(0.94); }
.conf-app-tabbtn i { font-size: 20px; }
.conf-app-tabbtn-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.conf-app-tabbtn.is-active { color: var(--conf-app-primary); }

/* ── Info / More tab: Flexible Content sections ───────────── */
.conf-app-info-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.conf-app-info-stack--more { margin-top: 16px; }
.conf-app-section-subtitle {
    font-size: 16px;
    font-weight: 800;
    margin: 24px 0 10px;
    color: #1f2330;
    letter-spacing: -0.01em;
}

/* Callout */
.conf-app-callout {
    display: flex;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid;
    align-items: flex-start;
}
.conf-app-callout-icon { font-size: 20px; line-height: 1.4; flex-shrink: 0; }
.conf-app-callout-body { flex: 1; min-width: 0; }
.conf-app-callout-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}
.conf-app-callout .conf-app-prose { font-size: 14px; }
.conf-app-callout .conf-app-prose p:last-child { margin-bottom: 0; }

.conf-app-callout--info {
    background: #eef4ff; border-color: #c8dcff; color: #1c3d80;
}
.conf-app-callout--info .conf-app-callout-icon { color: #2b6cb0; }
.conf-app-callout--tip {
    background: #f3eefe; border-color: #d8c8f5; color: #4a2a92;
}
.conf-app-callout--tip .conf-app-callout-icon { color: #7c4dff; }
.conf-app-callout--warning {
    background: #fff4e6; border-color: #ffd7a8; color: #7a3e00;
}
.conf-app-callout--warning .conf-app-callout-icon { color: #d97706; }
.conf-app-callout--success {
    background: #e8f7ee; border-color: #b8e3c7; color: #1f5d36;
}
.conf-app-callout--success .conf-app-callout-icon { color: #16a34a; }

/* Directions */
.conf-app-directions {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    padding: 14px;
}
.conf-app-directions .conf-app-section-subtitle { margin-top: 0; }
.conf-app-directions-map {
    margin: 0 -14px 12px;
    aspect-ratio: 16 / 11;
    background: #e7e9ee;
    overflow: hidden;
}
.conf-app-directions-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.conf-app-directions-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #3a4053;
    margin-bottom: 12px;
    line-height: 1.4;
}
.conf-app-directions-address i { color: var(--conf-app-primary); margin-top: 3px; }
.conf-app-directions-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.conf-app-directions-actions .conf-app-cta {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: 14px;
}
.conf-app-directions-notes {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f1f4;
    font-size: 14px;
}

/* Map (image) */
.conf-app-mapimg {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    padding: 14px;
}
.conf-app-mapimg .conf-app-section-subtitle { margin: 0 0 10px; }
.conf-app-mapimg-link {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}
.conf-app-mapimg-link img { width: 100%; height: auto; display: block; }
.conf-app-mapimg-zoom {
    position: absolute;
    top: 10px; right: 10px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #1f2330;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.conf-app-mapimg-caption {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7385;
}

/* Rich Text */
.conf-app-richtext {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    padding: 16px;
}
.conf-app-richtext .conf-app-section-subtitle { margin: 0 0 8px; }

/* Link Card */
.conf-app-linkcard {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: #1f2330;
    transition: transform .12s ease, background .12s ease;
}
.conf-app-linkcard:active { transform: scale(0.98); background: #fafbfc; }
.conf-app-linkcard-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
    color: var(--conf-app-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.conf-app-linkcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conf-app-linkcard-title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.conf-app-linkcard-desc { font-size: 13px; color: #6b7385; line-height: 1.35; }
.conf-app-linkcard-chev { color: #c8ccd6; font-size: 12px; flex-shrink: 0; }

/* ── More tab: Sponsors ────────────────────────────────────── */
.conf-app-sponsors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.conf-app-sponsor {
    aspect-ratio: 1 / 1;
    background: #1f2330;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.conf-app-sponsor img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ── Larger viewports — keep mobile-app feel but center ──── */
@media (min-width: 600px) {
    .conf-app {
        max-width: 480px;
        margin: 0 auto;
        background: #fff;
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
        min-height: 100vh;
    }
    .conf-app-tabbar {
        max-width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    body.conf-app-body { background: #1f2330; }
}
