/* Detail page specific styles (Light Mode) */

.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.breadcrumb a:hover {
    color: var(--primary-blue);
    border-color: #cbd5e1;
    transform: translateX(-3px);
}

.detail-header {
    text-align: left;
    margin-bottom: 40px;
    padding: 0;
}

.detail-header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    text-align: left;
}

.detail-header .subtitle {
    margin: 0;
    text-align: left;
}

.detail-main {
    max-width: 1100px;
    margin: 0 auto;
}

/* Current Stat Hero Card */
.current-stat {
    text-align: center;
    padding: 45px 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: var(--card-shadow), var(--glow-shadow);
    position: relative;
    overflow: hidden;
}

.big-number {
    font-family: var(--font-mono);
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

.progress-bar-large {
    height: 24px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    border-radius: 30px;
    transition: width 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Simulator Card & Slider */
.simulator-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
}

.simulator-card h3 {
    margin-bottom: 16px;
}

.simulator-slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin-bottom: 24px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.simulator-results {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.sim-result-box {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
}

.sim-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}

.sim-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-purple);
}

.sim-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Related Cards Navigation */
.related-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-shadow);
}

.related-card h3 {
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

.related-card:hover h3 {
    color: var(--accent-purple);
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 60px;
}

.timeline-section h2, 
.chart-section h2, 
.insights-section h2, 
.sources-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 18px 22px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease;
}

.timeline-item:hover {
    transform: translateX(4px);
    border-color: #cbd5e1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--text-muted);
}

.timeline-item.highlight::before {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.timeline-stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Chart Section */
.chart-section {
    margin-bottom: 60px;
}

.chart-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-container canvas {
    max-height: 340px;
    width: 100% !important;
}

/* Insights Section */
.insights-section {
    margin-bottom: 60px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.insight-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: var(--glow-shadow);
}

.insight-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.insight-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Sources Section */
.sources-section {
    margin-bottom: 60px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.sources-list {
    display: grid;
    gap: 20px;
}

.source-item {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.source-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.source-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.source-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.source-item a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.source-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .detail-header h1 { font-size: 2.1rem; }
    .big-number { font-size: 3.6rem; }
    .current-stat { padding: 30px 20px; }
    .chart-container { padding: 16px; }
    .simulator-results { flex-direction: column; }
}
