/* Error Pages Styling - Space Theme */
@import 'theme.css';

:root {
    --space: #0a0e2a;
    --space-dark: #1a1f4d;
    --accent: #4facfe;
    --accent-light: #00f2fe;
    --text-light: #ffffff;
    --text-muted: #a0a8c0;
    --orb-size: 300px;
}

.error-page {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--space) 0%, var(--space-dark) 100%);
    color: var(--text-light);
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

/* Stars and twinkling background */
.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMDAwMDAwIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmYiIHg9IjEiIHk9IjEiPjwvcmVjdD4KPC9zdmc+') repeat top center;
    z-index: 0;
}

.twinkling {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMDAwMDAwIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmYiIHg9IjEiIHk9IjEiPjwvcmVjdD4KPC9zdmc+') repeat top center;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Space particles */
.space-particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(11, 16, 45, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
    width: 90%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Error Orb */
.error-orb {
    position: relative;
    width: var(--orb-size);
    height: var(--orb-size);
    margin: 0 auto 2rem;
    perspective: 1000px;
}

.error-orb-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.error-number {
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(65, 105, 225, 0.2);
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.3);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Orbitron', sans-serif;
}

.error-number:first-child {
    left: 0;
}

.error-number:last-child {
    right: 0;
}

/* Astronaut */
.error-astronaut {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.astronaut {
    width: 120px;
    height: 120px;
    position: relative;
}

.helmet {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #4facfe;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.face {
    position: absolute;
    width: 60%;
    height: 60%;
    background: #f0f0f0;
    border-radius: 50%;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10%;
}

.eyes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.eye {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 96%, 98%, 100% { height: 20px; margin-top: 0; }
    97% { height: 2px; margin-top: 9px; }
}

.mouth {
    width: 20px;
    height: 8px;
    border-radius: 0 0 10px 10px;
    background: #333;
    position: relative;
    transition: all 0.3s ease;
}

.mouth.sad {
    border-radius: 10px 10px 0 0;
    height: 6px;
    margin-top: 5px;
}

/* Error Content */
.error-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    margin: 0;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

error-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.error-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn, .btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary, .btn-glow {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--space);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
    font-weight: 700;
}

.btn-primary:hover, .btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.8);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(79, 172, 254, 0.1);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(159, 122, 234, 0.1), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    background: rgba(159, 122, 234, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(159, 122, 234, 0.2);
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 992px) {
    .error-orb {
        width: 250px;
        height: 250px;
    }
    
    .error-number {
        font-size: 8rem;
    }
    
    .astronaut {
        width: 100px;
        height: 100px;
    }
    
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .error-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .error-orb {
        width: 200px;
        height: 200px;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .gradient-text {
        font-size: 2rem;
    }
    
    .error-content {
        padding: 2rem 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn, .btn-glow {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-orb {
        width: 150px;
        height: 150px;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .gradient-text {
        font-size: 1.75rem;
    }
    
    .error-content p {
        font-size: 1rem;
    }
    
    .btn, .btn-glow {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}
