/* Talks page - extras on top of the main site stylesheet */

body {
    background-color: var(--white);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

#page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

#page-hero h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Keep the alternating section backgrounds aligned now that the
   upcoming section may be hidden */
section:nth-child(even) {
    background-color: transparent;
}

#upcoming,
#appearances {
    background-color: var(--light-bg);
}

.upcoming-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    gap: var(--spacing-md);
    justify-content: center;
}

.upcoming-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.upcoming-date {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.upcoming-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.upcoming-card h3 a {
    color: inherit;
    text-decoration: none;
}

.upcoming-card h3 a:hover {
    color: var(--secondary-color);
}

.event-location {
    color: var(--gray);
}


/* Talk cards on the index link through to the talk page */
.talk-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.talk-card:hover h3 {
    color: var(--secondary-color);
}

.talk-meta {
    color: var(--secondary-color) !important;
    font-size: 0.9rem;
    font-weight: 600;
    flex-grow: 0 !important;
}

.event-talks {
    list-style: none;
    margin-top: 0.5rem;
}

.event-talks:empty {
    display: none;
}

.event-talks li {
    padding-left: 1.25rem;
    position: relative;
}

.event-talks li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.event-talks a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.event-talks a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Single talk page */
.hero-kicker {
    margin-bottom: 1rem;
}

.hero-kicker a {
    color: var(--white);
    opacity: 0.85;
    text-decoration: none;
    font-weight: 500;
}

.hero-kicker a:hover {
    opacity: 1;
    text-decoration: underline;
}

#page-hero h2#talk-title {
    max-width: 900px;
    margin: 0 auto 1.25rem;
    line-height: 1.25;
}

.hero-tags {
    justify-content: center;
}

.hero-tags span {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

#talk-body {
    background-color: var(--light-bg);
}

.talk-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: var(--spacing-md);
    align-items: start;
}

.talk-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

#talk-videos:empty {
    display: none;
}

.talk-abstract a {
    color: var(--secondary-color);
}

.talk-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.talk-side h3 {
    font-size: 1.1rem;
}

.video-embed {
    margin-bottom: var(--spacing-sm);
}

.video-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--primary-color);
}

.video-embed figcaption {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.resource-list,
.talk-events {
    list-style: none;
    margin: 0 !important;
}

.resource-list li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.resource-icon {
    color: var(--secondary-color);
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
}

.resource-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.resource-list a:hover {
    text-decoration: underline;
}

.talk-events li {
    padding: 0.75rem 0 0.75rem 1rem;
    border-left: 2px solid var(--light-gray);
    margin-bottom: 0 !important;
}

.talk-events li.upcoming {
    border-left-color: var(--accent-color);
}

.talk-event-date {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.talk-events li.upcoming .talk-event-date {
    color: var(--accent-color);
}

.badge {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 10px;
    padding: 0.05rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.talk-event-name {
    color: var(--primary-color);
    font-weight: 600;
}

.talk-event-name a {
    color: inherit;
    text-decoration: none;
}

.talk-event-name a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.talk-events .event-location {
    font-size: 0.9rem;
}

.talk-events-empty {
    color: var(--gray);
    border-left: none !important;
    padding-left: 0 !important;
}

.talk-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.talk-pager-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background-color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.talk-pager-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.talk-pager-link.next {
    text-align: right;
}

.talk-pager-label {
    color: var(--gray);
    font-size: 0.85rem;
}

.talk-pager-title {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .talk-layout,
    .talk-pager {
        grid-template-columns: 1fr;
    }

    .talk-pager-link.next {
        text-align: left;
    }

    #page-hero h2#talk-title {
        font-size: 1.75rem;
    }
}
