﻿/* ==========================================================
   Error Pages
   Used by:
   - Error (500)
   - 404
   - 403
========================================================== */

.error-section {
    position: relative;
    margin-top: -120px;
    padding: 90px 0 40px;
    background: linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
    z-index: 20;
}

.error-card {
    position: relative;
    width: min(1400px, 95%);
    margin: 0 auto;
    padding: 85px 80px;
    border-radius: 32px;
    overflow: hidden;
    text-align: center;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(15,23,42,.08), 0 50px 100px rgba(15,23,42,.08);
    animation: fadeUp .8s ease;
}

    .error-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
        height: 5px;
        border-radius: 30px;
        background: linear-gradient(90deg,#0d6efd,#20c997);
    }

/* Decorative Shapes */

.error-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.shape-1 {
    width: 170px;
    height: 170px;
    top: -70px;
    left: -70px;
    background: rgba(13,110,253,.05);
}

.shape-2 {
    width: 240px;
    height: 240px;
    right: -90px;
    bottom: -90px;
    background: rgba(32,201,151,.05);
}

.error-icon {
    width: 125px;
    height: 125px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: #fff8e5;
    color: #f5a000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.7rem;
    box-shadow: 0 15px 35px rgba(245,160,0,.18);
    animation: floatIcon 4s ease-in-out infinite;
}

.error-code {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 22px;
    border-radius: 50px;
    background: rgba(13,110,253,.08);
    color: #0d6efd;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.error-title {
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1f2937;
}

.error-description {
    max-width: 760px;
    margin: 0 auto 45px;
    color: #6c757d;
    line-height: 1.9;
    font-size: 1.08rem;
}

/* ==========================================================
   Action Buttons
========================================================== */

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

    .error-actions .btn {
        min-width: 210px;
        padding: 14px 30px;
        border-radius: 50px;
        font-weight: 600;
        transition: all .35s ease;
    }

        .error-actions .btn:hover {
            transform: translateY(-4px) scale(1.04);
        }

/* ==========================================================
   Divider
========================================================== */

.error-divider {
    width: 90px;
    height: 4px;
    margin: 0 auto 35px;
    border-radius: 50px;
    background: linear-gradient(90deg,#0d6efd,#20c997);
}

/* ==========================================================
   Links Heading
========================================================== */

.error-links-title {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.error-links-text {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #6c757d;
    line-height: 1.8;
}

/* ==========================================================
   Shortcut Cards
========================================================== */

.error-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.error-shortcut {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 250px;
    padding: 45px 35px;
    border-radius: 22px;
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid #edf2f7;
    color: inherit;
    transition: all .35s ease;
}

    .error-shortcut i {
        font-size: 3rem;
        margin-bottom: 22px;
        transition: .35s;
    }

    .error-shortcut h5 {
        margin-bottom: 12px;
        font-size: 1.18rem;
        font-weight: 700;
    }

    .error-shortcut p {
        margin: 0;
        font-size: .95rem;
        line-height: 1.8;
        opacity: .85;
    }

    .error-shortcut:hover {
        background: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(13,110,253,.18);
    }

        .error-shortcut:hover i {
            transform: scale(1.15);
        }

/* ==========================================================
   Animations
========================================================== */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIcon {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 1199px) {

    .error-card {
        padding: 70px 55px;
    }
}

@media (max-width: 992px) {

    .error-section {
        margin-top: -90px;
        padding: 80px 0 30px;
    }

    .error-card {
        padding: 60px 40px;
        border-radius: 28px;
    }

    .error-title {
        font-size: 2.35rem;
    }

    .error-description {
        max-width: 100%;
    }

    .error-shortcuts {
        grid-template-columns: repeat(2,1fr);
    }

    .error-shortcut {
        min-height: 220px;
    }
}

@media (max-width: 768px) {

    .error-section {
        margin-top: -60px;
        padding: 60px 0 20px;
    }

    .error-card {
        padding: 45px 25px;
        border-radius: 24px;
    }

    .error-icon {
        width: 95px;
        height: 95px;
        font-size: 2.8rem;
    }

    .error-code {
        font-size: .8rem;
    }

    .error-title {
        font-size: 1.9rem;
    }

    .error-description {
        font-size: 1rem;
        line-height: 1.8;
    }

    .error-actions {
        gap: 12px;
        margin-bottom: 45px;
    }

        .error-actions .btn {
            width: 100%;
            min-width: unset;
        }

    .error-shortcuts {
        grid-template-columns: 1fr;
    }

    .error-shortcut {
        min-height: auto;
        padding: 35px 25px;
    }
}

@media (max-width: 576px) {

    .error-card {
        padding: 40px 20px;
    }

    .error-title {
        font-size: 1.7rem;
    }

    .error-links-title {
        font-size: 1.3rem;
    }

    .error-shortcut i {
        font-size: 2.6rem;
    }
}