/* ===========================================================
   Guia do Uniforme — GE Brownsea 113/SC
   =========================================================== */

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

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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background:
        radial-gradient(120% 60% at 50% -10%, #182a52 0%, var(--bg) 55%),
        var(--bg);
    color: #fff;
    padding: 1.5em 1em 3em;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}
/* brasão fantasma no fundo, bem apagado */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../../images/brasao.png') center 46% / 300px auto no-repeat;
    opacity: 0.02;
    pointer-events: none;
}

.u-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;
}
.u-voltar:hover { color: var(--amarelo); }

.u-header { text-align: center; max-width: 640px; margin: 0 auto 1.6em; }
.u-badge { position: relative; display: inline-block; font-size: 2.4em; }
.u-badge::after {
    content: '';
    position: absolute;
    inset: -16px;
    z-index: -1;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.28), transparent 70%);
    filter: blur(4px);
}
.u-header h1 { font-size: 1.8em; font-weight: 800; margin-top: 0.1em; }
.u-header p { margin-top: 0.5em; font-size: 0.9em; color: var(--dim); }

/* progresso */
.u-progress { max-width: 480px; margin: 0 auto 1.4em; }
.u-progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.78em;
    font-weight: 600;
    color: var(--dim);
    margin-bottom: 6px;
}
.u-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
#u-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--amarelo), var(--vermelho));
    transition: width 0.4s ease, background 0.4s ease;
}
.u-progress.completo .u-bar { box-shadow: 0 0 16px rgba(46, 204, 113, 0.55); }
.u-progress.completo #u-fill { background: linear-gradient(135deg, var(--verde), #6fe8a0); }
.u-progress.completo .u-progress-top span:last-child { color: var(--verde); font-weight: 800; }

/* filtros */
.u-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
    margin-bottom: 1.6em;
}
.u-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.5em 1.1em 0.5em 0.8em;
    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;
}
.u-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
    transition: box-shadow 0.15s ease;
}
.u-chip:hover { color: #fff; }
.u-chip.active {
    background: #fff;
    color: var(--bg);
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.u-chip.active .u-chip-dot { box-shadow: 0 0 0 2px rgba(15, 27, 53, 0.25); }

/* layout */
.u-main {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 1.6em;
    align-items: start;
}

.u-palco {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.055), transparent 65%),
        var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1em;
    position: sticky;
    top: 1em;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
/* sombra de "chão" sob o manequim */
.u-palco::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 58%;
    height: 20px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent 75%);
    filter: blur(2px);
    pointer-events: none;
}

/* SVG uniforme */
.u-svg { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
.u-tecido { fill: #2f4d7a; stroke: #1d3356; stroke-width: 2; stroke-linejoin: round; }
.u-placket { stroke: #1d3356; stroke-width: 2; }
.u-botao { fill: #cdd6e6; }
.u-bolso { fill: none; stroke: #1d3356; stroke-width: 2; stroke-linejoin: round; }
.u-lenco { fill: #c0392b; stroke: #8a2a20; stroke-width: 1.5; }
.u-fixador { fill: none; stroke: #f2c94c; stroke-width: 3; }
.u-bone { fill: #26406f; stroke: #16294b; stroke-width: 2; stroke-linejoin: round; }
.u-bone-brim { fill: #1c3357; stroke: #16294b; stroke-width: 2; stroke-linejoin: round; }
.u-cinto { fill: #2b2b2b; }
.u-fivela { fill: #d9a441; }
.u-short { fill: #7a5a3c; stroke: #5b4128; stroke-width: 2; stroke-linejoin: round; }
.u-perna { fill: #e8dcc8; }
.u-meia { fill: #f2ede2; stroke: #cbc3b2; stroke-width: 1.5; }

.u-hot { cursor: pointer; }
.u-hot circle {
    fill: rgba(15, 27, 53, 0.92);
    stroke: var(--amarelo);
    stroke-width: 2;
    transition: fill 0.15s ease, stroke 0.15s ease;
}
.u-hot text {
    fill: var(--amarelo);
    font-size: 12px;
    font-weight: 800;
    text-anchor: middle;
    font-family: 'Montserrat', sans-serif;
    pointer-events: none;
}
.u-hot:hover circle:not(.u-hot-halo) { fill: var(--vermelho); }
.u-hot.ok circle:not(.u-hot-halo) { stroke: var(--verde); }
.u-hot.sel circle:not(.u-hot-halo) { fill: var(--amarelo); stroke: var(--amarelo); }
.u-hot.sel text { fill: var(--bg); }
.u-hot:focus { outline: none; }
.u-hot:focus circle:not(.u-hot-halo) { stroke: #fff; stroke-width: 3; }

/* halo pulsante convidando a tocar — só nos itens ainda não marcados */
.u-hot-halo {
    fill: none;
    stroke: var(--amarelo);
    stroke-width: 2;
    opacity: 0;
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
}
.u-hot:not(.ok):not(.sel) .u-hot-halo { animation: u-pulso 3.2s ease-out infinite; }
.u-svg g.u-hot:nth-of-type(3n+2) .u-hot-halo { animation-delay: 1.05s; }
.u-svg g.u-hot:nth-of-type(3n) .u-hot-halo { animation-delay: 2.1s; }
@keyframes u-pulso {
    0%   { opacity: 0.5; transform: scale(1); }
    70%  { opacity: 0; transform: scale(1.6); }
    100% { opacity: 0; transform: scale(1.6); }
}

/* selo verde de "já tenho" sobre o número */
.u-selo-bg { fill: var(--verde); stroke: rgba(15, 27, 53, 0.92); stroke-width: 1.5; }
.u-selo-check { fill: none; stroke: rgba(15, 27, 53, 0.92); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* painel de detalhe */
.u-painel { margin-bottom: 1.2em; }
.u-dica {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 1.2em;
    color: var(--dim);
    font-size: 0.9em;
    text-align: center;
}
.u-card {
    position: relative;
    background:
        radial-gradient(140% 100% at 0% 0%, rgba(242, 201, 76, 0.06), transparent 60%),
        var(--card);
    border: 1px solid var(--amarelo);
    border-radius: 14px;
    padding: 1.4em 1.4em 1.3em;
    animation: u-card-in 0.35s ease;
}
@keyframes u-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.u-card-n {
    position: absolute;
    top: -14px; left: 18px;
    width: 30px; height: 30px;
    background: var(--amarelo);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.u-card h3 { font-size: 1.15em; margin: 0.3em 0 1em; }

/* foto de exemplo do item real */
.u-foto {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1em 0.5em 1.4em;
    margin-bottom: 1.1em;
    border-radius: 12px;
    background: radial-gradient(60% 85% at 50% 32%, rgba(242, 201, 76, 0.12), transparent 72%);
}
/* sombra de "chão" sob o item, ecoando o palco do manequim */
.u-foto::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 4px;
    width: 44%; height: 14px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent 75%);
    filter: blur(2px);
}
.u-foto img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 78%;
    max-height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
}
/* composição de várias peças lado a lado (ex.: numeral 113) — mesma altura pra todo mundo,
   já que as fotos de origem vêm em resoluções diferentes */
.u-foto-multi { align-items: flex-end; gap: 0.3em; }
.u-foto-multi img { width: auto; height: 110px; max-width: none; max-height: none; }

.u-fato { display: flex; gap: 0.7em; align-items: flex-start; margin-bottom: 1em; }
.u-fato:last-of-type { margin-bottom: 0; }
.u-fato-ico { flex: none; font-size: 1.05em; line-height: 1.5; }
.u-fato p { font-size: 0.9em; line-height: 1.55; color: #e7e7ea; margin: 0; }
.u-fato p strong {
    display: block;
    color: var(--amarelo);
    font-size: 0.7em;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 0.2em;
}
.u-obs {
    background: rgba(242, 201, 76, 0.08);
    border: 1px solid rgba(242, 201, 76, 0.22);
    border-radius: 10px;
    padding: 0.7em 0.8em;
    margin-top: 1.1em;
}
.u-obs p { color: var(--amarelo); font-size: 0.85em; }

.u-check {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-top: 1.1em;
    padding-top: 1em;
    border-top: 1px solid var(--border);
    font-size: 0.85em;
    color: var(--dim);
    cursor: pointer;
}
.u-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.u-check-caixa {
    flex: none;
    width: 19px; height: 19px;
    border: 2px solid var(--dim);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.u-check input:checked + .u-check-caixa {
    background: var(--verde);
    border-color: var(--verde);
}
.u-check input:checked + .u-check-caixa::after {
    content: '';
    width: 5px; height: 9px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.u-check input:focus-visible + .u-check-caixa { outline: 2px solid #fff; outline-offset: 2px; }

/* lista */
.u-lista { list-style: none; }
.u-li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.6em 0.8em 0.6em 1.1em;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88em;
    transition: background 0.12s ease;
}
.u-li::before {
    content: '';
    position: absolute;
    left: 0; top: 14%; bottom: 14%;
    width: 3px;
    border-radius: 3px;
    background: transparent;
    transition: background 0.15s ease;
}
.u-li:hover { background: var(--card); }
.u-li:hover::before { background: rgba(255, 255, 255, 0.25); }
.u-li.on { background: rgba(242, 201, 76, 0.14); }
.u-li.on::before { background: var(--amarelo); }
.u-li-n {
    width: 22px; height: 22px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 800;
    color: var(--amarelo);
}
.u-li-t { flex: 1; }
.u-li-ok {
    flex: none;
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.18);
    color: var(--verde);
    font-size: 0.7em;
    font-weight: 800;
}

.u-disclaimer {
    max-width: 700px;
    margin: 2.5em auto 0;
    font-size: 0.78em;
    line-height: 1.6;
    color: var(--dim);
    text-align: center;
}
.u-disclaimer a { color: var(--amarelo); }

@media (max-width: 720px) {
    .u-main { grid-template-columns: 1fr; }
    .u-palco { position: static; max-width: 340px; margin: 0 auto; }
    .u-header h1 { font-size: 1.5em; }
    .u-filtros { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .u-chip { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .u-hot-halo { display: none; }
}
