/**
 * Estilos del Contador de Visitas Profesional
 * Archivo: style.css
 * Version: 1.0.2
 */

.vcp-widget-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.vcp-stat-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vcp-stat-item:last-child {
    margin-bottom: 0;
}

.vcp-stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.vcp-icon {
    font-size: 20px;
    margin-right: 10px;
    line-height: 1;
    min-width: 25px;
    text-align: center;
}

.vcp-stat-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 10px;
}

.vcp-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vcp-count {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    white-space: nowrap;
}

/* Estilos específicos por tipo de estadística */
.vcp-today {
    border-left: 4px solid #4CAF50;
}

.vcp-yesterday {
    border-left: 4px solid #2196F3;
}

.vcp-week {
    border-left: 4px solid #FF9800;
}

.vcp-month {
    border-left: 4px solid #9C27B0;
}

.vcp-last-month {
    border-left: 4px solid #00BCD4;
}

.vcp-total {
    border-left: 4px solid #F44336;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
}

.vcp-total .vcp-count {
    color: #F44336;
    font-size: 22px;
}

/* Título del widget */
.widget-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .vcp-widget-container {
        padding: 15px;
    }
    
    .vcp-stat-item {
        padding: 12px;
    }
    
    .vcp-icon {
        font-size: 24px;
        margin-right: 12px;
        min-width: 30px;
    }
    
    .vcp-count {
        font-size: 20px;
    }
    
    .vcp-total .vcp-count {
        font-size: 24px;
    }
}

/* Animación de carga */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vcp-stat-item {
    animation: fadeInUp 0.5s ease forwards;
}

.vcp-stat-item:nth-child(1) { animation-delay: 0.1s; }
.vcp-stat-item:nth-child(2) { animation-delay: 0.2s; }
.vcp-stat-item:nth-child(3) { animation-delay: 0.3s; }
.vcp-stat-item:nth-child(4) { animation-delay: 0.4s; }
.vcp-stat-item:nth-child(5) { animation-delay: 0.5s; }
.vcp-stat-item:nth-child(6) { animation-delay: 0.6s; }

/* Tema alternativo (opcional) - agregar clase .vcp-minimal al contenedor */
.vcp-minimal.vcp-widget-container {
    background: #ffffff;
    border: 2px solid #e0e0e0;
}

.vcp-minimal .vcp-stat-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.vcp-minimal .widget-title {
    color: #333;
}