/* ═══════════════════════════════════════════════════════
   Thai Criminal Code – Infographic Page Styles
   ═══════════════════════════════════════════════════════ */

.tcc-infographic-page .tcc-layout-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero */
.tcc-infographic-hero {
    background: linear-gradient(135deg, #1E73BE 0%, #06b6d4 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

.tcc-infographic-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.tcc-infographic-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0 0 1rem;
}

.tcc-infographic-intro {
    max-width: 650px;
    margin: 0 auto;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .tcc-infographic-title { font-size: 2.8rem; }
    .tcc-infographic-subtitle { font-size: 1.5rem; }
}

/* Sections */
.tcc-infographic-section {
    margin-bottom: 2.5rem;
}

.tcc-infographic-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    border-left: 4px solid #06b6d4;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}

.tcc-infographic-heading.tcc-text-center {
    border-left: none;
    padding-left: 0;
    text-align: center;
}

.tcc-infographic-desc {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.tcc-infographic-desc.tcc-text-center {
    text-align: center;
}

/* Stats Grid */
.tcc-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .tcc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .tcc-stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.tcc-stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.25rem 1rem;
    text-align: center;
    border-top: 4px solid transparent;
    transition: transform 0.2s;
}

.tcc-stat-card:hover {
    transform: translateY(-3px);
}

.tcc-stat-blue { border-top-color: #1E73BE; }
.tcc-stat-cyan { border-top-color: #06b6d4; }
.tcc-stat-amber { border-top-color: #f59e0b; }
.tcc-stat-rose { border-top-color: #f43f5e; }
.tcc-stat-green { border-top-color: #22c55e; }
.tcc-stat-purple { border-top-color: #8b5cf6; }

.tcc-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.tcc-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.tcc-stat-blue .tcc-stat-number { color: #1E73BE; }
.tcc-stat-cyan .tcc-stat-number { color: #06b6d4; }
.tcc-stat-amber .tcc-stat-number { color: #f59e0b; }
.tcc-stat-rose .tcc-stat-number { color: #f43f5e; }
.tcc-stat-green .tcc-stat-number { color: #22c55e; }
.tcc-stat-purple .tcc-stat-number { color: #8b5cf6; }

.tcc-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* Split Layout */
.tcc-infographic-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .tcc-infographic-split {
        grid-template-columns: 1fr 1fr;
    }
}

/* Chart containers */
.tcc-chart-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    height: 320px;
}

@media (max-width: 640px) {
    .tcc-chart-container {
        height: 260px;
    }
}

.tcc-chart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5rem;
}

.tcc-chart-caption {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

/* Legend */
.tcc-legend-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.tcc-legend-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #475569;
}

.tcc-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Punishment labels grid */
.tcc-punishment-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.tcc-punishment-item {
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 640px) {
    .tcc-punishment-labels {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Insight callout */
.tcc-infographic-insight {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    color: #e2e8f0;
}

.tcc-infographic-insight h4 {
    color: #fbbf24;
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.tcc-infographic-insight p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 0 0.75rem;
}

.tcc-infographic-callout {
    background: #ecfeff;
    border-left: 4px solid #06b6d4;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #475569;
    margin-top: 1rem;
}

/* Wider chart area for limitations */
.tcc-infographic-chart-wide {
    min-width: 0;
}

/* Flow Steps */
.tcc-flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (min-width: 768px) {
    .tcc-flow-steps {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        position: relative;
    }

    .tcc-flow-steps::before {
        content: '';
        position: absolute;
        top: 32px;
        left: 64px;
        right: 64px;
        height: 2px;
        background: #e2e8f0;
        z-index: 0;
    }
}

.tcc-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    z-index: 1;
    padding: 0 0.5rem;
}

.tcc-flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 4px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 0.75rem;
    background: #fff;
}

.tcc-flow-blue .tcc-flow-icon { background: #dbeafe; border-color: #1E73BE; }
.tcc-flow-cyan .tcc-flow-icon { background: #cffafe; border-color: #06b6d4; }
.tcc-flow-amber .tcc-flow-icon { background: #fef3c7; border-color: #f59e0b; }
.tcc-flow-rose .tcc-flow-icon { background: #ffe4e6; border-color: #f43f5e; }

.tcc-flow-step h4 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.tcc-flow-blue h4 { color: #1E73BE; }
.tcc-flow-cyan h4 { color: #0891b2; }
.tcc-flow-amber h4 { color: #d97706; }
.tcc-flow-rose h4 { color: #e11d48; }

.tcc-flow-step p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.tcc-flow-connector {
    width: 2px;
    height: 24px;
    background: #e2e8f0;
}

@media (min-width: 768px) {
    .tcc-flow-connector {
        display: none;
    }
}

/* CTA */
.tcc-infographic-cta {
    background: linear-gradient(135deg, #1E73BE 0%, #06b6d4 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.tcc-infographic-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.tcc-infographic-cta p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.tcc-infographic-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tcc-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tcc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tcc-btn-primary {
    background: #fff;
    color: #1E73BE;
}

.tcc-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
