@charset "UTF-8";

/* =========================
   FONTES E TOKENS (padrão do resto do site)
========================= */

@font-face {
    font-family: inter-black;
    src: url('../fonts/Inter_18pt-Black.ttf');
}
@font-face {
    font-family: inter-bold;
    src: url('../fonts/Inter_18pt-Bold.ttf');
}
@font-face {
    font-family: inter-regular;
    src: url('../fonts/Inter_24pt-Regular.ttf');
}

:root {
    --azul-escuro: #001f3f;
    --azul-profundo: #0b2545;
    --azul-claro-bg: #eaf5f9;
    --texto-secundario: #36526b;
    --branco: #ffffff;

    --sombra-card: 0 14px 34px rgba(11, 37, 69, 0.12);
    --radius: 14px;

    --tl-verde: #01bc4c;
}

.container-desktop {	
	padding-top: 90px;	
}

/* Cores por década. Qualquer década sem regra própria aqui cai no fallback
   var(--tl-cor, var(--azul-profundo)) usado nos seletores que consomem --tl-cor. */
.decada-1970s { --tl-cor: #06b6d4; }
.decada-1980s { --tl-cor: #2563eb; }
.decada-1990s { --tl-cor: #01bc4c; }
.decada-2000s { --tl-cor: #f59e0b; }
.decada-2010s { --tl-cor: #f97316; }
.decada-2020s { --tl-cor: #dc2626; }

/* =========================
   HERO EDITORIAL
========================= */

.tl-hero {
    padding: 14px 0 8px;
    max-width: 880px;
}

.tl-hero h1 {
    font-family: inter-black;
    font-size: 34pt;
    line-height: 1.08;
    letter-spacing: -0.5px;
    color: var(--azul-escuro);
    margin: 0 0 18px 0;
}

.tl-hero-texto {
    font-family: inter-regular;
    font-size: 13.5pt;
    line-height: 1.7;
    color: var(--texto-secundario);
    margin: 0 0 14px 0;
}

/* =========================
   RESUMO HISTÓRICO
========================= */

.tl-resumo {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 36px;
}

.tl-resumo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 22px;
    border-radius: var(--radius);
    background: var(--azul-claro-bg);
    min-width: 150px;
    flex: 1 1 150px;
}

.tl-resumo-valor {
    font-family: inter-black;
    font-size: 18pt;
    color: var(--azul-profundo);
}

.tl-resumo-label {
    font-family: inter-regular;
    font-size: 9.5pt;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--texto-secundario);
}

/* =========================
   TOOLBAR (filtros + botão reviews)
========================= */

.tl-secao {
    padding-bottom: 20px;
}

.tl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 6px;
}

.tl-toolbar-filtros {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tl-filtro {
    font-family: inter-bold;
    font-size: 10.5pt;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(11, 37, 69, 0.15);
    background: #fff;
    color: var(--texto-secundario);
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.tl-filtro:hover {
    border-color: var(--tl-cor, var(--azul-profundo));
    color: var(--tl-cor, var(--azul-profundo));
}

.tl-filtro-ativo,
.tl-filtro-ativo:hover {
    background: var(--tl-cor, var(--azul-profundo));
    border-color: var(--tl-cor, var(--azul-profundo));
    color: #fff;
}

.tl-btn-reviews {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inter-black;
    font-size: 10.5pt;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--branco);
    background: var(--azul-profundo);
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}

.tl-btn-reviews:hover {
    background: var(--azul-escuro);
    color: var(--branco);
    text-decoration: none;
    transform: translateY(-2px);
}

.tl-btn-reviews-icone {
    font-size: 11pt;
}

.tl-btn-reviews-grande {
    font-size: 12pt;
    padding: 14px 26px;
}

.tl-contagem {
    font-family: inter-bold;
    font-size: 10.5pt;
    color: var(--texto-secundario);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-height: 18px;
    margin: 10px 2px 18px;
}

/* =========================
   TIMELINE: GRID (desktop/tablet)
========================= */

.tl-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px 16px;
    align-items: start;
}

.tl-decada-marcador {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    margin: 30px 0 2px;
}

.tl-grid > .tl-decada-marcador:first-child {
    margin-top: 0;
}

.tl-decada-marcador-texto {
    font-family: inter-black;
    font-size: 10.5pt;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tl-cor, var(--azul-profundo));
    padding: 4px 16px;
    border: 1.5px solid var(--tl-cor, var(--azul-profundo));
    border-radius: 999px;
}

.tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* No desktop o wrapper não deve interferir no layout em coluna do .tl-item;
   no mobile (media query abaixo) ele vira o bloco "ano + card" à direita da linha. */
.tl-conteudo {
    display: contents;
}

.tl-connector {
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-connector::before,
.tl-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    background: var(--tl-cor, var(--azul-profundo));
    opacity: 0.55;
    transform: translateY(-50%);
}

.tl-connector::before {
    left: 0;
    width: calc(50% - 15px);
}

.tl-connector::after {
    right: 0;
    width: calc(50% - 15px);
}

.tl-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tl-cor, var(--azul-profundo));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inter-black;
    font-size: 9.5pt;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(11, 37, 69, 0.25);
    flex-shrink: 0;
}

.tl-ano {
    font-family: inter-black;
    font-size: 12.5pt;
    color: var(--azul-escuro);
    margin: 8px 0 10px;
}

.tl-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(11, 37, 69, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra-card);
    transition: 0.2s;
    cursor: pointer;
}

.tl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(11, 37, 69, 0.18);
    text-decoration: none;
}

.tl-card:hover .tl-review-link {
    color: var(--tl-verde);
}

.tl-card-sem-review {
    cursor: default;
}

.tl-card-sem-review:hover {
    transform: none;
    box-shadow: var(--sombra-card);
}

.tl-capa-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef2f5;
}

.tl-capa {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-corpo {
    padding: 10px 12px 14px;
}

.tl-nome {
    font-family: inter-black;
    font-size: 11pt;
    line-height: 1.28;
    color: var(--azul-escuro);
    margin-bottom: 4px;
}

.tl-plataforma {
    font-family: inter-regular;
    font-size: 9pt;
    color: var(--texto-secundario);
    margin-bottom: 8px;
}

.tl-review-link {
    font-family: inter-bold;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--azul-profundo);
    transition: color 0.2s;
}

.tl-review-brevem {
    font-family: inter-bold;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--texto-secundario);
    opacity: 0.65;
}

/* =========================
   FECHAMENTO EDITORIAL
========================= */

.tl-fechamento-secao {
    background: var(--azul-claro-bg);
    padding: 48px 0;
    margin-top: 20px;
}

.tl-fechamento {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.tl-fechamento h2 {
    font-family: inter-black;
    font-size: 22pt;
    color: var(--azul-escuro);
    margin: 0 0 16px 0;
}

.tl-fechamento p {
    font-family: inter-regular;
    font-size: 13pt;
    line-height: 1.7;
    color: var(--texto-secundario);
    margin: 0 0 14px 0;
}

.tl-fechamento-pergunta {
    font-family: inter-bold;
    color: var(--azul-escuro) !important;
    margin-top: 24px !important;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 991px) {

    .tl-hero h1 { font-size: 27pt; }
    .tl-hero-texto { font-size: 12.5pt; }

    .tl-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 26px 12px; }
}

@media (max-width: 767px) {

    .tl-resumo-item { min-width: 130px; padding: 12px 16px; }
    .tl-resumo-valor { font-size: 15pt; }

    .tl-toolbar { flex-direction: column; align-items: stretch; }

    .tl-toolbar-filtros {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .tl-btn-reviews { justify-content: center; }

    /* Timeline vira vertical: uma linha contínua à esquerda, cards à direita */
    .tl-grid {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding-left: 4px;
    }

    .tl-grid::before {
        content: '';
        position: absolute;
        top: 6px;
        bottom: 6px;
        left: 17px;
        width: 2px;
        background: linear-gradient(to bottom, #06b6d4, #2563eb, #01bc4c, #f59e0b, #f97316, #dc2626);
        opacity: 0.35;
        z-index: 0;
    }

    .tl-decada-marcador { margin: 12px 0 0; padding-left: 40px; }
    .tl-grid > .tl-decada-marcador:first-child { margin-top: 0; }

    .tl-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        position: relative;
        z-index: 1;
    }

    .tl-connector {
        width: 28px;
        height: auto;
        align-self: stretch;
        flex-shrink: 0;
    }

    .tl-connector::before,
    .tl-connector::after {
        display: none;
    }

    .tl-conteudo {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .tl-ano { margin: 0 0 8px; text-align: left; }

    .tl-card { flex-direction: row; }

    .tl-capa-wrap { width: 84px; aspect-ratio: 1 / 1; flex-shrink: 0; }

    .tl-corpo { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; }
}
