/* 404 Specific Styles */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.error-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: 0;
}

.error-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.error-content {
    text-align: center;
    position: relative;
}

/* Animated 404 Number */
.error-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.error-number::before {
    content: '404';
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.error-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float-random 20s infinite linear;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: -2s;
    font-size: 3rem;
    color: var(--primary-color);
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: -8s;
    font-size: 2rem;
    color: var(--accent-color);
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: -4s;
    font-size: 2.5rem;
    color: var(--warning-color);
}

.floating-element:nth-child(4) {
    bottom: 10%;
    right: 20%;
    animation-delay: -12s;
    font-size: 1.5rem;
    color: var(--info-color);
}

.floating-element:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: -6s;
    font-size: 2rem;
    color: var(--success-color);
}

.floating-element:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: -10s;
    font-size: 3.5rem;
    color: var(--primary-color);
}

/* Error Actions */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-random {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(10px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(128, 66, 149, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(128, 66, 149, 0); }
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: var(--transition);
}

.interactive-element:hover {
    animation: pulse-glow 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-container {
        padding: 1rem;
    }

    .error-number {
        font-size: 6rem;
    }

    .error-title {
        font-size: var(--font-size-2xl);
    }

    .search-form {
        flex-direction: column;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .help-options {
        flex-direction: column;
    }
}

/* Easter Egg - Secret Animation */
.error-number.secret-animation {
    animation: secret-dance 2s ease-in-out;
}

@keyframes secret-dance {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(10deg) scale(0.9); }
    75% { transform: rotate(-5deg) scale(1.05); }
}

/* Loading animation for search */
.search-loading {
    display: none;
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
}