/* HTTP error pages — api.goalgus.bg brand */

body.error-page {
    min-height: 100vh;
    background: var(--surface);
    color: var(--text);
}

.error-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.error-header {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px);
}

.error-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.error-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.error-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    font-weight: 700;
    font-size: 0.95rem;
}

.error-header .brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.error-header .brand em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--blue-600);
    margin-left: 0.15rem;
}

.error-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 4rem;
    position: relative;
    isolation: isolate;
}

.error-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 0, 0, 0.18), transparent 70%),
        linear-gradient(180deg, #0a0a0a 0%, #111111 42%, var(--surface) 100%);
    opacity: 1;
}

html[data-theme="dark"] .error-main::before {
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
        linear-gradient(180deg, #050505 0%, #0c0c0c 48%, var(--surface) 100%);
}

.error-card {
    position: relative;
    z-index: 1;
    width: min(32rem, calc(100% - 2rem));
    text-align: center;
    padding: 2.25rem 1.75rem 2rem;
    border-radius: calc(var(--radius) + 4px);
    background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.error-code {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--blue-600);
}

.error-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.error-message {
    margin: 0 0 1.75rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.error-footer {
    padding: 1rem 0 1.35rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.error-footer a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
}

.error-footer a:hover {
    text-decoration: underline;
}

/* /up health page */
.health-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.health-status {
    position: relative;
    width: 0.85rem;
    height: 0.85rem;
    margin: 0 0 1.1rem;
}

.health-ping,
.health-dot {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.health-ping {
    opacity: 0.55;
    animation: health-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.health-card.is-up .health-ping,
.health-card.is-up .health-dot {
    background: #22c55e;
}

.health-card.is-down .health-ping,
.health-card.is-down .health-dot {
    background: var(--danger);
}

.health-meta {
    margin: -0.65rem 0 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.health-exception {
    margin: -0.5rem 0 1.25rem;
    max-width: 28rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--danger);
    word-break: break-word;
}

@keyframes health-ping {
    75%,
    100% {
        transform: scale(2.35);
        opacity: 0;
    }
}
