/* Novademi — 404 ve hata sayfaları */

.error-page-pro {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 36%, #f8fafc 100%);
    padding: 0 0 4rem;
    overflow: visible;
}

.error-page-pro .container-xl {
    max-width: 1180px;
}

.error-page-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 12% 8%, rgba(99, 102, 241, 0.08), transparent 60%),
        radial-gradient(ellipse 45% 40% at 88% 18%, rgba(20, 184, 166, 0.1), transparent 55%);
}

.error-trust-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0;
    margin-bottom: 1.75rem;
}

.error-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.05rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.error-trust-item i {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.error-trust-item strong {
    display: block;
    color: #0f172a;
    font-size: 0.88rem;
    line-height: 1.25;
}

.error-trust-item span {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    margin-top: 0.12rem;
}

.error-page-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 992px) {
    .error-page-grid {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 1.75rem;
    }
}

.error-aside-panel {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1.15rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

@media (min-width: 992px) {
    .error-aside-panel {
        position: sticky;
        top: 5.75rem;
    }
}

.error-aside-head {
    padding: 1.15rem 1.15rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #312e81 100%);
    color: #fff;
}

.error-aside-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.error-aside-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}

.error-aside-head p {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.error-steps {
    list-style: none;
    margin: 0;
    padding: 1rem 1.05rem;
    counter-reset: error-step;
}

.error-steps li {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    counter-increment: error-step;
}

.error-steps li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.error-steps li::before {
    content: counter(error-step);
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 800;
}

.error-steps strong {
    display: block;
    color: #0f172a;
    font-size: 0.86rem;
    margin-bottom: 0.15rem;
}

.error-steps span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.error-aside-contact {
    padding: 0.95rem 1.05rem 1.05rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
}

.error-aside-contact-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.error-aside-contact a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
}

.error-aside-contact a i {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f766e;
}

.error-aside-contact a:hover {
    color: #4338ca;
}

.error-main-panel {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1.25rem;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.error-display {
    position: relative;
    padding: 2.25rem 2rem 2rem;
    background:
        radial-gradient(circle at 18% 22%, rgba(20, 184, 166, 0.22), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(99, 102, 241, 0.18), transparent 45%),
        linear-gradient(145deg, #0b1120 0%, #1e293b 48%, #312e81 100%);
    overflow: hidden;
}

.error-display--500 {
    background:
        radial-gradient(circle at 18% 22%, rgba(251, 191, 36, 0.15), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(99, 102, 241, 0.22), transparent 45%),
        linear-gradient(145deg, #1e1b4b 0%, #312e81 48%, #4338ca 100%);
}

.error-display::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
    pointer-events: none;
}

.error-display-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.error-code-block {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.error-code {
    font-size: clamp(4rem, 12vw, 6.75rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: #fff;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.error-code-sub {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
}

.error-orbit {
    position: relative;
    width: 7.5rem;
    height: 7.5rem;
    flex-shrink: 0;
}

.error-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    animation: error-orbit-spin 18s linear infinite;
}

.error-orbit-ring--inner {
    inset: 18%;
    border-style: solid;
    border-color: rgba(94, 234, 212, 0.35);
    animation-direction: reverse;
    animation-duration: 12s;
}

.error-orbit-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.35rem;
    color: #5eead4;
}

@keyframes error-orbit-spin {
    to { transform: rotate(360deg); }
}

.error-main-body {
    padding: 1.75rem 2rem 2rem;
}

.error-main-body h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    color: #0f172a;
}

.error-main-body > p {
    margin: 0 0 1.35rem;
    max-width: 62ch;
    color: #64748b;
    line-height: 1.75;
    font-size: 0.98rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.error-actions .btn-hero-secondary {
    background: #f8fafc;
    color: #0f172a !important;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
}

.error-actions .btn-hero-secondary:hover {
    background: #f1f5f9;
    color: #0f172a !important;
    border-color: #cbd5e1;
}

.error-destinations {
    padding-top: 1.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.error-destinations-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.error-destinations-head h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.error-destinations-head span {
    font-size: 0.78rem;
    color: #64748b;
}

.error-dest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.error-dest-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.error-dest-card:hover {
    background: #fff;
    border-color: #c7d2fe;
    box-shadow: 0 12px 28px rgba(67, 56, 202, 0.08);
    transform: translateY(-2px);
    color: inherit;
}

.error-dest-icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #4338ca;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.error-dest-card strong {
    display: block;
    color: #0f172a;
    font-size: 0.88rem;
}

.error-dest-card small {
    display: block;
    margin-top: 0.08rem;
    color: #64748b;
    font-size: 0.74rem;
}

.error-dest-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.error-dest-card:hover .error-dest-arrow {
    color: #4338ca;
    transform: translateX(3px);
}

.error-cta-band {
    position: relative;
    z-index: 1;
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 20px 48px rgba(67, 56, 202, 0.22);
}

.error-cta-band h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.error-cta-band p {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.86);
}

.error-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.error-cta-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.error-cta-actions .btn-hero-primary {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.error-cta-actions .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff !important;
}

.error-cta-actions .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .error-trust-bar {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .error-display,
    .error-main-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .error-dest-grid {
        grid-template-columns: 1fr;
    }

    .error-actions .btn,
    .error-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .error-orbit {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-orbit-ring {
        animation: none;
    }
}
