/* ========================================
   CSS para insights do dashboard.
   Exibe estatísticas de visualizações.
   ======================================== */

.insights-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 24px;
}

.insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.insights-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.insights-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.insight-stat {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.insight-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.insight-stat__label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.insight-stat__change {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.insight-stat__change.positive {
    background: #dcfce7;
    color: #16a34a;
}

.insight-stat__change.negative {
    background: #fee2e2;
    color: #dc2626;
}

.insights-top h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #374151;
}

.insights-top__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-top__list li {
    border-bottom: 1px solid #f3f4f6;
}

.insights-top__list li:last-child {
    border-bottom: none;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.top-item:hover {
    color: #0F766E;
}

.top-title {
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.top-views {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Versão bloqueada */
.insights-card--locked {
    position: relative;
}

.insights-locked-content {
    text-align: center;
    padding: 30px 20px;
}

.lock-icon {
    font-size: 40px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.insights-locked-content p {
    color: #6b7280;
    margin-bottom: 16px;
}

.locked-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 576px) {
    .insights-stats {
        grid-template-columns: 1fr;
    }
    
    .insight-stat__value {
        font-size: 24px;
    }
}
