/**
 * Estilos Públicos do JAIF Manager.
 * Todos os seletores são encapsulados estritamente sob .jaif-portal-wrapper
 * para evitar qualquer interferência ou conflito com o tema ativo do portal do IF Baiano.
 *
 * @package JAIF_Manager
 */

:root {
    --jaif-primary: #174447;
    --jaif-secondary: #fab720;
    --jaif-accent: #e31436;
    --jaif-bg-light: #f4f9f9;
    --jaif-border-color: #cde0df;
    --jaif-gold: #ffd700;
    --jaif-silver: #c0c0c0;
    --jaif-bronze: #cd7f32;
}

/* ==========================================================================
   Base e Estrutura Principal
   ========================================================================== */
body.jaif-landing-page {
    margin: 0;
    padding: 0;
    background-color: var(--jaif-bg-light);
    background-repeat: repeat;
    background-size: auto;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333333;
    scroll-behavior: smooth;
}

.jaif-portal-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333333;
}

.jaif-portal-wrapper * {
    box-sizing: border-box;
}

.jaif-portal-wrapper #wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    background-color: transparent;
}

.jaif-portal-wrapper #main-border {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
}

.jaif-portal-wrapper #main {
    padding-top: 57%;
    margin: 0 auto;
}

.jaif-portal-wrapper #container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px 20px;
    margin-top: 10px;
}

.jaif-portal-wrapper #content {
    margin: 0 auto;
}

/* ==========================================================================
   Marcas do Topo (Campanha Anual + IF Baiano Perene)
   ========================================================================== */
.jaif-portal-wrapper .jaif-topo-marcas {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.jaif-portal-wrapper .jaif-logo-evento {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.jaif-portal-wrapper .jaif-logo-evento:hover {
    transform: scale(1.02);
}

.jaif-portal-wrapper .jaif-marca-institucional {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   Menu Âncora Rápido
   ========================================================================== */
.jaif-portal-wrapper #menu {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 25px auto 35px auto;
}

.jaif-portal-wrapper #menu a {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(
      135deg,
      var(--jaif-primary) 50%,
      var(--jaif-secondary) 50%
    ) border-box;
}

.jaif-portal-wrapper #menu a:hover {
    background: var(--jaif-primary);
    border-color: var(--jaif-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Títulos de Seção
   ========================================================================== */
.jaif-portal-wrapper .titutloSecao {
    font-size: 1.25rem;
    text-align: center;
    margin: 40px 10px 25px 10px;
    color: var(--jaif-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==========================================================================
   Apresentação / Avisos
   ========================================================================== */
.jaif-portal-wrapper #apresentacao {
    padding: 15px 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    background-color: #fafff8;
    border: 1px solid #e1f0dc;
    border-radius: 8px;
    margin-bottom: 25px;
}

.jaif-portal-wrapper #apresentacao p {
    margin-bottom: 12px;
}

.jaif-portal-wrapper #apresentacao p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Barra de Filtro Rápido no Front-end
   ========================================================================== */
.jaif-portal-wrapper .jaif-frontend-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: #f4faf2;
    border: 1px solid #dbead8;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 0 auto 20px auto;
    max-width: 700px;
}

.jaif-portal-wrapper .jaif-filtro-campo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jaif-portal-wrapper .jaif-filtro-campo label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2f5d34;
}

.jaif-portal-wrapper .jaif-filtro-campo select {
    padding: 6px 12px;
    border: 1px solid #b6d4b2;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.85rem;
    color: #333333;
    outline: none;
    cursor: pointer;
}

.jaif-portal-wrapper .jaif-filtro-campo select:focus {
    border-color: var(--jaif-primary);
}

/* ==========================================================================
   Acordeão de Programação por Dias (Fiel ao tema 2025)
   ========================================================================== */
.jaif-portal-wrapper #programacao {
    padding: 10px 0;
}

.jaif-portal-wrapper .jaif-dia-lista-ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.jaif-portal-wrapper li.textTab {
    position: relative;
    padding: 16px 20px;
    margin: 0;
    border-top: 2px solid var(--jaif-secondary);
    border-radius: 6px;
    background-color: #fafdf9;
    transition: background-color 0.2s ease;
}

.jaif-portal-wrapper li.textTab:hover {
    background-color: #f2f9f0;
}

.jaif-portal-wrapper li.textTab h2 {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jaif-primary);
    cursor: pointer;
}

/* Indicador de Chevron / Sanfona */
.jaif-portal-wrapper li.textTab i {
    position: absolute;
    transform: translate(-6px, 0);
    margin-top: 4px;
    right: 20px;
    top: 18px;
    width: 14px;
    height: 14px;
}

.jaif-portal-wrapper li.textTab i:before,
.jaif-portal-wrapper li.textTab i:after {
    content: "";
    position: absolute;
    background-color: var(--jaif-accent);
    width: 3px;
    height: 10px;
    transition: transform 0.3s ease;
}

.jaif-portal-wrapper li.textTab i:before {
    transform: translate(-2px, 0) rotate(45deg);
}

.jaif-portal-wrapper li.textTab i:after {
    transform: translate(2px, 0) rotate(-45deg);
}

/* Checkbox invisível para alternar sanfona CSS (limitado ao cabeçalho do dia) */
.jaif-portal-wrapper li.textTab input[type="checkbox"] {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 56px;
    z-index: 2;
    opacity: 0;
    top: 0;
    left: 0;
    margin: 0;
}

.jaif-portal-wrapper li.textTab input[type="checkbox"]:checked ~ .jaif-acordeon-conteudo {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    display: none;
    transform: translate(0, 20px);
}

.jaif-portal-wrapper li.textTab input[type="checkbox"]:checked ~ i:before {
    transform: translate(2px, 0) rotate(45deg);
}

.jaif-portal-wrapper li.textTab input[type="checkbox"]:checked ~ i:after {
    transform: translate(-2px, 0) rotate(-45deg);
}

/* Conteúdo Expandido do Dia */
.jaif-portal-wrapper .jaif-acordeon-conteudo {
    position: relative;
    z-index: 3;
    transition: all 0.4s ease-in-out;
    margin-top: 15px;
}

.jaif-portal-wrapper .jaif-acordeon-conteudo ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jaif-portal-wrapper .jaif-item-jogo {
    padding: 12px 15px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #d9e6d8;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.035);
    text-align: left;
    font-size: 0.94rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jaif-portal-wrapper .jaif-item-jogo:hover {
    border-color: #b7d4b4;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.jaif-portal-wrapper .jaif-jogo-linha-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef4ed;
    color: #3d4a40;
}

.jaif-portal-wrapper .jaif-jogo-meta-esq {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
}

.jaif-portal-wrapper .jaif-jogo-hora {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--jaif-primary);
    background: #eef6ed;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.jaif-portal-wrapper .jaif-jogo-mod-wrap {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.jaif-portal-wrapper .jaif-jogo-mod {
    color: #1c2820;
    font-weight: 700;
    font-size: 0.94rem;
}

.jaif-portal-wrapper .jaif-jogo-gen {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5b6a5f;
}

.jaif-portal-wrapper .jaif-jogo-meta-dir {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.jaif-portal-wrapper .jaif-jogo-fase-pill {
    font-size: 0.76rem;
    font-weight: 600;
    color: #46574b;
    background: #f3f6f4;
    border: 1px solid #dde6df;
    padding: 2px 8px;
    border-radius: 999px;
}

.jaif-portal-wrapper .jaif-jogo-tag-pen {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #164f21;
    background: var(--jaif-secondary);
    padding: 2px 8px;
    border-radius: 999px;
}

.jaif-portal-wrapper .jaif-jogo-tag-wo {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--jaif-accent);
    padding: 2px 8px;
    border-radius: 999px;
}

.jaif-portal-wrapper .jaif-svg-icone {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--jaif-primary);
}

/* ==========================================================================
   Placares, Confrontos e Partidas (Card Compacto)
   ========================================================================== */
.jaif-portal-wrapper div.partida {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Parkinsans', 'Open Sans', sans-serif;
    margin: 4px 0;
    width: 100%;
}

.jaif-portal-wrapper .jaif-partida-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
}

.jaif-portal-wrapper .jaif-equipe-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.jaif-portal-wrapper .jaif-equipe-1 {
    justify-content: flex-end;
    text-align: right;
}

.jaif-portal-wrapper .jaif-equipe-2 {
    justify-content: flex-start;
    text-align: left;
}

.jaif-portal-wrapper div.partida .jaif-nome-time {
    color: #203025;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    min-width: 0;
}

.jaif-portal-wrapper div.partida .jaif-nome-time small {
    display: block;
    font-weight: 500;
    color: #5b695f;
    font-size: 0.78rem;
}

.jaif-portal-wrapper .jaif-equipe-slot.vencedor .jaif-nome-time {
    color: var(--jaif-primary);
    font-weight: 800;
}

.jaif-portal-wrapper .jaif-equipe-slot.perdedor .jaif-nome-time {
    color: #707b73;
    font-weight: 500;
}

.jaif-portal-wrapper span.placar {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    min-width: 34px;
    padding: 4px 10px;
    white-space: nowrap;
    background-color: #f5f7f5;
    border: 1px solid #d5e0d6;
    border-radius: 7px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #26382b;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.jaif-portal-wrapper span.placar.vencedor {
    background-color: var(--jaif-primary);
    border-color: var(--jaif-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(22, 97, 35, 0.24);
}

.jaif-portal-wrapper span.placar.perdedor {
    background-color: #f2f4f3;
    border-color: #dfe4e1;
    color: #7c8780;
    font-weight: 600;
}

.jaif-portal-wrapper span.placar.pendente {
    background-color: #f7faf7;
    border-color: #dce8dc;
    color: #738377;
    font-weight: 700;
}

.jaif-portal-wrapper .jaif-pen-score {
    font-size: 0.75em;
    font-weight: 600;
    opacity: 0.92;
}

.jaif-portal-wrapper .jaif-placar-vs {
    color: #96a399;
    font-weight: 700;
    font-size: 0.95rem;
    user-select: none;
}

/* W.O. */
.jaif-portal-wrapper .jaif-partida-wo {
    color: var(--jaif-accent);
    font-weight: 800;
    font-size: 0.96rem;
    justify-content: flex-start;
}

/* Provas Individuais e Pódio Estruturado (Atletismo, Natação, Xadrez, Tênis de Mesa) */
.jaif-portal-wrapper .jaif-podio-lista {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin: 2px 0;
}

.jaif-portal-wrapper .jaif-podio-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #fafcf9;
    border: 1px solid #e7efe6;
    text-align: left;
}

.jaif-portal-wrapper .jaif-podio-linha.jaif-podio-1 {
    background: linear-gradient(90deg, #f1fae8 0%, #f9fdf4 100%);
    border-color: #c5e1ba;
    border-left: 4px solid var(--jaif-primary);
}

.jaif-portal-wrapper .jaif-podio-esq {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.jaif-portal-wrapper .jaif-podio-medalha {
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
    color: #36453a;
}

.jaif-portal-wrapper .jaif-podio-nome {
    font-weight: 600;
    font-size: 0.92rem;
    color: #202c24;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.jaif-portal-wrapper .jaif-podio-1 .jaif-podio-nome {
    color: var(--jaif-primary);
    font-weight: 700;
}

.jaif-portal-wrapper .jaif-vencedor-campus-badge {
    flex-shrink: 0;
    background: #edf5eb;
    color: #1f5327;
    border: 1px solid #d0e4cc;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.jaif-portal-wrapper .jaif-podio-1 .jaif-vencedor-campus-badge {
    background: var(--jaif-secondary);
    color: #15401c;
    border-color: #cbe65b;
}

/* Rodapé discreto do card */
.jaif-portal-wrapper .jaif-jogo-rodape {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 12px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #eef4ed;
    font-size: 0.8rem;
    color: #5e6d62;
}

.jaif-portal-wrapper .jaif-jogo-local {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #4f5f53;
}

.jaif-portal-wrapper .jaif-jogo-local .jaif-svg-icone {
    width: 14px;
    height: 14px;
    color: var(--jaif-accent);
}

.jaif-portal-wrapper .jaif-jogo-obs-discreta {
    color: #69776d;
    font-size: 0.78rem;
    line-height: 1.35;
}

/* ==========================================================================
   Seção: Quem Venceu
   ========================================================================== */
.jaif-portal-wrapper .vencedores {
    margin: 35px auto 20px auto;
    max-width: 900px;
}

.jaif-portal-wrapper .vencedores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.jaif-portal-wrapper .vencedores-grid button {
    padding: 8px 14px;
    font-weight: 700;
    border: 1px solid var(--jaif-primary);
    background-color: #ffffff;
    color: #222222;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.jaif-portal-wrapper .vencedores-grid button:hover,
.jaif-portal-wrapper .vencedores-grid button.ativo {
    background-color: var(--jaif-secondary);
    border-color: var(--jaif-primary);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.jaif-portal-wrapper .vencedores-content {
    display: none;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.95rem;
    padding: 20px;
    border: 1px solid #d4ebd0;
    border-radius: 8px;
    background-color: #f9ffef;
    animation: jaifFadeIn 0.35s ease;
}

.jaif-portal-wrapper .vencedores-content .modalidade-quem-venceu {
    font-family: 'Parkinsans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.jaif-portal-wrapper .jaif-vencedores-flex-cat {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin-top: 15px;
}

.jaif-portal-wrapper .categoria {
    flex: 1 1 250px;
    background: #ffffff;
    border: 1px solid #e2f0df;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.jaif-portal-wrapper .categoria h4 {
    font-size: 1rem;
    color: var(--jaif-primary);
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--jaif-secondary);
}

.jaif-portal-wrapper .categoria ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jaif-portal-wrapper .categoria ul li {
    padding: 6px 0;
    border-bottom: 1px dotted #e0e0e0;
    font-size: 0.9rem;
}

.jaif-portal-wrapper .categoria ul li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Tabela do Quadro de Medalhas (Fiel ao tema 2025)
   ========================================================================== */
.jaif-portal-wrapper figure.medalhas {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 20px auto 10px auto;
}

.jaif-portal-wrapper figure.medalhas table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.jaif-portal-wrapper figure.medalhas table th,
.jaif-portal-wrapper figure.medalhas table td {
    padding: 8px 12px;
    border: 0;
    text-align: center;
}

.jaif-portal-wrapper figure.medalhas table th:first-child,
.jaif-portal-wrapper figure.medalhas table td:first-child {
    width: 40px;
    text-align: center;
    font-weight: 700;
}

.jaif-portal-wrapper figure.medalhas table th:nth-child(2),
.jaif-portal-wrapper figure.medalhas table td:nth-child(2) {
    text-align: left;
}

.jaif-portal-wrapper figure.medalhas table thead tr {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    background-color: #e8d193;
    font-weight: 700;
}

/* Cores dos cabeçalhos de medalhas */
.jaif-portal-wrapper figure.medalhas table th:nth-child(3) {
    background-color: var(--jaif-gold);
    color: #554400;
}

.jaif-portal-wrapper figure.medalhas table th:nth-child(4) {
    background-color: var(--jaif-silver);
    color: #333333;
}

.jaif-portal-wrapper figure.medalhas table th:nth-child(5) {
    background-color: var(--jaif-bronze);
    color: #ffffff;
}

.jaif-portal-wrapper figure.medalhas table tbody tr {
    background-color: transparent;
    transition: background-color 0.15s ease;
}

.jaif-portal-wrapper figure.medalhas table tbody tr:nth-of-type(odd) {
    background-color: #f3f3f3;
}

.jaif-portal-wrapper figure.medalhas table tbody tr:hover {
    background-color: #dbdbdb;
}

/* Nota Técnica abaixo da tabela de medalhas */
.jaif-portal-wrapper .jaif-nota-tecnica {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 600px;
    margin: 15px auto 30px auto;
    background: #fffdf5;
    border: 1px solid #f0e2b6;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #634d0b;
    line-height: 1.5;
}

.jaif-portal-wrapper .jaif-nota-tecnica-icone {
    font-size: 1.2rem;
    line-height: 1;
}

/* ==========================================================================
   Rodapé Institucional do IF Baiano (Perene)
   ========================================================================== */
.jaif-portal-wrapper #footer {
    width: 100%;
    margin-top: 40px;
    padding: 30px 20px;
    background-color: #f7f9f7;
    border-top: 2px solid #e1ebe0;
    text-align: center;
}

.jaif-portal-wrapper #site-info {
    max-width: 800px;
    margin: 0 auto;
}

.jaif-portal-wrapper #site-info .marca-if-baiano img {
    margin-bottom: 15px;
    display: inline-block;
}

.jaif-portal-wrapper #site-info .textorodape {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.6;
}

.jaif-portal-wrapper #site-info .textorodape a {
    color: var(--jaif-primary);
    text-decoration: none;
}

.jaif-portal-wrapper #site-info .textorodape a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Barra de Homologação / Visualização Interna Flutuante
   ========================================================================== */
.jaif-barra-homologacao {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1d2327;
    color: #ffffff;
    z-index: 999999;
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    font-size: 0.88rem;
    font-weight: 600;
}

.jaif-barra-homologacao-conteudo {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.jaif-barra-texto {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f0f6fc;
}

.jaif-barra-btn {
    background: #2271b1;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.jaif-barra-btn:hover {
    background: #135e96;
}

body.jaif-landing-page:has(.jaif-barra-homologacao) {
    padding-top: 42px;
}

/* ==========================================================================
   Tela de Bloqueio Institucional (Privado, Rascunho ou Senha)
   ========================================================================== */
.jaif-portal-wrapper .jaif-bloqueio-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.jaif-portal-wrapper .jaif-bloqueio-box {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    max-width: 520px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
}

.jaif-portal-wrapper .jaif-bloqueio-marca {
    max-width: 220px;
    height: auto;
    margin-bottom: 25px;
}

.jaif-portal-wrapper .jaif-bloqueio-icone {
    font-size: 3rem;
    margin-bottom: 12px;
}

.jaif-portal-wrapper .jaif-bloqueio-box h2 {
    font-size: 1.4rem;
    color: var(--jaif-primary);
    margin: 0 0 8px 0;
}

.jaif-portal-wrapper .jaif-bloqueio-box h3 {
    font-size: 1.1rem;
    color: #555555;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.jaif-portal-wrapper .jaif-bloqueio-msg {
    font-size: 0.95rem;
    color: #646970;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Animação Fade In */
@keyframes jaifFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Seção: Últimos Resultados (Cards com Rolagem Horizontal)
   ========================================================================== */
.jaif-portal-wrapper .jaif-secao-ultimos-resultados {
    margin: 15px 0 35px 0;
    padding-bottom: 5px;
}

.jaif-portal-wrapper .jaif-ultimos-cards-container {
    width: 100%;
    position: relative;
}

.jaif-portal-wrapper .jaif-ultimos-cards-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 16px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--jaif-primary) #f0f0f0;
}

.jaif-portal-wrapper .jaif-ultimos-cards-track::-webkit-scrollbar {
    height: 6px;
}

.jaif-portal-wrapper .jaif-ultimos-cards-track::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.jaif-portal-wrapper .jaif-ultimos-cards-track::-webkit-scrollbar-thumb {
    background: var(--jaif-primary);
    border-radius: 4px;
}

.jaif-portal-wrapper .jaif-card-resultado {
    flex: 0 0 255px;
    min-width: 255px;
    max-width: 255px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--jaif-border-color);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jaif-portal-wrapper .jaif-card-resultado:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.09);
    border-color: var(--jaif-primary);
}

.jaif-portal-wrapper .jaif-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #edf4ec;
    padding-bottom: 8px;
    margin-bottom: 10px;
    gap: 6px;
}

.jaif-portal-wrapper .jaif-card-mod {
    font-size: 0.85rem;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jaif-portal-wrapper .jaif-card-gen {
    font-size: 0.75rem;
    color: #666;
}

.jaif-portal-wrapper .jaif-card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: #eef7ed;
    color: var(--jaif-primary);
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02rem;
    white-space: nowrap;
}

.jaif-portal-wrapper .jaif-card-body {
    margin-bottom: 10px;
}

.jaif-portal-wrapper .jaif-card-confronto {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jaif-portal-wrapper .jaif-card-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #2a372e;
    padding: 3px 6px;
    border-radius: 6px;
    gap: 8px;
}

.jaif-portal-wrapper .jaif-card-time.vencedor {
    font-weight: 700;
    color: var(--jaif-primary);
    background: #eef7ec;
}

.jaif-portal-wrapper .jaif-card-time.perdedor {
    font-weight: 500;
    color: #77837a;
}

.jaif-portal-wrapper .jaif-card-time.vencedor .jaif-time-score {
    background: var(--jaif-primary);
    color: #ffffff;
    border-color: var(--jaif-primary);
}

.jaif-portal-wrapper .jaif-card-time.perdedor .jaif-time-score {
    background: #f3f5f4;
    color: #7c8780;
    border-color: #e0e5e2;
    font-weight: 600;
}

.jaif-portal-wrapper .jaif-time-nome {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.jaif-portal-wrapper .jaif-time-score {
    font-weight: 800;
    font-size: 0.92rem;
    padding: 2px 7px;
    background: #f4f6f4;
    border: 1px solid #dbe2da;
    border-radius: 4px;
    min-width: 26px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.jaif-portal-wrapper .jaif-card-individual {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.84rem;
    padding: 2px 0;
}

.jaif-portal-wrapper .jaif-card-podio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #f9fbf9;
    border: 1px solid #edf3ec;
}

.jaif-portal-wrapper .jaif-card-podio-row.jaif-card-podio-1 {
    background: #f1fae8;
    border-color: #c8e3bd;
    border-left: 3px solid var(--jaif-primary);
}

.jaif-portal-wrapper .jaif-card-podio-esq {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.jaif-portal-wrapper .jaif-card-podio-pos {
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.8rem;
}

.jaif-portal-wrapper .jaif-card-podio-nome {
    font-weight: 600;
    color: #253228;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jaif-portal-wrapper .jaif-card-podio-1 .jaif-card-podio-nome {
    color: var(--jaif-primary);
    font-weight: 700;
}

.jaif-portal-wrapper .jaif-card-podio-campus {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ebf4ea;
    color: #1f5327;
    padding: 1px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.jaif-portal-wrapper .jaif-card-podio-1 .jaif-card-podio-campus {
    background: var(--jaif-secondary);
    color: #16401c;
}

.jaif-portal-wrapper .jaif-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #888;
    border-top: 1px solid #edf4ec;
    padding-top: 8px;
    gap: 6px;
}

.jaif-portal-wrapper .jaif-card-local {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 135px;
}

/* ==========================================================================
   Responsividade Mobile (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .jaif-portal-wrapper #wrapper {
        width: 100% !important;
        padding: 0 !important;
    }

    .jaif-portal-wrapper #container {
        padding: 15px 10px;
        margin-top: 0;
        border-radius: 0;
    }

    .jaif-portal-wrapper #menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .jaif-portal-wrapper #menu a {
        width: 100%;
        text-align: center;
    }

    .jaif-portal-wrapper .jaif-frontend-filtros {
        flex-direction: column;
        align-items: stretch;
    }

    .jaif-portal-wrapper .jaif-filtro-campo {
        flex-direction: column;
        align-items: stretch;
    }

    .jaif-portal-wrapper div.partida {
        font-size: 0.95rem;
    }

    .jaif-portal-wrapper li.textTab {
        padding: 12px 10px;
    }

    .jaif-portal-wrapper .jaif-item-jogo {
        padding: 10px 12px;
    }

    .jaif-portal-wrapper .jaif-jogo-meta-dir {
        margin-left: 0;
    }

    .jaif-portal-wrapper figure.medalhas table th,
    .jaif-portal-wrapper figure.medalhas table td {
        padding: 6px 4px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 560px) {
    .jaif-portal-wrapper .jaif-partida-grid {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .jaif-portal-wrapper .jaif-placar-vs {
        display: none;
    }

    .jaif-portal-wrapper .jaif-equipe-slot {
        width: 100%;
        justify-content: space-between;
        text-align: left;
        padding: 5px 8px;
        border-radius: 7px;
        background: #fafcfa;
        border: 1px solid #edf2ed;
    }

    .jaif-portal-wrapper .jaif-equipe-slot.vencedor {
        background: #eef7ec;
        border-color: #c5e1ba;
    }

    .jaif-portal-wrapper .jaif-equipe-slot.perdedor {
        background: #f9faf9;
        border-color: #ecefef;
    }

    .jaif-portal-wrapper .jaif-equipe-2 {
        flex-direction: row-reverse;
    }

    .jaif-portal-wrapper .jaif-podio-linha {
        padding: 6px 8px;
        gap: 6px;
    }

    .jaif-portal-wrapper .jaif-vencedor-campus-badge {
        font-size: 0.74rem;
        padding: 2px 7px;
    }
}
