/* Analytics Page Styles */
.analytics-section {
    padding: 4rem 0;
    background: #ffffff;
    min-height: 80vh;
}

/* Analytics Footnotes */
.analytics-footnotes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.footnote-text {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footnote-text i {
    color: #3b82f6;
    font-size: 1rem;
}

.footnote-text strong {
    color: #374151;
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    /* Use design system class .text-page-title instead */
}

.section-description {
    /* Use design system class .text-description instead */
}

.analytics-grid {
    margin-bottom: 4rem;
}

.analytics-section-title {
    /* Use design system class .text-section-title instead */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.analytics-section-title i {
    font-size: 1.5rem;
    color: #4a90e2;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.personal {
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.stat-icon.platform {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #262627;
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.chart-title {
    /* Use design system class .text-subtitle instead */
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Insights */
.insights-section {
    margin-bottom: 3rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.insight-card {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #4a90e2;
}

.insight-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #262627;
    margin-bottom: 0.75rem;
}

.insight-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.insight-card strong {
    color: #4a90e2;
    font-weight: 600;
}

/* No Data Placeholder */
.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .analytics-section {
        padding: 2rem 0;
    }
    
    .section-header h1 {
        /* Mobile scaling handled by design system */
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chart-container {
        padding: 1.5rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insight-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        /* Mobile scaling handled by design system */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-section-title {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}