/* ========================================
   ROBOT.COM WEBINAR - LIVESTREAM PAGE
   Video + Chat side by side, branded wrapper
   ======================================== */

/* === LIVESTREAM HERO === */
.rw-hero-live {
    min-height: auto;
    padding: 2rem 3.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* Left side: badge + title */
.rw-live-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
    flex: 1;
}

.rw-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 10rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rw-white);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.rw-live-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: #ef4444;
    animation: rw-pulse 2s ease-in-out infinite;
}

@keyframes rw-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.rw-live-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--rw-white);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Right side: speaker avatars + names + date */
.rw-live-hosts {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.rw-live-avatars {
    display: flex;
}

.rw-live-avatar {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rw-black);
    background-color: var(--rw-grey-1);
}

.rw-live-avatar + .rw-live-avatar {
    margin-left: -1rem;
}

.rw-live-hosts-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rw-live-hosts-names {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rw-white);
    white-space: nowrap;
}

.rw-live-date {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* === VIDEO + CHAT CONTAINER === */
.rw-live-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0.6rem;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

/* Single embed (StreamYard — video + chat built-in) */
.rw-live-container-single {
    grid-template-columns: 1fr;
}

.rw-live-container-single .rw-live-video {
    padding-bottom: 50%;
}

/* === VIDEO EMBED === */
.rw-live-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background-color: var(--rw-black);
    border-radius: 1.6rem;
    overflow: hidden;
}

.rw-live-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === CHAT EMBED === */
.rw-live-chat {
    background-color: var(--rw-bg-grey);
    border-radius: 1.6rem;
    overflow: hidden;
    min-height: 50rem;
}

.rw-live-chat iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === RESPONSIVE: TABLET === */
@media only screen and (max-width: 1023px) {
    .rw-hero-live {
        padding: 2rem;
    }

    .rw-live-title {
        font-size: 1.4rem;
    }

    .rw-live-container {
        grid-template-columns: 1fr;
    }

    .rw-live-chat {
        min-height: 40rem;
    }
}

/* === RESPONSIVE: MOBILE === */
@media only screen and (max-width: 767px) {
    .rw-hero-live {
        padding: 1.6rem;
        border-radius: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .rw-live-title {
        font-size: 1.3rem;
        white-space: normal;
    }

    .rw-live-avatar {
        width: 3rem;
        height: 3rem;
    }

    .rw-live-hosts-names {
        font-size: 1.1rem;
    }

    .rw-live-date {
        font-size: 1rem;
    }

    .rw-live-video {
        border-radius: 1.2rem;
    }

    .rw-live-container-single .rw-live-video {
        padding-bottom: 52%;
    }

    .rw-live-chat {
        border-radius: 1.2rem;
        min-height: 36rem;
    }
}
