/* ────────────────────────────────────────────────────────────
   Speaker Modal — Styles
   ──────────────────────────────────────────────────────────── */

.speaker-modal[hidden] {
    display: none !important;
}

/* Backdrop */
.speaker-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.speaker-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: speakerFadeIn 0.2s ease-out;
}

/* Sheet (panel) */
.speaker-modal__sheet {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: speakerSlideUp 0.3s ease-out;
    outline: none;
}

/* Close button */
.speaker-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    color: #6b7280;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
}

.speaker-modal__close:hover,
.speaker-modal__close:focus-visible {
    background: #f3f4f6;
    color: #111827;
}

/* ── Loading Skeleton ────────────────────────────────────── */
.speaker-modal__skeleton {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.skeleton-photo {
    width: 120px;
    height: 160px;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line--w40 { width: 40%; }
.skeleton-line--w60 { width: 60%; }
.skeleton-line--w80 { width: 80%; }
.skeleton-line--w90 { width: 90%; }

/* ── Content Layout ──────────────────────────────────────── */
.speaker-modal__content[hidden] {
    display: none !important;
}

.speaker-modal__header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.speaker-modal__photo {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 0.75rem;
    flex-shrink: 0;
    background: #e5e7eb;
}

.speaker-modal__identity {
    min-width: 0;
}

.speaker-modal__name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 0.25rem;
}

.speaker-modal__role {
    font-size: 0.9rem;
    color: #374151;
    margin: 0 0 0.15rem;
    font-weight: 500;
}

.speaker-modal__origin {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* ── Badges ──────────────────────────────────────────────── */
.speaker-modal__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.speaker-modal__badges:empty {
    display: none;
}

.speaker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.speaker-badge--lang {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.speaker-badge--day {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.speaker-badge--zoom {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
}

.speaker-badge--recorded {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.speaker-badge--featured {
    background: rgba(236, 72, 153, 0.1);
    color: #be185d;
}

/* ── Presentation ────────────────────────────────────────── */
.speaker-modal__presentation[hidden] {
    display: none !important;
}

.speaker-modal__presentation {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}

.speaker-modal__talk-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.35rem;
}

.speaker-modal__schedule-info {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

.speaker-modal__abstract-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.speaker-modal__read-more {
    border: none;
    background: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
}

.speaker-modal__read-more:hover {
    text-decoration: underline;
}

.speaker-modal__read-more[hidden] {
    display: none;
}

/* ── Bio ─────────────────────────────────────────────────── */
.speaker-modal__bio {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}

.speaker-modal__bio h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.speaker-modal__bio-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.speaker-modal__footer {
    display: flex;
    gap: 0.75rem;
}

.speaker-modal__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.08);
    text-decoration: none;
    transition: background 0.15s;
}

.speaker-modal__linkedin:hover {
    background: rgba(10, 102, 194, 0.15);
}

.speaker-modal__linkedin[hidden] {
    display: none;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes speakerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes speakerSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Mobile Bottom Sheet ─────────────────────────────────── */
@media (max-width: 640px) {
    .speaker-modal {
        align-items: flex-end;
        padding: 0;
    }

    .speaker-modal__sheet {
        border-radius: 1.25rem 1.25rem 0 0;
        max-width: 100%;
        max-height: 90vh;
        padding: 1.5rem;
        animation: speakerSlideUpMobile 0.3s ease-out;
    }

    .speaker-modal__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speaker-modal__photo {
        width: 100px;
        height: 133px;
    }

    .speaker-modal__badges {
        justify-content: center;
    }

    .speaker-modal__name {
        font-size: 1.2rem;
    }

    @keyframes speakerSlideUpMobile {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
