/**
 * Radar Preditivo - Estilos do Widget
 * BitNotícias - Com Sparkline estilo Paradigma News
 */

.radar-preditivo-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Header */
.radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.radar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.radar-icon {
    font-size: 20px;
}

.radar-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.radar-source a {
    display: flex;
    align-items: center;
}

.polymarket-logo {
    height: 20px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.polymarket-logo:hover {
    opacity: 1;
}

/* Lista de itens */
.radar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radar-item {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.radar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

/* Categoria */
.radar-item-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.category-crypto {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.category-politics {
    background: rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
}

/* Headline */
.radar-item-headline {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ============================================
   NOVO: Sparkline + Porcentagem (Paradigma Style)
   ============================================ */

.radar-item-chart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
}

.radar-sparkline-container {
    flex: 0 0 80px;
}

.radar-sparkline {
    display: block;
}

.radar-probability-large {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    text-align: right;
}

/* Meta info */
.radar-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radar-item-volume {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.radar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.radar-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.radar-view-all:hover {
    color: #ff4444;
}

.radar-updated {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Empty state */
.radar-empty {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsivo */
@media (max-width: 480px) {
    .radar-preditivo-widget {
        padding: 16px;
        border-radius: 10px;
    }
    
    .radar-title {
        font-size: 16px;
    }
    
    .radar-item-headline {
        font-size: 13px;
    }
    
    .radar-probability-large {
        font-size: 28px;
    }
    
    .radar-sparkline-container {
        flex: 0 0 60px;
    }
    
    .radar-sparkline {
        width: 60px !important;
    }
}
