/**
 * Стили для системы отображения стримов
 */

/* Карточка стрима */
.stream-card {
    background: rgba(35, 35, 35, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(205, 65, 43, 0.2);
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(205, 65, 43, 0.3);
}

/* Заголовок стрима */
.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
}

.stream-platform {
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
    width: 100%;
}

.stream-status {
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stream-status .text-success {
    color: #28a745 !important;
}

.stream-status .text-danger {
    color: #dc3545 !important;
}

.stream-status .text-info {
    color: #17a2b8 !important;
}

.stream-status .text-muted {
    color: #6c757d !important;
}

.stream-live-badge {
    background: #ff0000;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: pulse 2s infinite;
}

.stream-offline-badge {
    background: #666;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Оффлайн карточка */
.stream-card.offline {
    opacity: 0.7;
    border-color: rgba(102, 102, 102, 0.3);
}

.stream-card.offline:hover {
    opacity: 1;
    box-shadow: 0 10px 30px rgba(102, 102, 102, 0.2);
}

.stream-card.offline .stream-thumbnail {
    filter: grayscale(50%);
}

/* Дата публикации */
.stream-published {
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stream-published i {
    color: #cd412b;
}

.stream-live-badge i {
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Превью стрима */
.stream-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    cursor: pointer;
}

.stream-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-thumbnail:hover .stream-play-overlay {
    opacity: 1;
}

.stream-play-overlay i {
    font-size: 4rem;
    color: white;
    transition: transform 0.3s ease;
}

.stream-thumbnail:hover .stream-play-overlay i {
    transform: scale(1.1);
}

.stream-viewers {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Информация о стриме */
.stream-info {
    padding: 20px;
}

.stream-title {
    color: var(--rust-text);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.stream-description {
    color: rgba(197, 187, 180, 0.8);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.stream-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stream-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Модальное окно стрима */
.stream-modal-content {
    background: #1a1a1a;
    color: var(--rust-text);
    border: 2px solid var(--rust-primary);
}

.stream-modal-content .modal-header {
    border-bottom: 1px solid rgba(205, 65, 43, 0.3);
    background: rgba(35, 35, 35, 0.95);
}

.stream-modal-content .modal-footer {
    border-top: 1px solid rgba(205, 65, 43, 0.3);
    background: rgba(35, 35, 35, 0.95);
}

.stream-embed-container {
    position: relative;
    width: 100%;
    background: #000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stream-actions {
        flex-direction: column;
    }
    
    .stream-actions .btn {
        width: 100%;
    }
    
    .stream-play-overlay i {
        font-size: 3rem;
    }
    
    .stream-embed-container iframe {
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    .stream-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .stream-title {
        font-size: 1.1rem;
    }
    
    .stream-embed-container iframe {
        height: 300px !important;
    }
}

/* Анимация появления */
.stream-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
