/* CSS specifico per 404.html */

:root {
    --primary-color: #0088ff;
    --secondary-color: #4a4a4a;
    --surface-color: #ffffff;
    --error-color: #ff4b6c;
    --background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --shadow-color: rgba(0, 136, 255, 0.2);
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2rem;
}

.error-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 
        0 10px 30px var(--shadow-color),
        inset 0 -3px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.error-icon {
    font-size: 4.5rem;
    color: var(--error-color);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

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

.error-code {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--error-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.error-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.error-message {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.countdown {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-wrapper {
    background: rgba(0, 0, 0, 0.05);
    height: 6px;
    border-radius: 10px;
    margin: 2rem auto;
    width: 80%;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #66b3ff);
    border-radius: 10px;
    transition: width 1s linear;
    width: 100%;
}

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

.btn-custom {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), #66b3ff);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
    color: white;
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.8);
    color: var(--secondary-color);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    color: var(--secondary-color);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-custom:hover .btn-icon {
    transform: translateX(3px);
}

.btn-secondary-custom:hover .btn-icon-back {
    transform: translateX(-3px);
}

@media (max-width: 480px) {
    .error-container {
        padding: 2rem 1rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .buttons-container {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .btn-custom {
        width: 100%;
    }
}