/* Scientific Programme – standalone stylesheet for wbascon2026/scientific_programme.php
   Defines CSS variables and base styles that match the wbascon2026 dark theme.
   No dependency on ../css/styles.css. */

:root {
    --accent-primary:   #06b6d4;   /* cyan */
    --accent-secondary: #a78bfa;   /* purple-light */
    --accent-tertiary:  #a78bfa;
    --text-primary:     #e2e8f0;
    --text-secondary:   #aebdd1;
    --text-muted:       #94a3b8;
    --warning:          #fbbf24;
    --card-border:      rgba(255, 255, 255, 0.10);
    --radius-sm:        8px;
    --bg-dark:          #070711;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Page container ───────────────────────────── */
.prog-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Top action bar ────────────────────────────── */
.prog-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* ── Header ────────────────────────────────────── */
.prog-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.prog-header img {
    width: 56px;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.25));
}

.prog-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 0;
}

.prog-header h1 span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Back link ─────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.75; }

/* ── Download button ───────────────────────────── */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent-primary);
    color: #0a0e17;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.download-btn:hover { opacity: 0.8; }

/* ── Day tabs ──────────────────────────────────── */
.day-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.day-tab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.day-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.day-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #0a0e17;
}

/* ── Day panels ────────────────────────────────── */
.day-panel { display: none; }
.day-panel.active { display: block; }

.day-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-secondary);
    margin: 0 0 4px;
}

.day-date {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* ── Session heading ───────────────────────────── */
.session-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid var(--accent-primary);
    padding: 8px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0 12px;
}

.session-heading .session-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.session-heading .session-topic {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Programme table ───────────────────────────── */
.prog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 8px;
}

.prog-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--card-border);
}

.prog-table td {
    padding: 9px 12px;
    vertical-align: top;
    border-bottom: 1px solid rgba(56, 92, 168, 0.1);
    color: var(--text-secondary);
    line-height: 1.45;
}

.prog-table tr:last-child td { border-bottom: none; }

.prog-table tr:hover td {
    background: rgba(56, 189, 248, 0.03);
}

.prog-table .time-col {
    white-space: nowrap;
    color: var(--warning);
    font-weight: 600;
    font-size: 12px;
    min-width: 110px;
}

.prog-table .mins-col {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    min-width: 40px;
}

.prog-table .topic-col {
    color: var(--text-primary);
    font-weight: 500;
}

.prog-table .person-col {
    font-size: 12px;
    color: var(--text-secondary);
}

.prog-table .implant-subhead td {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}

/* ── Special row types ─────────────────────────── */
.row-live td {
    background: rgba(167, 139, 250, 0.06) !important;
}

.row-live .topic-col {
    color: var(--accent-tertiary) !important;
    font-weight: 700 !important;
}

.row-special td {
    background: rgba(244, 114, 182, 0.06) !important;
}

.row-special .topic-col {
    color: var(--accent-secondary) !important;
    font-weight: 700 !important;
}

.row-break td {
    background: rgba(251, 191, 36, 0.05) !important;
    text-align: center;
}

.row-break .topic-col {
    color: var(--warning) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* ── Register CTA ──────────────────────────────── */
.register-cta {
    margin-top: 32px;
    text-align: center;
}

.register-cta a {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent-primary);
    color: #0a0e17;
    border-radius: 24px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.register-cta a:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ── Responsive ────────────────────────────────── */
/* ── Responsive – stacked card layout ─────────── */
@media (max-width: 700px) {

    /* Convert table to block layout */
    .prog-table,
    .prog-table tbody { display: block; width: 100%; }

    .prog-table thead { display: none; }

    .prog-table tr {
        display: block;
        border: 1px solid var(--card-border);
        border-radius: var(--radius-sm);
        padding: 10px 12px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.02);
    }

    .prog-table tr:hover { background: rgba(56, 189, 248, 0.04); }

    .row-live    { border-left: 3px solid var(--accent-tertiary)  !important; }
    .row-special { border-left: 3px solid var(--accent-secondary) !important; }
    .row-break   { border-left: 3px solid var(--warning)          !important; }

    .prog-table td {
        display: block;
        border: none;
        padding: 2px 0;
        font-size: 13px;
    }

    /* Show previously-hidden columns */
    .prog-table td.hide-sm { display: block !important; }

    /* Time – prominent header of the card */
    .prog-table td.time-col {
        display: inline-block;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 6px;
        min-width: unset;
    }

    /* Mins – shown beside time in brackets */
    .prog-table td.mins-col {
        display: inline-block !important;
        font-size: 11px;
        color: var(--text-muted);
        margin-bottom: 6px;
        margin-left: 4px;
    }
    .prog-table td.mins-col::before { content: "("; }
    .prog-table td.mins-col::after { content: " min)"; }

    /* Topic – main body */
    .prog-table td.topic-col {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 6px;
        white-space: normal;
    }

    /* Person columns – secondary info */
    .prog-table td.person-col {
        font-size: 12px;
        color: var(--text-muted);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 5px;
        margin-top: 4px;
        white-space: normal;
    }

    .prog-table td.person-col:empty { display: none !important; }

    /* Label person columns via nth-child */
    .prog-table td:nth-child(4).person-col::before {
        content: "Lecturer / Moderator";
        font-weight: 700;
        color: var(--text-secondary);
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-bottom: 2px;
    }

    .prog-table td:nth-child(5).person-col::before {
        content: "Panelists";
        font-weight: 700;
        color: var(--text-secondary);
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        margin-bottom: 2px;
    }

    /* Row-break: undo centred text on mobile */
    .row-break td { text-align: left; }
}
