/**
 * ShowStreamz Interactive Features Styles
 *
 * @package ShowStreamz
 */

/* Chat Container */
.showstreamz-chat {
    display: flex;
    flex-direction: column;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.showstreamz-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-username {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

.chat-text {
    color: #555;
}

.chat-time {
    font-size: 0.85em;
    color: #999;
    margin-left: 8px;
}

.showstreamz-chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.showstreamz-chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.showstreamz-chat-input button {
    margin-left: 10px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.showstreamz-chat-input button:hover {
    background: #005a87;
}

/* Polls Container */
.showstreamz-polls {
    margin-top: 20px;
}

.showstreamz-poll {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poll-question {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.poll-options {
    margin-bottom: 15px;
}

.poll-option-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s;
}

.poll-option-button:hover {
    background: #e8e8e8;
    border-color: #0073aa;
}

.poll-option-result {
    margin-bottom: 12px;
}

.option-text {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.option-bar {
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
}

.option-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    transition: width 0.3s ease;
}

.option-stats {
    font-size: 13px;
    color: #666;
}

.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.poll-closed {
    color: #d63638;
    font-weight: 500;
}

.poll-total-votes {
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .showstreamz-chat {
        height: 300px;
    }

    .chat-message {
        font-size: 14px;
    }

    .poll-question {
        font-size: 16px;
    }

    .poll-option-button {
        padding: 10px;
        font-size: 13px;
    }
}
