/* ─── POOOL Error Pages — Shared Styles ─────────────────────────────────── */

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

:root {
    --brand-600: var(--primary-color);
    --brand-700: var(--primary-color);
    --brand-50: #ebebff;
    --gray-900: var(--page-title-color);
    --gray-700: #414651;
    --gray-600: var(--text-secondary);
    --gray-400: #a4a7ae;
    --gray-300: #d5d7da;
    --gray-100: #f2f4f7;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --error-600: #d92d20;
    --warning-500: #f79009;
}

html,
body {
    height: 100%;
    font-family: 'TT Norms Pro', sans-serif;
    background: var(--white);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
}

/* ─── Page Layout ─────────────────────────────────────────────────────────── */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow background */
.error-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── Logo ────────────────────────────────────────────────────────────────── */
.error-logo {
    position: absolute;
    top: 32px;
    left: 40px;
}

.error-logo img {
    height: 36px;
    width: auto;
}

/* ─── Illustration ────────────────────────────────────────────────────────── */
.error-icon-wrap {
    position: relative;
    margin-bottom: 32px;
}

/* Outer ring pulse */
.error-icon-ring {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ring-pulse 3s ease-in-out infinite;
}

.error-icon-ring--blue {
    background: radial-gradient(circle, var(--brand-50) 60%, rgba(0, 0, 255, 0.04) 100%);
}

.error-icon-ring--red {
    background: radial-gradient(circle, #fff1f0 60%, rgba(217, 45, 32, 0.04) 100%);
}

.error-icon-ring--yellow {
    background: radial-gradient(circle, #fffaeb 60%, rgba(247, 144, 9, 0.04) 100%);
}

.error-icon-inner {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon-inner--blue {
    background: var(--brand-50);
}

.error-icon-inner--red {
    background: #fef3f2;
}

.error-icon-inner--yellow {
    background: #fffaeb;
}

.error-icon-inner svg {
    width: 40px;
    height: 40px;
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.04);
        opacity: 0.85;
    }
}

/* ─── Code Badge ──────────────────────────────────────────────────────────── */
.error-code {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.error-code--blue {
    background: var(--brand-50);
    color: var(--brand-700);
}

.error-code--red {
    background: #fef3f2;
    color: var(--error-600);
}

.error-code--yellow {
    background: #fffaeb;
    color: #b54708;
}

/* ─── Text ────────────────────────────────────────────────────────────────── */
.error-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 12px;
    max-width: 480px;
}

.error-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto 36px;
}

/* ─── Actions ─────────────────────────────────────────────────────────────── */
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--brand-600);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), inset 0 -2px 0 rgba(10, 13, 18, 0.08);
}

.btn--primary:hover {
    background: var(--brand-700);
}

.btn--secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.btn--secondary:hover {
    background: var(--gray-50);
}

/* ─── Status info (for maintenance page) ─────────────────────────────────── */
.status-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.status-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 20px 28px;
    text-align: left;
    min-width: 160px;
}

.status-item-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.status-item-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.status-dot--green {
    background: #12b76a;
}

.status-dot--yellow {
    background: var(--warning-500);
}

/* ─── Footer hint ─────────────────────────────────────────────────────────── */
.error-footer {
    font-size: 13px;
    color: var(--gray-400);
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
}

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

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

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .error-title {
        font-size: 28px;
        line-height: 36px;
    }

    .error-logo {
        top: 20px;
        left: 20px;
    }

    .error-icon-ring {
        width: 120px;
        height: 120px;
    }

    .error-icon-inner {
        width: 72px;
        height: 72px;
    }

    .error-icon-inner svg {
        width: 32px;
        height: 32px;
    }

    .status-grid {
        flex-direction: column;
        align-items: center;
    }
}