/* CSS per statistiche bellissime */
.wcm-statistics-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.wcm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wcm-stat-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wcm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wcm-stat-card.primary { border-left: 4px solid #2271b1; }
.wcm-stat-card.success { border-left: 4px solid #00a32a; }
.wcm-stat-card.warning { border-left: 4px solid #dba617; }
.wcm-stat-card.info { border-left: 4px solid #2271b1; }

.wcm-stat-icon {
    margin-right: 15px;
    font-size: 24px;
    opacity: 0.7;
}

.wcm-stat-content {
    flex-grow: 1;
}

.wcm-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.wcm-stat-label {
    font-size: 14px;
    color: #6b7280;
    margin: 5px 0 0 0;
}

/* Charts Section */
.wcm-charts-section {
    margin: 30px 0;
}

.wcm-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wcm-chart-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wcm-chart-container.full-width {
    grid-column: 1 / -1;
}

.wcm-chart-container canvas {
    height: 300px !important;
}

.wcm-chart-container.full-width canvas {
    height: 400px !important;
}

.wcm-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wcm-chart-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
}

.wcm-chart-summary {
    font-size: 12px;
    color: #6b7280;
}

/* Detailed Stats */
.wcm-detailed-stats {
    margin: 30px 0;
}

.wcm-detailed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wcm-details-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wcm-details-section h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wcm-version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f1;
}

.wcm-version-item:last-child {
    border-bottom: none;
}

.wcm-version-number {
    font-weight: bold;
    color: #2271b1;
    font-size: 14px;
}

.wcm-version-title {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.wcm-changes-count {
    font-size: 12px;
    color: #374151;
    margin-bottom: 5px;
}

.wcm-changes-breakdown {
    display: flex;
    gap: 5px;
}

.wcm-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.wcm-badge.features { background: #00a32a; }
.wcm-badge.bugfixes { background: #d63638; }
.wcm-badge.improvements { background: #dba617; }
.wcm-badge.security { background: #2271b1; }

.wcm-activity-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f1;
}

.wcm-activity-item:last-child {
    border-bottom: none;
}

.wcm-activity-date {
    font-size: 11px;
    color: #9ca3af;
    width: 80px;
    flex-shrink: 0;
}

.wcm-activity-content {
    flex-grow: 1;
}

.wcm-activity-version {
    font-weight: bold;
    color: #2271b1;
    font-size: 13px;
}

.wcm-activity-title {
    font-size: 12px;
    color: #374151;
    margin: 2px 0;
}

.wcm-activity-changes {
    font-size: 11px;
    color: #9ca3af;
}

/* Insights */
.wcm-insights-section {
    margin: 30px 0;
}

.wcm-insights-section h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
}

.wcm-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wcm-insight-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #2271b1;
}

.wcm-insight-card h5 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 16px;
}

.wcm-insight-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .wcm-charts-grid {
        grid-template-columns: 1fr;
    }
    .wcm-detailed-grid {
        grid-template-columns: 1fr;
    }
    .wcm-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Note informativa */
.wcm-future-note {
    margin: 40px 0 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 100%);
    border: 1px solid #b8e6ff;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wcm-future-note::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: wcm-shine 3s infinite;
}

@keyframes wcm-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wcm-future-note-content {
    position: relative;
    z-index: 1;
}

.wcm-future-note h4 {
    margin: 0 0 10px 0;
    color: #1e3a8a;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wcm-future-note p {
    margin: 0;
    color: #3730a3;
    font-size: 14px;
    line-height: 1.6;
}

.wcm-future-note .wcm-version-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin: 8px 4px 0 4px;
}
