<div class="user-stats-card">
    <h3>User Statistics</h3>

    <div class="stats-grid">
        <div class="stat">
            <span class="stat-label">Total Posts</span>
            <span class="stat-value">{total_posts}</span>
        </div>

        <div class="stat">
            <span class="stat-label">Total Comments</span>
            <span class="stat-value">{total_comments}</span>
        </div>

        <div class="stat">
            <span class="stat-label">Reputation</span>
            <span class="stat-value">{reputation}</span>
        </div>
    </div>

    <div class="cache-info">
        <small>Cached at: {cached_at}</small>
    </div>
</div>

<style>
.user-stats-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-stats-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 6px;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.cache-info {
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    color: #999;
    font-size: 0.75rem;
}
</style>
