/* ========================================
   ESTILOS SIMPLES PARA ESTADÍSTICAS
   ======================================== */

/* Wrapper principal */
.auction-product-stats-wrapper {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Título */
.stats-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Contenedor de estadísticas principales */
.stats-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    background: #fafafa;
    border-radius: 6px;
}

/* Items de estadística */
.stat-item {
    text-align: center;
    flex: 1;
    padding: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-sublabel {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Separadores */
.stat-separator {
    width: 1px;
    height: 60px;
    background: #e0e0e0;
    margin: 0 20px;
}

/* Colores sutiles para diferentes estadísticas */
.stat-total .stat-value {
    color: #2c3e50;
}

.stat-with-bids .stat-value {
    color: #27ae60;
}

.stat-without-bids .stat-value {
    color: #95a5a6;
}

/* Gráfico simple */
.stats-chart-simple {
    margin: 30px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Barra de progreso */
.progress-bar-container {
    display: flex;
    height: 40px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 0.3s ease;
}

.progress-segment.with-bids {
    background: #27ae60;
}

.progress-segment.without-bids {
    background: #95a5a6;
}

.progress-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* Leyenda */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}

.legend-color.with-bids {
    background: #27ae60;
}

.legend-color.without-bids {
    background: #95a5a6;
}

/* Información adicional */
.stats-additional-info {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #e8e8e8;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
}

/* Timestamp */
.stats-timestamp {
    text-align: right;
    font-size: 11px;
    color: #999;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Estilo minimal */
.auction-product-stats-wrapper.style-minimal {
    border: none;
    box-shadow: none;
    padding: 20px 0;
}

.style-minimal .stats-summary {
    background: transparent;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.style-minimal .stats-chart-simple {
    background: transparent;
}

/* Estilo card */
.auction-product-stats-wrapper.style-card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.style-card .stat-item {
    background: white;
    border-radius: 6px;
    margin: 0 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Responsivo */
@media (max-width: 768px) {
    .stats-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-separator {
        display: none;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .stats-additional-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Hover suave */
.stat-item {
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

/* Error */
.auction-stats-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #fee2e2;
    margin: 20px 0;
}

/* Print styles */
@media print {
    .auction-product-stats-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .stats-timestamp {
        display: none;
    }
}
