/* Página de status independente (status.help4desk.com.br, Cloudflare Pages).
   Mesmo visual da página de status do site, sem depender dos arquivos dele. */

:root {
    --spark: #4ade80;
    --bg: #060a08;
    --line: rgba(255, 255, 255, 0.07);
    --text: #e6eee9;
    --text-2: #a0b0a6;
    --text-3: #6c7d73;
    --ok: #4ade80;
    --danger: #f43f5e;
    --warn: #fbbf24;
    --radius: 20px;
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;

    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100vh;
    margin: 0;

    overflow-x: hidden;

    font-family: var(--font);

    background: var(--bg);
    color: var(--text);

    -webkit-font-smoothing: antialiased;
}

.icon-sprite {
    display: none;
}

.icon {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Brilho e topo ---------- */

.hero-glow {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
}

.hero-glow::before {
    content: "";

    position: absolute;

    width: 720px;
    height: 720px;

    right: -160px;
    top: -320px;

    background: radial-gradient(circle, rgba(34, 197, 94, 0.32), rgba(74, 222, 128, 0.08) 45%, transparent 70%);
}

.top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 22px 24px 0;
}

.logo {
    display: inline-flex;
    align-items: center;

    gap: 0.3em;

    font-size: 24px;

    color: white;

    text-decoration: none;
}

.logo-symbol {
    display: block;

    width: calc(1.3em * 590 / 505);
    height: 1.3em;

    flex-shrink: 0;
}

.logo-word {
    display: block;

    width: calc(1em * 1496 / 310);
    height: 1em;

    flex-shrink: 0;

    transform: translateY(0.14em);
}

/* ---------- Conteúdo ---------- */

.st-main {
    position: relative;
    z-index: 1;

    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;

    gap: 24px;

    width: 100%;
    max-width: 640px;

    margin: 0 auto;
    padding: 28px 16px 64px;
}

.st-head {
    width: 100%;

    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 6px 12px 6px 10px;

    border-radius: 999px;

    background: rgba(74, 222, 128, 0.1);
    color: var(--spark);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.eyebrow .icon {
    width: 14px;
    height: 14px;
}

.st-head h1 {
    margin: 14px 0 0;

    font-family: var(--mono);
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 700;
    letter-spacing: -0.02em;

    text-shadow: 0 0 24px rgba(74, 222, 128, 0.22);
}

.st-note {
    max-width: 62ch;

    margin: 0;

    color: var(--text-3);

    font-size: 13px;
    line-height: 1.6;

    text-align: center;
}

/* ---------- Cartões ---------- */

.status-summary,
.status-list,
.status-history {
    width: 100%;

    border: 0;
    border-radius: var(--radius);

    background: linear-gradient(160deg, rgba(22, 34, 27, 0.86), rgba(8, 14, 10, 0.9));

    box-shadow:
        0 16px 32px -20px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.status-summary {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 20px;
}

.status-summary strong {
    font-size: 18px;
}

.status-summary.ok {
    box-shadow:
        0 0 40px -22px rgba(74, 222, 128, 0.3),
        inset 0 0 0 1px rgba(74, 222, 128, 0.4);
}

.status-summary.bad {
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.45);
}

.status-summary.warn {
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.45);
}

.status-dot {
    position: relative;

    flex: none;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: var(--text-2);
}

.status-summary.ok .status-dot {
    background: var(--ok);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.15);
}

.status-summary.bad .status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.15);
}

.status-summary.warn .status-dot {
    background: var(--warn);
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.15);
}

.status-dot::after {
    content: "";

    position: absolute;
    inset: -6px;

    border: 2px solid currentColor;
    border-radius: 50%;

    color: var(--ok);

    opacity: 0;

    animation: status-ripple 3.6s ease-out infinite;
}

.status-summary.bad .status-dot::after {
    color: var(--danger);
}

.status-summary.warn .status-dot::after {
    color: var(--warn);
}

@keyframes status-ripple {
    0%   { opacity: 0.45; transform: scale(0.7); }
    100% { opacity: 0;    transform: scale(1.7); }
}

.status-pulse {
    width: 100%;
    height: 54px;

    overflow: hidden;
}

.status-pulse svg {
    display: block;

    width: 100%;
    height: 100%;
}

.status-pulse path {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}

.pulse-base {
    stroke: rgba(74, 222, 128, 0.14);
}

.pulse-live {
    stroke: var(--spark);
    stroke-dasharray: 90 700;

    filter: drop-shadow(0 0 3px rgba(74, 222, 128, 0.45));

    animation: status-beat 4.2s linear infinite;
}

.down .pulse-live {
    stroke: var(--danger);

    filter: drop-shadow(0 0 3px rgba(244, 63, 94, 0.45));
}

@keyframes status-beat {
    from { stroke-dashoffset: 90; }
    to   { stroke-dashoffset: -700; }
}

.status-history {
    padding: 16px 18px;
}

.status-history-head {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    color: var(--text-2);

    font-size: 13px;
}

.status-uptime {
    color: var(--spark);

    font-family: var(--mono);
    font-weight: 700;
    text-align: right;
}

.down .status-uptime {
    color: var(--danger);
}

.status-bars {
    display: grid;
    grid-template-columns: repeat(40, minmax(0, 1fr));
    grid-template-rows: 34px;

    gap: 3px;

    height: 34px;
    margin-top: 12px;
}

.status-bars i {
    display: block;

    min-height: 0;

    border-radius: 3px;

    background: var(--ok);

    transform-origin: bottom;

    animation: status-bar 0.5s ease-out both;
}

.status-bars i.ok {
    box-shadow: 0 0 6px -3px rgba(74, 222, 128, 0.4);
}

.status-bars i.bad {
    background: var(--danger);
}

.status-bars i.none {
    background: rgba(255, 255, 255, 0.06);

    animation: none;
}

@keyframes status-bar {
    from { transform: scaleY(0.1); opacity: 0; }
    to   { transform: scaleY(1);   opacity: 1; }
}

.status-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 16px 20px;

    transition: background 0.2s ease;
}

.status-list li + li {
    border-top: 1px solid var(--line);
}

.status-list li:hover {
    background: rgba(74, 222, 128, 0.05);
}

.status-list small {
    display: block;

    color: var(--text-2);
}

.status-tag {
    color: var(--ok);

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.status-tag.bad {
    color: var(--danger);
}

.status-tag.unknown {
    color: var(--text-3);
}

/* ---------- Rodapé ---------- */

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    padding: 28px 24px 40px;

    border-top: 1px solid var(--line);

    color: var(--text-3);

    font-size: 13px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 8px 22px;
}

.site-footer a {
    color: var(--text-2);

    text-decoration: none;
}

.site-footer a:hover {
    color: var(--spark);
}

.site-footer p {
    display: flex;

    gap: 6px;

    margin: 0;
}

.site-footer p span + span::before {
    content: "·";

    margin-right: 6px;
}

@media (max-width: 560px) {

    .top {
        padding: 14px 16px 0;
    }

    .logo {
        font-size: 20px;
    }

    .status-history-head {
        flex-direction: column;
        gap: 4px;
    }

    .status-uptime {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {

    .status-dot::after,
    .pulse-live,
    .status-bars i {
        animation: none;
    }
}
