/* Estilos para a linha do tempo interativa */
.interactive-timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-marker:hover, .timeline-marker.active {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateX(-50%) scale(1.2);
}

.timeline-marker::after {
    content: attr(data-year);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.timeline-content-container {
    position: relative;
    margin: 50px 0;
    min-height: 400px;
}

.timeline-content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.timeline-content-item.active {
    opacity: 1;
    visibility: visible;
}

.timeline-content-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.timeline-content-item p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.timeline-content-item img {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

.timeline-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.timeline-nav button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-nav button:hover {
    background-color: var(--secondary-color);
}

.timeline-nav button:disabled {
    background-color: var(--gray-color);
    cursor: not-allowed;
}

/* Estilos para infográficos */
.infographic {
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 40px 0;
}

.infographic-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.infographic-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.infographic-item {
    flex: 1 1 200px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(0, 86, 179, 0.05);
    transition: all 0.3s ease;
}

.infographic-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.infographic-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.infographic-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.infographic-text {
    color: var(--dark-color);
}

.comparison-chart {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.chart-column {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-bar {
    width: 80px;
    background-color: var(--primary-color);
    border-radius: 5px 5px 0 0;
    margin-bottom: 10px;
    position: relative;
    transition: height 1s ease;
}

.chart-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: var(--primary-color);
}

.chart-label {
    text-align: center;
    font-weight: 500;
}

/* Estilos para o mapa interativo */
.interactive-map {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin: 40px 0;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-info {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    z-index: 10;
}

.map-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.map-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Responsividade para recursos interativos */
@media (max-width: 992px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-marker::after {
        left: 40px;
        transform: none;
    }
    
    .timeline-content-item {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .infographic-content {
        flex-direction: column;
    }
    
    .infographic-item {
        flex: 1 1 100%;
    }
    
    .interactive-map {
        height: 400px;
    }
    
    .map-info {
        width: 250px;
    }
}

@media (max-width: 576px) {
    .timeline-content-item h3 {
        font-size: 1.5rem;
    }
    
    .infographic-title {
        font-size: 1.5rem;
    }
    
    .map-info {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 20px;
    }
    
    .interactive-map {
        height: 300px;
    }
}
