/* ==========================================================================
   Programme Outline Widget — Stylesheet
   ========================================================================== */

/* ── Reset / Base ──────────────────────────────────────────────────────────── */
.pow-widget *,
.pow-widget *::before,
.pow-widget *::after {
    box-sizing: border-box;
}

.pow-widget {
    font-family: inherit;
    line-height: 1.5;
    position: relative;
}

/* ── Tab Navigation ────────────────────────────────────────────────────────── */
.pow-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 24px;
}

.pow-tabs-nav::-webkit-scrollbar {
    display: none;
}

.pow-tabs-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
}

.pow-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: 1px solid #bbb;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* ── Default metallic preset (silver inactive, gold active) ─────────────────── */
.pow-metallic-tabs .pow-tab-btn {
    background: linear-gradient(
        to bottom,
        #f8f8f8 0%,
        #dedede 45%,
        #c8c8c8 50%,
        #d8d8d8 55%,
        #f0f0f0 100%
    );
    color: #444;
    border-color: #aaa;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.pow-metallic-tabs .pow-tab-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.pow-metallic-tabs .pow-tab-btn:hover:not(.active) {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ebebeb 45%,
        #d8d8d8 50%,
        #e8e8e8 55%,
        #f8f8f8 100%
    );
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #222;
}

.pow-metallic-tabs .pow-tab-btn.active {
    background: linear-gradient(
        to bottom,
        #c89020 0%,
        #f0c040 30%,
        #e8b830 50%,
        #f0c040 70%,
        #c89020 100%
    );
    color: #fff;
    border-color: #a07010;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ── Notice / Content Block ─────────────────────────────────────────────────── */
.pow-notice-block {
    background-color: transparent;
    border-left: 4px solid transparent;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.pow-notice-block p:last-child {
    margin-bottom: 0;
}

/* ── Tab Panes ──────────────────────────────────────────────────────────────── */
.pow-tab-pane {
    display: none;
}

.pow-tab-pane.active {
    display: block;
}

.pow-no-sessions {
    padding: 20px;
    color: #999;
    text-align: center;
}

/* ── Time Rows ──────────────────────────────────────────────────────────────── */
.pow-time-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.pow-time-col {
    flex: 0 0 90px;
    min-width: 90px;
    padding-top: 18px;
}

.pow-time-label {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    line-height: 1.4;
}


.pow-sessions-col {
    flex: 1;
    min-width: 0;
}

/* ── Track Headers ──────────────────────────────────────────────────────────── */
.pow-track-headers {
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.pow-track-header {
    background: #2c3e50;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 12px;
    border-radius: 3px;
    text-align: center;
}

/* ── Parallel Sessions Grid ─────────────────────────────────────────────────── */
.pow-sessions-parallel {
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), 1fr);
    gap: 8px;
}

.pow-sessions-single {
    width: 100%;
}

/* ── Session Cards ──────────────────────────────────────────────────────────── */
.pow-session-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.pow-session-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pow-session-card.is-break {
    background: #f7f8fa;
    border-color: #ddd;
    border-style: dashed;
}

.pow-session-card.is-fullwidth {
    border-radius: 6px;
}

/* ── Session Title ──────────────────────────────────────────────────────────── */
.pow-session-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
}

/* ── Session Description ────────────────────────────────────────────────────── */
.pow-session-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ── Session Venue ──────────────────────────────────────────────────────────── */
.pow-session-venue {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.pow-venue-icon {
    flex-shrink: 0;
    color: #aaa;
}

/* ── Speaker Buttons ────────────────────────────────────────────────────────── */
.pow-session-speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.pow-speaker-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    text-align: left;
}

.pow-speaker-btn:hover {
    background: #f4f6ff;
    border-color: #b0b8e8;
    transform: translateY(-1px);
}

.pow-speaker-thumb {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pow-speaker-no-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
}

.pow-speaker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pow-speaker-name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.pow-speaker-designation {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

/* ── iCal Dropdown ──────────────────────────────────────────────────────────── */
.pow-ical-wrap {
    position: relative;
    display: inline-block;
    margin-top: auto;
    padding-top: 4px;
}

.pow-ical-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.pow-ical-btn:hover {
    background: #e4e4e4;
}

.pow-ical-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 9999;
    overflow: hidden;
}

.pow-ical-dropdown[hidden] {
    display: none;
}

.pow-ical-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    text-align: left;
    transition: background 0.1s ease;
}

.pow-ical-option:hover {
    background: #f5f5f5;
}

.pow-ical-option + .pow-ical-option {
    border-top: 1px solid #f0f0f0;
}

/* ── Speaker Modal ──────────────────────────────────────────────────────────── */
.pow-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pow-modal.active {
    display: flex;
}

.pow-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.pow-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 840px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    animation: powModalIn 0.25s ease;
}

@keyframes powModalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pow-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    padding: 0;
    line-height: 1;
}

.pow-modal-close:hover {
    background: rgba(0, 0, 0, 0.18);
}

.pow-modal-close-icon {
    font-size: 28px;
    line-height: 1;
    color: #333;
    font-weight: 300;
    font-family: Arial, sans-serif;
    display: block;
    margin-top: -2px;
}

.pow-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── Modal – Left panel ─────────────────────────────────────────────────────── */
.pow-modal-left {
    flex: 0 0 260px;
    width: 260px;
    background: #f5f6fa;
    padding: 40px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    overflow-y: auto;
}

.pow-modal-img-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pow-modal-speaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pow-modal-speaker-img[src=''] {
    display: none;
}

.pow-modal-speaker-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
}

.pow-modal-speaker-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.pow-modal-speaker-designation {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.pow-modal-speaker-company {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* ── Modal – Right panel ────────────────────────────────────────────────────── */
.pow-modal-right {
    flex: 1;
    padding: 40px 32px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pow-modal-speaker-bio {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
}

.pow-modal-speaker-bio p {
    margin: 0 0 1em;
}

.pow-modal-speaker-bio p:last-child {
    margin-bottom: 0;
}

.pow-modal-sessions-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin: 0 0 10px;
}

.pow-modal-speaker-sessions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pow-modal-speaker-sessions li {
    padding: 10px 14px;
    background: #f7f8fc;
    border-left: 3px solid #667eea;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.pow-modal-speaker-sessions li strong {
    display: block;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.pow-modal-speaker-sessions li span {
    color: #777;
    font-size: 12px;
}

/* ── Body lock when modal open ──────────────────────────────────────────────── */
body.pow-modal-open {
    overflow: hidden;
}

/* ── Divider between time rows ──────────────────────────────────────────────── */
.pow-time-row + .pow-time-row {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* ==========================================================================
   Responsive – Tablet  (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .pow-time-row {
        flex-direction: column;
        gap: 8px;
    }

    .pow-time-col {
        flex: none;
        padding-top: 0;
        padding-bottom: 4px;
    }

    .pow-time-label {
        font-size: 12px;
        color: #888;
    }


    /* Stack parallel tracks vertically on mobile */
    .pow-sessions-parallel {
        grid-template-columns: 1fr;
    }

    .pow-track-headers {
        grid-template-columns: 1fr;
    }

    .pow-track-header {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Modal becomes full-screen bottom sheet */
    .pow-modal {
        align-items: flex-end;
        padding: 0;
    }

    .pow-modal-dialog {
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        animation: powModalInMobile 0.3s ease;
    }

    @keyframes powModalInMobile {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .pow-modal-body {
        flex-direction: column;
    }

    .pow-modal-left {
        flex: none;
        width: 100%;
        flex-direction: row;
        text-align: left;
        padding: 20px;
        gap: 14px;
        align-items: center;
    }

    .pow-modal-img-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 0;
    }

    .pow-modal-speaker-initials {
        font-size: 28px;
    }

    .pow-modal-left-text {
        flex: 1;
        min-width: 0;
    }

    .pow-modal-speaker-name {
        font-size: 16px;
    }

    .pow-modal-right {
        padding: 20px;
    }

    .pow-speaker-btn {
        padding: 5px 10px 5px 5px;
        gap: 8px;
    }

    .pow-speaker-thumb,
    .pow-speaker-no-img {
        width: 40px;
        height: 40px;
    }

    .pow-ical-dropdown {
        bottom: auto;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
    }
}

/* ==========================================================================
   Responsive – Mobile  (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .pow-tabs-nav-inner {
        gap: 6px;
    }

    .pow-tab-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .pow-session-card {
        padding: 14px;
    }

    .pow-session-title {
        font-size: 14px;
    }

    .pow-session-speakers {
        flex-direction: column;
        gap: 8px;
    }

    .pow-speaker-btn {
        border-radius: 8px;
    }
}
