/* ============================================================
   Páginas de inscrição do Talentos: agências e estudantes
   (participe/pagina.php). Carregada junto com talentos-apresentacao.css,
   de onde vêm os tokens do festival (--tf-*), .tf-rotulo, .tf-cabeca,
   .tf-botao-claro e a barra escura sobre o topo.
   ============================================================ */

/* ===== TOPO ===== */
.tp-topo {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(45% 80% at 88% 15%, rgba(255, 34, 175, 0.32), transparent 65%),
        radial-gradient(50% 90% at 5% 100%, rgba(24, 92, 251, 0.38), transparent 65%),
        var(--tf-escuro);
    color: #ffffff;
}

.tp-topo__grade {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
}

.tp-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tp-voltar:hover,
.tp-voltar:focus-visible {
    color: #ffffff;
}

.tp-titulo {
    margin: 0;
    font-family: var(--tvrs-fonte-titulo);
    font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.tp-resumo {
    max-width: 56ch;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 28px;
}

.tp-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--tvrs-raio-pill);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

.tp-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.tp-status--aberta i {
    background: #36d67e;
    box-shadow: 0 0 10px #36d67e;
}

.tp-topo__acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* o ícone grande à direita, num anel em degradê */
.tp-topo__icone {
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--tf-escuro) 0 64%, transparent 65%),
        var(--tf-grad);
    color: #ffffff;
    font-size: 4.5rem;
    box-shadow: 0 0 80px rgba(136, 0, 248, 0.35);
}

/* ===== PASSO A PASSO ===== */
.tp-passos {
    padding: 96px 0 64px;
}

.tp-passos__lista {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-passo {
    padding-top: 24px;
    border-top: 2px solid var(--tvrs-borda-suave);
}

.tp-passo__numero {
    display: block;
    margin-bottom: 16px;
    font-family: var(--tvrs-fonte-titulo);
    font-size: 2.5rem;
    line-height: 1;
    background: var(--tf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tp-passo h3 {
    margin: 0 0 8px;
    font-family: var(--tvrs-fonte-titulo);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.2;
}

.tp-passo p {
    margin: 0;
    color: var(--tvrs-texto-suave);
    font-size: 1rem;
    line-height: 24px;
}

/* ===== O QUE TER EM MÃOS + REGRAS ===== */
.tp-detalhes {
    padding: 32px 0 64px;
}

.tp-detalhes__grade {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.tp-cartao {
    padding: 40px;
    border: 1px solid var(--tvrs-borda-suave);
    border-radius: var(--tvrs-raio-lg);
    background: #ffffff;
}

.tp-cartao__titulo {
    margin: 0 0 24px;
    font-family: var(--tvrs-fonte-titulo);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.15;
}

.tp-lista {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-lista li {
    position: relative;
    padding-left: 34px;
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    line-height: 24px;
}

.tp-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
        var(--tf-grad);
}

.tp-regras {
    display: grid;
    margin: 0;
}

.tp-regras > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--tvrs-borda-suave);
}

.tp-regras > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.tp-regras dt {
    color: var(--tvrs-azul);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 24px;
    text-transform: uppercase;
}

.tp-regras dd {
    margin: 0;
    color: var(--tvrs-texto-2);
    font-size: 1rem;
    line-height: 24px;
}

.tp-nota {
    margin: 20px 0 0;
    color: var(--tvrs-texto-apagado);
    font-size: 0.875rem;
    line-height: 20px;
}

/* ===== CHAMADA FINAL ===== */
.tp-final {
    padding: 32px 0 96px;
}

.tp-final__caixa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 48px;
    padding: 48px 56px;
    border-radius: var(--tvrs-raio-lg);
    background:
        radial-gradient(45% 90% at 90% 0%, rgba(255, 34, 175, 0.3), transparent 65%),
        radial-gradient(50% 100% at 0% 100%, rgba(24, 92, 251, 0.38), transparent 65%),
        var(--tf-escuro);
    color: #ffffff;
}

.tp-final__caixa .ads-titulo {
    color: #ffffff;
}

.tp-final__caixa p {
    max-width: 52ch;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    line-height: 26px;
}

.tp-final__acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-outro {
    margin: 32px 0 0;
    color: var(--tvrs-texto-suave);
    text-align: center;
}

.tp-outro a {
    color: var(--tvrs-azul);
    font-weight: 600;
    text-decoration: none;
}

.tp-outro a:hover,
.tp-outro a:focus-visible {
    text-decoration: underline;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 991.98px) {
    .tp-topo__icone {
        width: 160px;
        height: 160px;
        font-size: 3.25rem;
    }

    .tp-passos__lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .tp-detalhes__grade {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .tp-topo {
        padding: 48px 0 56px;
    }

    .tp-topo__grade {
        grid-template-columns: 1fr;
    }

    .tp-topo__icone {
        display: none;
    }

    .tp-resumo {
        font-size: 1rem;
        line-height: 24px;
    }

    .tp-topo__acoes,
    .tp-final__acoes {
        flex-direction: column;
        align-items: stretch;
    }

    .tp-topo__acoes > *,
    .tp-final__acoes > * {
        justify-content: center;
    }

    .tp-passos {
        padding: 56px 0 32px;
    }

    .tp-passos__lista {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tp-detalhes {
        padding: 16px 0 40px;
    }

    .tp-cartao {
        padding: 28px 20px;
    }

    .tp-regras > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tp-final {
        padding: 16px 0 56px;
    }

    .tp-final__caixa {
        padding: 32px 20px;
    }
}

/* ===== QUANDO E ONDE no topo ===== */
.tp-evento {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9375rem;
}

.tp-evento li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tp-evento i {
    color: #c084ff;
}

.tp-evento b {
    color: #ffffff;
    font-weight: 600;
}

.tp-evento a {
    color: #ffffff;
}

/* ===== REGULAMENTO em destaque no cartão das regras ===== */
.tp-regulamento {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 20px;
    border: 1px solid var(--tvrs-borda-suave);
    border-radius: var(--tvrs-raio-md);
    color: var(--tvrs-texto);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tp-regulamento > i:first-child {
    color: #c4302b;
    font-size: 1.75rem;
}

.tp-regulamento span {
    display: grid;
    flex: 1;
    color: var(--tvrs-texto-apagado);
    font-size: 0.875rem;
}

.tp-regulamento b {
    color: var(--tvrs-texto);
    font-size: 1rem;
}

.tp-regulamento > i:last-child {
    color: var(--tvrs-azul);
}

.tp-regulamento:hover,
.tp-regulamento:focus-visible {
    border-color: var(--tvrs-azul);
    background: var(--tvrs-azul-claro);
    color: var(--tvrs-texto);
}
