/**
 * Demo Stream Player Styles
 * For testing livestream tab functionality
 */

.demo-player {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.demo-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.demo-player-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.demo-player-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

.demo-player-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.demo-player-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.demo-play-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.demo-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.demo-play-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Live badge animation */
.live-badge {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    animation: livePulse 2s infinite;
}

.live-badge i {
    margin-right: 4px;
    font-size: 0.7rem;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Featured badge */
.featured-badge {
    background: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.featured-badge i {
    margin-right: 4px;
    font-size: 0.7rem;
}

/* Stream meta compact */
.stream-meta-compact {
    display: flex;
    gap: 16px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #4CAF50;
}

/* Stream header */
.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stream-title-section h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-title-section i {
    color: #4CAF50;
}

/* Stream description */
.stream-description {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.stream-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Chat styles */
.stream-chat {
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.chat-header h5 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header i {
    color: #4CAF50;
}

.chat-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.chat-toggle:hover {
    background: #e0e0e0;
    color: #333;
}

.chat-container {
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    background: white;
}

.chat-message {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.chat-user {
    font-weight: 600;
    color: #4CAF50;
    margin-right: 8px;
}

.chat-text {
    color: #333;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input input:focus {
    border-color: #4CAF50;
}

.chat-input button {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-input button:hover:not(:disabled) {
    background: #45a049;
}

.chat-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .stream-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .stream-meta-compact {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .demo-player {
        min-height: 300px;
    }
    
    .demo-player-content h4 {
        font-size: 1.2rem;
    }
    
    .demo-player-content i {
        font-size: 3rem;
    }
}
