/* Streaming features styles for Stream Beam website */

/* Stream Player Container */
.stream-player-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Stream Video */
.stream-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Stream Controls */
.stream-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 15px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-player-container:hover .stream-controls {
    opacity: 1;
}

/* Control Buttons */
.stream-control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    margin-right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.stream-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Volume Slider */
.volume-slider {
    width: 80px;
    margin-right: 15px;
    cursor: pointer;
}

/* Quality Selector */
.quality-selector {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
}

/* Stream Info */
.stream-info {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
}

.stream-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.live {
    background-color: #f44336;
    color: #fff;
}

.viewer-count {
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stream Overlay */
.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

.play-button-large i {
    color: #fff;
    font-size: 3rem;
}

.stream-overlay:hover .play-button-large {
    background-color: rgba(255, 255, 255, 0.3);
}

.stream-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

/* Stream Notification */
.stream-notification {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.4rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.stream-notification.fade-out {
    opacity: 0;
}

/* Chat Container */
.stream-chat-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Chat Header */
.chat-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.chat-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Chat Message */
.chat-message {
    padding: 10px;
    border-radius: 8px;
    max-width: 85%;
}

.chat-message.user {
    background-color: #f1f1f1;
    align-self: flex-start;
}

.chat-message.self {
    background-color: #e3f2fd;
    align-self: flex-end;
}

.chat-message.system {
    background-color: #f5f5f5;
    color: #666;
    align-self: center;
    font-style: italic;
    max-width: 100%;
    text-align: center;
}

.chat-message.moderator {
    background-color: #fff3e0;
    border-left: 3px solid var(--primary-color);
}

.message-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.username {
    font-weight: 600;
    color: var(--primary-color);
}

.timestamp {
    color: #888;
}

.message-content {
    font-size: 1.4rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Chat Input Area */
.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1.4rem;
}

.chat-send-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-send-btn:hover {
    background-color: var(--primary-dark);
}

/* Chat Settings Modal */
.chat-settings-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.settings-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.close-settings {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.settings-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setting-group label {
    font-size: 1.4rem;
    font-weight: 500;
}

.setting-group input[type="text"],
.setting-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.4rem;
}

.clear-chat-btn {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clear-chat-btn:hover {
    background-color: #d32f2f;
}

/* Font Size Options */
.chat-messages.font-small .message-content {
    font-size: 1.2rem;
}

.chat-messages.font-large .message-content {
    font-size: 1.6rem;
}

/* Streaming Layout */
.streaming-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media screen and (min-width: 992px) {
    .streaming-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.stream-player-section {
    width: 100%;
}

.stream-chat-section {
    width: 100%;
    height: 500px;
}

/* Streaming Demo Section */
.streaming-demo {
    padding: 40px 0;
}

.streaming-demo .section-header {
    margin-bottom: 30px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .stream-controls {
        padding: 10px;
    }
    
    .stream-control-btn {
        margin-right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .play-button-large {
        width: 60px;
        height: 60px;
    }
    
    .play-button-large i {
        font-size: 2.4rem;
    }
    
    .stream-title {
        font-size: 1.8rem;
    }
    
    .stream-chat-section {
        height: 400px;
    }
}

@media screen and (max-width: 480px) {
    .stream-info {
        top: 10px;
        left: 10px;
    }
    
    .status-indicator {
        font-size: 1rem;
        padding: 3px 6px;
    }
    
    .viewer-count {
        font-size: 1.2rem;
    }
    
    .play-button-large {
        width: 50px;
        height: 50px;
    }
    
    .play-button-large i {
        font-size: 2rem;
    }
    
    .stream-title {
        font-size: 1.6rem;
    }
    
    .chat-header h3 {
        font-size: 1.6rem;
    }
    
    .message-content {
        font-size: 1.3rem;
    }
    
    .stream-chat-section {
        height: 350px;
    }
}
