/* ==========================================================
   YouTubeVideo.razor — estilos para sección de video en vivo
   ========================================================== */

.live-streaming-section {
    padding: 1rem 1.5rem 0.5rem;
}

.live-streaming-section .yt-video {
    background: linear-gradient(135deg, #f4fdf6 0%, #edf7f0 100%);
    border: 1px solid #c8e6c9;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem 1.75rem;
    max-width: 980px;
    margin: 0 auto;
}

.yt-video-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.yt-eyebrow {
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yt-video-title {
    color: #064d31;
    margin: 0.25rem 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.yt-video-subtitle {
    color: #475569;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.yt-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.yt-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-video-source-link {
    display: inline-block;
    margin-top: 0.85rem;
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.yt-video-source-link:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* ====== EN VIVO (badge rojo con punto pulsante) ====== */
.yt-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.yt-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: yt-live-pulse 1.4s infinite;
}

@keyframes yt-live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ====== OFFLINE (sin transmisión) ====== */
.yt-video--offline .yt-offline-badge {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.yt-offline-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    text-align: center;
    padding: 2rem;
}

.yt-offline-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.yt-offline-text {
    color: #334155;
    font-weight: 600;
    margin: 0;
}

.yt-offline-hint {
    color: #64748b;
    font-size: 0.85rem;
}

/* ====== Tamaño "sm" (cards y modales) ====== */
.yt-video--sm {
    padding: 0.75rem 1rem 1rem;
}

.yt-video--sm .yt-video-title {
    font-size: 1.05rem;
}

.yt-video--sm .yt-video-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* ====== ConfigureProduct modal: video debajo de imagen ====== */
.configure-video-section {
    margin-top: 1rem;
}

.configure-video-section .yt-video {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1rem 1.1rem;
}

.configure-video-section .yt-video-title {
    color: #0f172a;
    font-size: 1rem;
}

.configure-video-section .yt-eyebrow {
    color: #475569;
}

.configure-video-section .yt-offline-card {
    padding: 1rem;
}

.configure-video-section .yt-offline-icon {
    font-size: 2rem;
}