/* =============================================
   SPEAKERS PAGE — KCSFA Conference 2026
   ============================================= */

/* ---- Hero (mirrors agenda hero) ---- */
.speakers-hero {
    position: relative;
    background-color: #1B1C13;
    padding: 120px 5% 60px;
    overflow: hidden;
}

.speakers-hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(254, 107, 2, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254, 107, 2, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.speakers-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #1B1C13);
    pointer-events: none;
}

.speakers-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.speakers-hero__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FE6B02;
    background: rgba(254, 107, 2, 0.12);
    border: 1px solid rgba(254, 107, 2, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.speakers-hero__title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.speakers-hero__title em {
    font-family: 'DM Serif Text', serif;
    font-style: italic;
    color: #FE6B02;
}

.speakers-hero__sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.03em;
    max-width: 520px;
}

/* ---- Page wrapper ---- */
.speakers-page {
    background-color: #f7f4f1;
    padding: 0 5% 80px;
}

/* ---- Filter bar ---- */
.speakers-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 40px 0 40px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #e5e0d8;
    color: #888;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover:not(.active) {
    border-color: #1B1C13;
    color: #1B1C13;
}

.filter-btn.active {
    background-color: #1B1C13;
    border-color: #1B1C13;
    color: #FE6B02;
}

/* ---- Grid ---- */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Card ---- */
.speaker-card {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #ede9e3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.speaker-card:hover {
    border-color: rgba(254, 107, 2, 0.35);
    box-shadow: 0 8px 32px rgba(254, 107, 2, 0.1);
    transform: translateY(-3px);
}

.speaker-card.hidden {
    display: none;
}

/* ---- Image wrap ---- */
.speaker-card__img-wrap {
    position: relative;
    overflow: hidden;
    background-color: #ede9e3;
    aspect-ratio: 3 / 4;
}

.speaker-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.speaker-card:hover .speaker-card__img-wrap img {
    transform: scale(1.04);
}

/* Role badge overlaid on image */
.speaker-card__role-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #1B1C13;
    color: #FE6B02;
    backdrop-filter: blur(4px);
}

/* Badge colour overrides per role */
.speaker-card[data-role="keynote"] .speaker-card__role-badge {
    background-color: #FE6B02;
    color: #fff;
}

.speaker-card[data-role="moderator"] .speaker-card__role-badge {
    background-color: #3949ab;
    color: #fff;
}

.speaker-card[data-role="presenter"] .speaker-card__role-badge {
    background-color: #1B1C13;
    color: #FE6B02;
}

.speaker-card[data-role="panel"] .speaker-card__role-badge {
    background-color: rgba(27, 28, 19, 0.85);
    color: #fff;
}

/* ---- Card body ---- */
.speaker-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1;
}

.speaker-card__name {
    font-family: 'DM Serif Text', serif;
    font-size: 17px;
    color: #1B1C13;
    line-height: 1.3;
}

.speaker-card__title {
    font-size: 12px;
    font-weight: 700;
    color: #FE6B02;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.speaker-card__desc {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
    flex: 1;
}

/* Talk row */
.speaker-card__talk {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #555;
    background-color: #faf8f5;
    border: 1px solid #ede9e3;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 4px;
    line-height: 1.5;
}

.speaker-card__talk .material-icons {
    font-size: 15px;
    color: #FE6B02;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Social icons */
.speaker-card__socials {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
}

.speaker-card__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #e5e0d8;
    color: #aaa;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.speaker-card__socials a:hover {
    border-color: #FE6B02;
    color: #FE6B02;
    background-color: rgba(254, 107, 2, 0.06);
}

/* ---- Empty state ---- */
.speakers-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 20px;
    color: #bbb;
    text-align: center;
}

.speakers-empty .material-icons {
    font-size: 48px;
    color: #ddd;
}

.speakers-empty p {
    font-size: 15px;
}

.speakers-empty.hidden {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .speakers-hero {
        padding: 100px 4% 48px;
    }

    .speakers-page {
        padding: 0 4% 60px;
    }

    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .speakers-filters {
        padding: 28px 0 32px;
        gap: 6px;
    }

    .filter-btn {
        font-size: 11px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .speakers-hero__title {
        font-size: 36px;
    }

    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .speaker-card {
        flex-direction: row;
        align-items: stretch;
    }

    .speaker-card__img-wrap {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: unset;
    }

    .speaker-card__body {
        padding: 14px;
        gap: 6px;
    }

    .speaker-card__name {
        font-size: 15px;
    }

    .speaker-card__desc {
        display: none;
    }

    .speaker-card__talk {
        font-size: 11px;
    }
}