/* ===========================================================
   Jogos & Grandes Jogos — GE Brownsea 113/SC
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f1b35;
    --bg2: #0b1428;
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --amarelo: #f2c94c;
    --vermelho: #c0392b;
    --verde: #2ecc71;
    --azul: #4a86e8;
    --dim: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--bg);
    color: #fff;
    padding: 1.5em 1em 3em;
    max-width: 1040px;
    margin: 0 auto;
    line-height: 1.6;
}

a { color: inherit; }

.j-voltar {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5em 0.2em;
    margin: 0 0 0.9em -0.2em;
}
.j-voltar:hover { color: var(--amarelo); }

/* ---------- HEADER ---------- */
#j-lista-view { position: relative; }
#j-lista-view::before {
    content: "";
    position: absolute;
    top: -1.5em;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 90vw);
    height: min(560px, 90vw);
    background: url("../../images/brasao.png") center top / contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
.j-header, .j-filtros, .j-lista, .j-vazio { position: relative; z-index: 1; }
.j-header { text-align: center; max-width: 640px; margin: 0 auto 1.8em; }
.j-badge { font-size: 2.6em; }
.j-header h1 { font-size: 1.9em; font-weight: 800; margin-top: 0.1em; }
.j-header p { margin-top: 0.5em; font-size: 0.9em; color: var(--dim); }

/* ---------- FILTROS ---------- */
.j-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
    margin-bottom: 1.8em;
}
.j-chip {
    padding: 0.5em 1.1em;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--dim);
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.j-chip:hover { color: #fff; }
.j-chip.active { background: #fff; color: var(--bg); border-color: #fff; }

/* ---------- LISTA / CARDS ---------- */
.j-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
    justify-content: center;
    gap: 1.2em;
}

.j-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.j-card:hover { transform: translateY(-4px); border-color: var(--amarelo); }

.j-capa {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1c2f57, #0b1428);
    display: flex;
    align-items: center;
    justify-content: center;
}
.j-capa::before {
    content: attr(data-emoji);
    position: absolute;
    font-size: 2.4em;
    opacity: 0.4;
}
.j-capa-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.j-status {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35em 0.7em;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.j-status.aberta { color: #0b1428; background: var(--verde); }
.j-status.breve { color: var(--amarelo); border: 1px solid var(--amarelo); }
.j-status.encerrado { color: var(--dim); }
.j-status.realizado { color: #fff; background: rgba(74, 134, 232, 0.5); }

.j-card-corpo { padding: 0.9em 1em 1.1em; display: flex; flex-direction: column; gap: 0.4em; flex: 1; }
.j-card-edicao { font-size: 0.68em; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--amarelo); }
.j-card-corpo h2 { font-size: 1.05em; font-weight: 800; }
.j-card-meta { display: flex; flex-direction: column; gap: 0.15em; font-size: 0.74em; color: var(--dim); }
.j-card-meta i { width: 13px; color: var(--amarelo); }
.j-card-resumo {
    font-size: 0.8em;
    color: #dfe3ea;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.j-card-ramos { font-size: 0.72em; color: var(--dim); margin-top: 0.15em; }
.j-card-ramos i { color: var(--amarelo); margin-right: 0.3em; }
.j-card-cta {
    margin-top: auto;
    padding-top: 0.5em;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--amarelo);
}
.j-card-cta i { transition: transform 0.15s ease; }
.j-card:hover .j-card-cta i { transform: translateX(4px); }

.j-vazio, .j-fotos-vazio {
    text-align: center;
    color: var(--dim);
    font-size: 0.9em;
    padding: 2em 1em;
    border: 1px dashed var(--border);
    border-radius: 14px;
}

/* ---------- DETALHE ---------- */
.j-voltar-lista {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--dim);
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 1.2em;
}
.j-voltar-lista:hover { color: var(--amarelo); }

.j-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #1c2f57, #0b1428);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin-bottom: 1.4em;
}
.j-hero::before {
    content: attr(data-emoji);
    position: absolute;
    font-size: 5em;
    opacity: 0.12;
}
.j-hero .j-capa-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.32;
    z-index: 0;
}
.j-hero-txt {
    position: relative;
    z-index: 1;
    padding: 2em 1.5em;
    text-align: center;
    max-width: 640px;
}
.j-hero-txt .j-status { position: static; display: inline-block; margin-bottom: 0.8em; }
.j-hero-edicao {
    display: block;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--amarelo);
}
.j-hero-txt h1 { font-size: 1.9em; font-weight: 800; margin: 0.1em 0 0.4em; }
.j-hero-txt p { font-size: 0.92em; color: #e7ebf2; }

/* facts */
.j-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8em;
    margin-bottom: 1.4em;
}
.j-fact {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9em 1em;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}
.j-fact i { color: var(--amarelo); font-size: 0.95em; margin-bottom: 0.25em; }
.j-fact-k { font-size: 0.68em; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dim); }
.j-fact-v { font-size: 0.88em; font-weight: 600; }

/* CTAs */
.j-ctas { display: flex; flex-wrap: wrap; gap: 0.7em; margin-bottom: 2em; }
.j-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.2em;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: #fff;
    text-decoration: none;
    font-size: 0.84em;
    font-weight: 700;
    transition: all 0.15s ease;
}
.j-btn:hover { border-color: var(--amarelo); color: var(--amarelo); }
.j-btn.primario { background: var(--amarelo); color: #0b1428; border-color: var(--amarelo); }
.j-btn.primario:hover { background: #fff; border-color: #fff; color: #0b1428; }

/* blocos */
.j-bloco {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.3em 1.4em;
    margin-bottom: 1.2em;
}
.j-bloco h3 {
    font-size: 1.05em;
    font-weight: 800;
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.j-bloco h3 i { color: var(--amarelo); }
.j-bloco > p { font-size: 0.9em; color: #e2e6ee; margin-bottom: 0.6em; }
.j-bloco ul, .j-bloco ol { padding-left: 1.3em; }
.j-bloco li { font-size: 0.88em; color: #e2e6ee; margin-bottom: 0.35em; }

/* details (boletim / faq) */
.j-det {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7em 0.9em;
    margin-bottom: 0.6em;
}
.j-det summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9em;
    list-style: none;
}
.j-det summary::-webkit-details-marker { display: none; }
.j-det summary::before { content: "▸ "; color: var(--amarelo); }
.j-det[open] summary::before { content: "▾ "; }
.j-det p { margin-top: 0.5em; font-size: 0.86em; color: #d9dee8; }

/* cronograma */
.j-crono { list-style: none; padding-left: 0 !important; }
.j-crono li {
    display: flex;
    gap: 0.9em;
    padding: 0.55em 0;
    border-bottom: 1px dashed var(--border);
}
.j-crono li:last-child { border-bottom: none; }
.j-crono-h { flex-shrink: 0; width: 62px; font-weight: 800; color: var(--amarelo); font-size: 0.85em; }
.j-crono-a { font-size: 0.86em; color: #e2e6ee; }

/* checklist */
.j-checklist { list-style: none; padding-left: 0 !important; }
.j-checklist li { margin-bottom: 0.5em; }
.j-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
    font-size: 0.88em;
    cursor: pointer;
    color: #e2e6ee;
}
.j-checklist input {
    width: 17px; height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--verde);
}
.j-checklist input:checked + * { text-decoration: line-through; opacity: 0.6; }
.j-naolevar-t { font-weight: 700; font-size: 0.85em; margin: 1em 0 0.3em; color: var(--vermelho); }
.j-naolevar li { color: var(--dim) !important; }

/* camiseta */
.j-camiseta { display: flex; gap: 1.2em; flex-wrap: wrap; align-items: flex-start; }
.j-camiseta-img {
    width: 160px;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: cover;
}
.j-camiseta > div { flex: 1; min-width: 200px; }
.j-camiseta ul { list-style: none; padding-left: 0 !important; margin-bottom: 0.9em; }
.j-camiseta li { margin-bottom: 0.4em; }

/* fotos */
.j-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6em;
}
.j-fotos img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.j-org { font-size: 0.8em; color: var(--dim); text-align: center; margin-top: 1.5em; }

.j-footer {
    text-align: center;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3em;
}

@media (max-width: 640px) {
    .j-hero-txt h1 { font-size: 1.5em; }
    .j-header h1 { font-size: 1.5em; }
    .j-lista { grid-template-columns: minmax(0, 320px); }
    .j-capa { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
