/* =====================================================
   LIVE RESULTS — INFRA PILOT (PREMIUM AFFILIATE DESIGN)
   Professional card design for affiliate approval
   ===================================================== */

/* Affiliate Disclosure (compact) */
.affiliate-disclosure-compact {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 8px 0;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 6px;
    line-height: 1.3;
}

/* Container de matches */
.live-matches {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card individual */
.live-match {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: all 0.25s ease;
}

.live-match:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* BEST Match — Destacado Premium */
.live-match.top {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.live-match.top::before {
    content: "BEST MATCH";
    position: absolute;
    top: -11px;
    right: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Header row — Provider + Logo */
.live-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-logo {
    width: 44px;
    height: 44px;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.live-match:hover .live-logo {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.live-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.live-plan {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.live-provider {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Location + Latency — Inline Row */
.live-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.live-location,
.live-latency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.live-location i,
.live-latency i {
    font-size: 13px;
    color: #94a3b8;
}

.live-latency {
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid #e2e8f0;
}

/* Specs — Premium Tags */
.live-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.live-specs span {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.live-specs span i {
    font-size: 12px;
    color: #94a3b8;
}

.live-match:hover .live-specs span {
    border-color: #cbd5e1;
}

.live-match.top .live-specs span {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

.live-match.top .live-specs span i {
    color: #3b82f6;
}

/* Price — Premium Footer */
.live-price {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}

.live-price-value {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -0.02em;
}

.live-price-period {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Placeholder de carga */
.live-placeholder {
    text-align: center;
    padding: 32px 16px;
    color: var(--gray-400);
}

.live-placeholder i {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
    color: var(--gray-300);
}

.live-placeholder p {
    margin: 0;
    font-size: 13px;
}

/* =====================================================
   BUTTON — Dentro del sidebar (hereda de .btn-calculate en main.css)
   ===================================================== */

.live-results-card .btn-calculate {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
}

.live-results-card .btn-calculate.w-100 {
    display: flex;
}

/* =====================================================
   LIVE HEADER — Instant Preview
   ===================================================== */

.live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.live-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Animación de spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1.5s linear infinite;
}

/* =====================================================
   RESPONSIVE — Mobile
   ===================================================== */

@media (max-width: 991px) {
    .live-matches {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }

    .live-match {
        padding: 12px 14px;
    }

    .live-logo {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .live-plan {
        font-size: 12px;
    }

    .live-price-value {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .live-matches {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .live-match {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .live-logo {
        width: 28px;
        height: 28px;
    }

    .live-provider {
        font-size: 12px;
    }

    .live-plan {
        font-size: 11px;
    }

    .live-specs {
        font-size: 10px;
    }

    .live-price-value {
        font-size: 14px;
    }

    .live-price-period {
        font-size: 9px;
    }

    .live-badge {
        font-size: 8px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .live-match {
        padding: 8px 10px;
    }

    .live-logo {
        width: 24px;
        height: 24px;
    }

    .live-provider {
        font-size: 11px;
    }

    .live-plan {
        font-size: 10px;
    }

    .live-price-value {
        font-size: 13px;
    }
}

