/**
 * IRS Basquet - Stream Monitor Overlay Styles
 * Estilos para el overlay de recarga automática del monitor de streams
 */

/* ─── Overlay principal ───────────────────────────────────────────── */
.stream-reload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.stream-reload-overlay.visible {
    opacity: 1;
}

/* ─── Contenido del overlay ───────────────────────────────────────── */
.stream-reload-content {
    text-align: center;
    padding: 30px 40px;
    max-width: 420px;
    width: 90%;
    animation: streamReloadFadeIn 0.4s ease;
}

@keyframes streamReloadFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Icono ───────────────────────────────────────────────────────── */
.stream-reload-icon {
    margin-bottom: 16px;
    animation: streamReloadPulse 2s ease-in-out infinite;
}

@keyframes streamReloadPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ─── Textos ──────────────────────────────────────────────────────── */
.stream-reload-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stream-reload-subtitle {
    color: #aaaaaa;
    font-size: 14px;
    margin: 0 0 24px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ─── Anillo de countdown ─────────────────────────────────────────── */
.stream-reload-countdown-ring {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.countdown-svg {
    transform: scaleX(-1);
}

.countdown-progress {
    transition: stroke-dashoffset 1s linear;
}

.countdown-bg {
    opacity: 0.3;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: #ff6b35;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-variant-numeric: tabular-nums;
}

/* ─── Texto de auto-recarga ───────────────────────────────────────── */
.stream-reload-auto-text {
    color: #888888;
    font-size: 13px;
    margin: 0 0 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stream-reload-auto-text span {
    color: #ff6b35;
    font-weight: 600;
}

/* ─── Botones ─────────────────────────────────────────────────────── */
.stream-reload-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.stream-reload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #ff6b35;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 200px;
}

.stream-reload-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.stream-reload-btn:active {
    transform: translateY(0);
}

.stream-open-external-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    background: transparent;
    color: #888888;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stream-open-external-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* ─── Contador de recargas ────────────────────────────────────────── */
.stream-reload-counter {
    color: #555555;
    font-size: 11px;
    margin: 16px 0 0 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .stream-reload-content {
        padding: 20px 24px;
    }

    .stream-reload-title {
        font-size: 17px;
    }

    .stream-reload-subtitle {
        font-size: 13px;
    }

    .stream-reload-countdown-ring {
        width: 80px;
        height: 80px;
    }

    .countdown-svg {
        width: 80px;
        height: 80px;
    }

    .countdown-number {
        font-size: 26px;
    }

    .stream-reload-btn {
        padding: 10px 24px;
        font-size: 14px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .stream-reload-content {
        padding: 16px 16px;
    }

    .stream-reload-icon svg {
        width: 48px;
        height: 48px;
    }

    .stream-reload-title {
        font-size: 15px;
    }

    .stream-reload-countdown-ring {
        width: 70px;
        height: 70px;
    }

    .countdown-svg {
        width: 70px;
        height: 70px;
    }

    .countdown-number {
        font-size: 22px;
    }
}

/* ─── Anillo del countdown en el SVG - responsive ─────────────────── */
@media (max-width: 768px) {
    .stream-reload-countdown-ring .countdown-svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .stream-reload-countdown-ring .countdown-svg {
        width: 70px;
        height: 70px;
    }
}
