/* Live Stream UI Components */

/* Nickname Modal */
.nickname-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.nickname-modal .modal-content {
    background: #1e293b;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nickname-modal h2 {
    margin-bottom: 10px;
    color: white;
}

.nickname-modal p {
    color: #94a3b8;
    margin-bottom: 20px;
}

#nicknameInput {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.save-nickname-btn {
    width: 100%;
    padding: 12px;
    background: #4ade80;
    color: #0f172a;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.save-nickname-btn:hover {
    background: #22c55e;
}

/* Participant Sidebar */
.participant-sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 280px;
    height: 100%;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1500;
    transition: right 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.participant-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: white;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.participant-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.participant-avatar {
    width: 32px;
    height: 32px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Emoji Bar */
.emoji-bar {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.emoji-btn:hover {
    transform: scale(1.3);
}

.emoji-btn:active {
    transform: scale(0.9);
}

/* Floating Reactions */
.reaction-container {
    position: fixed;
    bottom: 100px;
    right: 50px;
    width: 100px;
    height: 400px;
    pointer-events: none;
    z-index: 2000;
}

.floating-emoji {
    position: absolute;
    bottom: 0;
    font-size: 32px;
    animation: floatUp 3s forwards ease-out;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }

    100% {
        transform: translateY(-400px) scale(1.5);
        opacity: 0;
    }
}