/* =========================================================
   PNTV AFRICA — ERROR PAGES
   403 • 404 • 500
   ========================================================= */

/* ---------------------------------------------------------
   ERROR PAGE WRAPPER
   --------------------------------------------------------- */

.error-page {
    width: 100%;
    min-height: 62vh;
    padding: 4.5rem 0 5.5rem;
    display: flex;
    align-items: center;
    text-align: center;
    background: #F8FAFC;
    box-sizing: border-box;
}

.error-page .container {
    width: 100%;
}

.error-content {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 2.75rem 2.5rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(5, 48, 90, 0.08);
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   ERROR CODE
   --------------------------------------------------------- */

.error-code {
    display: inline-block;
    margin: 0 0 0.75rem;
    color: #05305A;
    font-size: clamp(5rem, 10vw, 7.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

/*
   404 — gold
*/
.error-page .error-code {
    color: #05305A;
}

/*
   403 — orange
*/
.error-page:has(.error-code:first-child) {
    --error-accent: #FFCA26;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.error-title {
    margin: 0 0 0.7rem;
    color: #05305A;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}


/* ---------------------------------------------------------
   MESSAGE
   --------------------------------------------------------- */

.error-message {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    color: #64748B;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   ACTION BUTTONS
   --------------------------------------------------------- */

.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Primary */

.error-actions .btn-primary {
    background: #05305A;
    border: 1px solid #05305A;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(5, 48, 90, 0.15);
}

.error-actions .btn-primary:hover {
    background: #021F3A;
    border-color: #021F3A;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(5, 48, 90, 0.2);
}


/* Secondary */

.error-actions .btn-secondary {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #05305A;
}

.error-actions .btn-secondary:hover {
    background: #F8FAFC;
    border-color: #FFCA26;
    color: #05305A;
    text-decoration: none;
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   404 REFRESH / SMALL MESSAGE
   --------------------------------------------------------- */

.error-refresh {
    margin: 0;
    color: #94A3B8;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    line-height: 1.6;
}

.error-refresh a {
    color: #FF8C1A;
    font-weight: 700;
    text-decoration: none;
}

.error-refresh a:hover {
    color: #05305A;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   404 SUGGESTIONS
   --------------------------------------------------------- */

.error-suggestions {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-align: left;
}

.error-suggestions h3 {
    margin: 0 0 0.85rem;
    color: #05305A;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
}

.error-suggestions ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-suggestions ul li {
    margin: 0;
    padding: 0;
}

.error-suggestions ul li a {
    display: block;
    padding: 0.65rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    color: #05305A;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.error-suggestions ul li a:hover {
    background: #05305A;
    border-color: #05305A;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   500 PAGE — SERVER ERROR
   --------------------------------------------------------- */

.error-page .error-code {
    position: relative;
}

.error-page .error-code::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 0.75rem auto 0;
    background: #FFCA26;
    border-radius: 4px;
}


/* ---------------------------------------------------------
   403 PAGE — ACCESS FORBIDDEN
   --------------------------------------------------------- */

/*
   The 403 page uses the same structure but gives the
   error code a stronger orange accent.
*/

.error-page:has(.error-title:is(:where([data-error="403"]))) .error-code {
    color: #FF8C1A;
}


/* ---------------------------------------------------------
   FOOTER BREATHING SPACE
   --------------------------------------------------------- */

.error-page {
    margin-bottom: 1.5rem;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .error-page {
        min-height: 58vh;
        padding: 3.5rem 0 4.5rem;
    }

    .error-content {
        max-width: 640px;
        padding: 2.25rem 2rem;
    }

    .error-code {
        font-size: 6.5rem;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .error-page {
        min-height: auto;
        padding: 2.5rem 0 3.5rem;
        margin-bottom: 1rem;
    }

    .error-content {
        max-width: 100%;
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }

    .error-code {
        font-size: 5rem;
        letter-spacing: -0.05em;
    }

    .error-title {
        font-size: 1.35rem;
    }

    .error-message {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 1.4rem;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .error-actions .btn {
        width: 100%;
        min-height: 42px;
    }

    .error-suggestions {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .error-suggestions ul {
        grid-template-columns: 1fr;
    }

    .error-suggestions ul li a {
        padding: 0.65rem;
    }
}


/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .error-page {
        padding: 2rem 0 3rem;
    }

    .error-content {
        padding: 1.6rem 1rem;
    }

    .error-code {
        font-size: 4.25rem;
    }

    .error-title {
        font-size: 1.25rem;
    }

    .error-message {
        font-size: 0.84rem;
    }
}
