/* ===== Dashboard Page Styles ===== */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.brand {
    background: rgba(79, 70, 229, 0.1);
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.stat-card .stat-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stat-card .stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-card .stat-sub {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Platform Status Row */
.platform-status-row {
    display: flex;
    gap: var(--space-4);
}

.platform-status-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
}

.platform-status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.platform-status-info .name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.platform-status-info .detail {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Content Pipeline */
.pipeline-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pipeline-item:last-child {
    border-bottom: none;
}

.pipeline-time {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--brand-primary);
    background: var(--info-bg);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.pipeline-content {
    flex: 1;
}

.pipeline-content .title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pipeline-content .desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Top Post */
.top-post-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.top-post-metrics {
    display: flex;
    gap: var(--space-6);
}

.top-post-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-post-metric .metric-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.top-post-metric .metric-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 3px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: var(--bg-elevated);
    transition: all var(--transition-fast);
    cursor: default;
}

.heatmap-cell.level-1 {
    background: rgba(79, 70, 229, 0.1);
}

.heatmap-cell.level-2 {
    background: rgba(79, 70, 229, 0.25);
}

.heatmap-cell.level-3 {
    background: rgba(79, 70, 229, 0.45);
}

.heatmap-cell.level-4 {
    background: rgba(79, 70, 229, 0.7);
}

.heatmap-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: 10px;
    color: var(--text-tertiary);
}

@media (max-width: 1200px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }

    .platform-status-row {
        flex-direction: column;
    }
}