/* =====================================================================
   Elektro Charge — Board de Sugestões
   Tokens herdados do site: fundo #000, verde #22c55e / #4ade80,
   vidro blur, bordas rgba(255,255,255,.07). Carregado APÓS style.css.
   ===================================================================== */

.sg-body {
    background: #000;
    color: #fff;
    min-height: 100vh;
}

/* Glow de fundo sutil no topo */
.sg-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(34, 197, 94, 0.10), transparent 60%),
        radial-gradient(700px 400px at 10% 0%, rgba(34, 197, 94, 0.06), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Garantia caso style.css não defina (beneficios.html também redefine) */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    z-index: 9999;
    pointer-events: none;
}
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.10), transparent 65%);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.sg-main {
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
    padding: 8.5rem 1.5rem 5rem;
}

/* ── Header ─────────────────────────────────────────────────────── */
.sg-header {
    text-align: center;
    margin-bottom: 2.6rem;
}
.sg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.1rem;
}
.sg-eyebrow iconify-icon { font-size: 1rem; }
.sg-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.9rem;
}
.sg-sub {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.02rem;
    line-height: 1.55;
}

/* ── Stats ──────────────────────────────────────────────────────── */
.sg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-bottom: 2.4rem;
}
.sg-stat {
    text-align: center;
    padding: 1.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.sg-stat-num {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 700;
    color: #4ade80;
    line-height: 1;
}
.sg-stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ── Toolbar ────────────────────────────────────────────────────── */
.sg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}
.sg-search-wrap {
    position: relative;
    flex: 1 1 240px;
    display: flex;
    align-items: center;
}
.sg-search-wrap iconify-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
#sg-search {
    width: 100%;
    padding: 0.75rem 0.95rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}
#sg-search::placeholder { color: rgba(255, 255, 255, 0.35); }
#sg-search:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.sg-sort {
    display: inline-flex;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    gap: 0.2rem;
}
.sg-sort-btn {
    padding: 0.5rem 0.85rem;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.sg-sort-btn.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.sg-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.2rem;
    background: #22c55e;
    color: #04140a;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.sg-new-btn iconify-icon { font-size: 1.15rem; }
.sg-new-btn:hover { background: #4ade80; }
.sg-new-btn:active { transform: scale(0.97); }
.sg-new-btn.is-open { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ── Formulário ─────────────────────────────────────────────────── */
.sg-form-wrap {
    margin-bottom: 1.8rem;
    animation: sgSlideDown 0.3s ease;
}
@keyframes sgSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sg-form {
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.sg-field { margin-bottom: 1rem; }
.sg-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.sg-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}
.sg-opt { color: rgba(255, 255, 255, 0.4); font-weight: 400; }
.sg-field input,
.sg-field textarea,
.sg-field select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s;
}
.sg-field textarea { resize: vertical; min-height: 88px; }
.sg-field input:focus,
.sg-field textarea:focus,
.sg-field select:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.55);
}
.sg-field select { cursor: pointer; }
.sg-field select option { background: #0a0a0a; }

/* honeypot — escondido para humanos */
.sg-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sg-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.4rem;
}
.sg-form-msg {
    font-size: 0.85rem;
    margin: 0;
    min-height: 1.1em;
}
.sg-form-msg.is-error { color: #f87171; }
.sg-form-msg.is-ok { color: #4ade80; }
.sg-form-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

.sg-btn-primary {
    padding: 0.7rem 1.3rem;
    background: #22c55e;
    color: #04140a;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.sg-btn-primary:hover { background: #4ade80; }
.sg-btn-primary:disabled { opacity: 0.55; cursor: default; }
.sg-btn-ghost {
    padding: 0.7rem 1.2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.sg-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* ── Filtros pill ───────────────────────────────────────────────── */
.sg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
}
.sg-pill {
    padding: 0.5rem 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.sg-pill .sg-count {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}
.sg-pill:hover { border-color: rgba(34, 197, 94, 0.4); color: #fff; }
.sg-pill.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}
.sg-pill.active .sg-count { color: rgba(74, 222, 128, 0.7); }

/* ── Grid de cards ──────────────────────────────────────────────── */
.sg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.sg-card {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s, transform 0.2s;
}
.sg-card:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* botão de voto à esquerda */
.sg-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 56px;
    height: fit-content;
    padding: 0.6rem 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sg-vote iconify-icon { font-size: 1.2rem; transition: transform 0.2s; }
.sg-vote-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}
.sg-vote:hover {
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}
.sg-vote:hover iconify-icon { transform: translateY(-2px); }
.sg-vote.is-voted {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.55);
    color: #4ade80;
}
.sg-vote.is-voted iconify-icon { transform: translateY(-1px); }
/* pulso ao alterar o contador */
.sg-vote.pulsing .sg-vote-count { animation: sgPulse 0.4s ease; }
@keyframes sgPulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.28); }
    100% { transform: scale(1); }
}

.sg-card-body { flex: 1; min-width: 0; }
.sg-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.sg-card-cat {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}
.sg-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 100px;
    white-space: nowrap;
}
.sg-badge--nova         { color: #4ade80; background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.3); }
.sg-badge--em_analise   { color: #fbbf24; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.3); }
.sg-badge--planejada    { color: #60a5fa; background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.3); }
.sg-badge--implementada { color: #c084fc; background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.3); }

.sg-card-title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.sg-card-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.sg-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.4);
}
.sg-card-meta .sg-dot { opacity: 0.5; }

/* ── Estados ────────────────────────────────────────────────────── */
.sg-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}
.sg-state iconify-icon { font-size: 2.4rem; color: rgba(34, 197, 94, 0.5); }
.sg-state p { margin: 0.8rem 0 1rem; font-size: 0.95rem; }

/* ── Responsivo ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sg-main { padding-top: 7rem; }
    .sg-toolbar { gap: 0.6rem; }
    .sg-search-wrap { flex: 1 1 100%; order: -1; }
    .sg-sort { flex: 1; }
    .sg-sort-btn { flex: 1; }
    .sg-new-btn { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
    .sg-stats { gap: 0.6rem; }
    .sg-stat { padding: 1rem 0.5rem; }
    .sg-field-row { grid-template-columns: 1fr; gap: 0; }
    .sg-form-foot { flex-direction: column; align-items: stretch; }
    .sg-form-actions { justify-content: stretch; }
    .sg-form-actions button { flex: 1; }
    .sg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .sg-card { padding: 1rem; gap: 0.75rem; }
    .sg-vote { min-width: 48px; }
}
