/* ===== ERROR PAGE STYLES ===== */

/* Error Section */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 6% 80px;
    position: relative;
    overflow: hidden;
}

/* Background Orbs */
.error-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.error-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.error-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(235, 235, 235, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation: floatOrb 8s ease-in-out infinite;
}

.error-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
    bottom: 15%;
    left: -80px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Main Container */
.error-container {
    text-align: center;
    max-width: 700px;
    z-index: 2;
    animation: fadeInUp 0.9s ease-out;
}

/* Error Code */
.error-code-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.error-code {
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -6px;
    background: linear-gradient(135deg, rgba(235, 235, 235, 0.9), rgba(235, 235, 235, 0.25));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    position: relative;
    z-index: 2;
    user-select: none;
}

.error-code-glow {
    position: absolute;
    inset: -40px;
    z-index: 1;
    pointer-events: none;
    transition: background 0.5s ease;
}

/* Error Badge */
.error-badge {
    margin: 0 auto 20px;
    display: inline-block;
}

/* Error Title */
.error-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-large);
    color: var(--text);
}

/* Error Description */
.error-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto calc(var(--spacing-large) * 1.5);
    line-height: 1.8;
}

/* Error Details Card */
.error-details-card {
    padding: 20px 32px;
    margin: 0 auto calc(var(--spacing-large) * 1.5);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0;
}

.error-detail-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

.error-detail-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.error-detail-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.error-detail-divider {
    width: 1.5px;
    height: 40px;
    background: rgba(235, 235, 235, 0.12);
    margin: 0 24px;
    flex-shrink: 0;
}

/* Action Buttons */
.error-actions {
    display: flex;
    gap: calc(var(--spacing-medium) * 1.5);
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: var(--spacing-medium) calc(var(--spacing-large) * 1.25);
    font-size: 1rem;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .error-section {
        padding: 110px 5% 60px;
    }

    .error-code {
        font-size: clamp(5rem, 22vw, 8rem);
        letter-spacing: -3px;
    }

    .error-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .error-desc {
        font-size: 1rem;
    }

    .error-details-card {
        padding: 16px 20px;
        max-width: 320px;
    }

    .error-detail-divider {
        margin: 0 16px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
        display: flex;
    }
}