/* Error pages (404, 500, generic). Used by templates/_error_base.html.twig. */

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

.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}
body.error-body > .container,
.error-page > .container {
    /* In a flex column body, align-items:stretch isn't reliably stretching .container to full width
       (browsers fall back to content sizing for auto-width items with max-width). Force it. */
    width: 100%;
}
.error-page__inner {
    text-align: center;
}

.error-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 56px;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s;
}
.error-logo:hover { opacity: 0.8; }

.error-code {
    font-size: clamp(96px, 16vw, 200px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}

.error-headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.error-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.55;
}
.error-subtitle a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.error-subtitle a:hover { color: var(--gold-dark); }

.error-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 99px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(249, 231, 159, 0.25);
}
.error-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(249, 231, 159, 0.45);
}

.error-meta {
    margin-top: 36px;
    font-size: 12px;
    color: var(--light);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}
