/* === CSS DO GRÁFICO COMPARATIVO === */

.ligacoes-grafico-section {
    padding: 6rem 0;
    background: white;
}

.grafico-header {
    text-align: center;
    margin-bottom: 4rem;
}

.grafico-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.grafico-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 56rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Seção de Produtividade */
.productivity-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.comparison-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.comparison-card.human {
    border-color: #f59e0b;
}

.comparison-card.ai {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.metric-value.highlight {
    color: #3b82f6;
}

.vs-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    text-align: center;
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Seção de Custos */
.costs-section {
    margin-bottom: 4rem;
}

.costs-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.cost-breakdown {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.human-costs {
    border-left: 4px solid #f59e0b;
}

.ai-costs {
    border-left: 4px solid #3b82f6;
}

.breakdown-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.cost-items {
    margin-bottom: 1.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-label {
    color: #6b7280;
}

.cost-value {
    font-weight: 600;
    color: #1f2937;
}

.cost-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
}

.cost-total.highlight {
    background: #eff6ff;
    border-color: #3b82f6;
}

.total-label {
    font-weight: 600;
    color: #374151;
}

.total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.cost-total.highlight .total-value {
    color: #3b82f6;
}

.savings-highlight {
    text-align: center;
}

.savings-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #10b981;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
}

.savings-icon {
    font-size: 2rem;
}

.savings-content {
    text-align: left;
}

.savings-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.savings-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #059669;
}

.savings-percentage {
    display: block;
    font-size: 0.875rem;
    color: #065f46;
}

/* Seção de Resultados */
.results-section {
    margin-bottom: 4rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.results-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.result-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.result-icon {
    font-size: 2rem;
    background: #f3f4f6;
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.result-content {
    flex: 1;
}

.result-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: block;
}

.result-comparison {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.human-result {
    color: #f59e0b;
    font-weight: 600;
}

.ai-result {
    color: #3b82f6;
    font-weight: 600;
}

.vs-arrow {
    color: #6b7280;
}

.result-improvement {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 600;
}

/* Gráfico Visual */
.visual-chart {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
}

.chart-bars {
    margin-bottom: 2rem;
}

.bar-group {
    margin-bottom: 2rem;
}

.bar-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bar {
    position: relative;
    background: #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    overflow: hidden;
}

.bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 0.5rem;
    transition: width 1s ease;
}

.human-bar::before {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    width: 30%;
}

.ai-bar::before {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    width: 100%;
}

.cost-bar::before {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    width: 80%;
}

.savings-bar::before {
    background: linear-gradient(45deg, #10b981, #059669);
    width: 40%;
}

.bar-value {
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.chart-note {
    text-align: center;
    margin: 1.5rem 0;
}

.note-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.human {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.legend-color.ai {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.legend-text {
    font-size: 0.875rem;
    color: #374151;
}

.highlight-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsividade */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vs-separator {
        transform: rotate(90deg);
        margin: 1rem auto;
    }
    
    .costs-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bars {
        grid-template-columns: 1fr;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .savings-card {
        flex-direction: column;
        text-align: center;
    }
    
    .savings-content {
        text-align: center;
    }
}
