/* ============================================================
   AgileWoW — Live Session Pages
   Shared stylesheet for all /live-sessions/ pages.
   Deploy to: /assets/css/live-sessions.css
   ============================================================ */

:root {
    --aw-navy:        #0b345c;
    --aw-navy-light:  #174773;
    --aw-gold:        #d59b2d;
    --aw-ink:         #333;
    --aw-ink-soft:    #555;
    --aw-muted:       #666;
    --aw-border:      #eaeaea;
    --aw-rule:        #ddd;
    --aw-surface:     #f4f7f6;
    --aw-surface-alt: #eef2f7;
    --aw-linkedin:    #0077b5;
    --aw-youtube:     #e62117;
    --aw-radius:      12px;
    --aw-shadow:      0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ---------- Layout ---------- */
.session-page {
    max-width: 900px;
    margin: 50px auto 100px;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.session-header { text-align: center; margin-bottom: 40px; }

.session-title {
    color: var(--aw-navy);
    font-weight: 700;
    margin-bottom: 15px;
}

.session-meta {
    color: var(--aw-muted);
    margin-bottom: 20px;
}

.session-value {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

/* ---------- Video ---------- */
.video-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin-bottom: 50px;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--aw-radius);
    box-shadow: var(--aw-shadow);
}

/* ---------- Question index ---------- */
.session-spine {
    background: var(--aw-surface);
    padding: 30px;
    border-radius: var(--aw-radius);
    border-left: 5px solid var(--aw-gold);
    margin-bottom: 50px;
}

.spine-title {
    margin-top: 0;
    color: var(--aw-navy);
    font-size: 24px;
}

.question-index {
    line-height: 2;
    margin-bottom: 0;
    font-size: 16px;
}

.question-index a {
    color: var(--aw-ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.question-index a:hover,
.question-index a:focus-visible {
    color: var(--aw-navy);
    border-bottom-color: var(--aw-gold);
}

/* ---------- Body copy ---------- */
.content-body {
    line-height: 1.8;
    font-size: 17px;
    color: var(--aw-ink);
}

.content-body p { margin-bottom: 30px; }

.section-title {
    color: var(--aw-navy);
    margin-bottom: 25px;
}

.answer-title {
    color: #222;
    margin-top: 30px;
    font-size: 20px;
    font-weight: 700;
}

.session-divider {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid var(--aw-rule);
}

/* ---------- Pull quotes ---------- */
.pull-quote {
    border-left: 4px solid var(--aw-navy);
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    font-size: 19px;
    color: var(--aw-ink-soft);
}

.pull-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-style: normal;
    color: var(--aw-muted);
}

.pull-quote cite::before { content: "— "; }

/* ---------- Inline training reference ---------- */
.training-inline {
    background: var(--aw-surface-alt);
    padding: 15px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 30px;
}

.training-inline a {
    color: var(--aw-navy);
    text-decoration: underline;
}

/* ---------- Transcript ---------- */
.transcript {
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    padding: 20px 25px;
    margin-bottom: 40px;
    background: #fff;
}

.transcript summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--aw-navy);
    font-size: 17px;
}

.transcript-body {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--aw-ink-soft);
}

/* ---------- Speaker bio ---------- */
.speaker-bio {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    padding: 25px;
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.speaker-bio:last-of-type { margin-bottom: 40px; }

.speaker-photo {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--aw-border);
}

.speaker-name {
    margin: 0 0 8px;
    color: var(--aw-navy);
    font-size: 22px;
    font-weight: 700;
}

.speaker-text {
    margin: 0 0 15px;
    color: var(--aw-ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn-linkedin,
.btn-cta,
.btn-secondary,
.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
}

.btn-linkedin {
    background: var(--aw-linkedin);
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-cta {
    background: var(--aw-gold);
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
}

.btn-secondary {
    background: var(--aw-surface);
    color: var(--aw-navy);
    padding: 12px 24px;
    font-size: 15px;
    border: 1px solid #dcdcdc;
}

.btn-youtube {
    background: var(--aw-youtube);
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(230, 33, 23, 0.2);
}

/* ---------- Training CTA ---------- */
.training-cta {
    background: linear-gradient(135deg, var(--aw-navy) 0%, var(--aw-navy-light) 100%);
    color: #fff;
    padding: 40px;
    border-radius: var(--aw-radius);
    text-align: center;
    margin-bottom: 40px;
}

.cta-title {
    color: #fff;
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
}

.cta-text {
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* ---------- Navigation ---------- */
.session-nav {
    border-top: 1px solid var(--aw-rule);
    padding-top: 30px;
    margin-top: 40px;
}

.nav-title {
    color: var(--aw-navy);
    font-size: 20px;
    margin-bottom: 15px;
}

.related-list {
    line-height: 1.8;
    margin-bottom: 25px;
    padding-left: 20px;
}

.related-list a {
    color: var(--aw-ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.related-list a:hover,
.related-list a:focus-visible {
    color: var(--aw-navy);
    border-bottom-color: var(--aw-gold);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* ---------- Accessibility ---------- */
:where(.session-page) a:focus-visible {
    outline: 3px solid var(--aw-gold);
    outline-offset: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .session-page   { margin: 30px auto 60px; }
    .session-spine  { padding: 20px; }
    .training-cta   { padding: 28px 20px; }
    .content-body   { font-size: 16px; }
    .speaker-bio    { flex-direction: column; text-align: center; }
    .nav-buttons    { flex-direction: column; align-items: stretch; }
    .nav-buttons a  { justify-content: center; }
}

/* ============================================================
   LIVE SESSIONS HUB (/home/live_sessions)
   ============================================================ */

.hub-page {
    max-width: 1100px;
    margin: 50px auto 100px;
    padding: 0 20px;
}

/* ---------- Hub header ---------- */
.hub-header { text-align: center; margin-bottom: 50px; }

.hub-title {
    color: var(--aw-navy);
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 15px;
}

.hub-intro {
    color: var(--aw-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hub-section-title {
    color: var(--aw-navy);
    font-size: 22px;
    margin-bottom: 25px;
}

.hub-empty {
    color: var(--aw-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

/* ---------- Grid ---------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ---------- Card ---------- */
.hub-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--aw-border);
    border-radius: var(--aw-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover,
.hub-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .hub-card { transition: none; }
    .hub-card:hover,
    .hub-card:focus-within { transform: none; }
}

/* ---------- Card media ---------- */
.hub-card-media {
    display: block;
    position: relative;
    line-height: 0;
}

.hub-card-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--aw-surface);
}

.hub-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 24px;
    line-height: 60px;
    text-align: center;
    text-indent: 5px;
}

/* ---------- Card body ---------- */
.hub-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hub-card-category {
    color: var(--aw-gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hub-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
}

.hub-card-title a {
    color: var(--aw-navy);
    font-weight: 700;
    text-decoration: none;
}

.hub-card-title a:hover,
.hub-card-title a:focus-visible { text-decoration: underline; }

.hub-card-meta {
    color: var(--aw-muted);
    font-size: 14px;
    margin: 0 0 12px;
}

.hub-card-desc {
    color: var(--aw-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.hub-card-cta {
    margin-top: auto;
    display: block;
    background: var(--aw-surface);
    color: var(--aw-navy);
    text-align: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hub-card-cta:hover,
.hub-card-cta:focus-visible {
    background: var(--aw-navy);
    color: #fff;
    border-color: var(--aw-navy);
}

/* ---------- Upcoming placeholder ---------- */
.hub-card-upcoming {
    border: 2px dashed var(--aw-border);
    box-shadow: none;
    background: #fafafa;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    padding: 30px;
}

.hub-card-upcoming:hover,
.hub-card-upcoming:focus-within {
    transform: none;
    box-shadow: none;
}

.hub-upcoming-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--aw-border);
    color: #999;
    font-size: 24px;
    line-height: 60px;
    text-align: center;
    margin-bottom: 20px;
}

.hub-upcoming-title {
    color: #777;
    font-size: 20px;
    margin: 0 0 10px;
}

.hub-upcoming-text {
    color: #999;
    font-size: 15px;
    margin: 0;
}

.hub-upcoming-link {
    margin-top: 20px;
    color: var(--aw-gold);
    font-weight: 700;
    text-decoration: none;
}

.hub-upcoming-link:hover,
.hub-upcoming-link:focus-visible { text-decoration: underline; }

:where(.hub-page) a:focus-visible {
    outline: 3px solid var(--aw-gold);
    outline-offset: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .hub-page  { margin: 30px auto 60px; }
    .hub-title { font-size: 28px; }
    .hub-intro { font-size: 16px; }
    .hub-grid  { grid-template-columns: 1fr; gap: 20px; }
    .hub-card-upcoming { min-height: 260px; }
}
