/* Modern Error Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

/* Color-coded backgrounds for different error categories */
/* 3xx - Redirection (Orange/Yellow gradient) */
.c300 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 4xx - Client Error (Mustard yellow gradient) */
.c400 {
    background: linear-gradient(135deg, #F0C929 0%, #D4A017 100%);
}

/* 5xx - Server Error (Rust red gradient) */
.c500 {
    background: linear-gradient(135deg, #B7410E 0%, #8B4000 100%);
}

/* Default fallback */
body {
    background: linear-gradient(135deg, #3ebbce 0%, #358894 100%);
}

main {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 8rem;
    line-height: 0.9;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

p {
    font-size: 1.2rem;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.5;
	max-width: 90%;
}

hr {
    border: none;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
}

.help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    user-select: none;
}

.help-actions a {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.help-actions a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Locale Switcher Styles */
.locale-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.3;
    transition: opacity 0.3s ease;
	user-select: none;
}

.locale-switcher:hover,
.locale-switcher:focus-within {
    opacity: 1;
}

.locale-switcher select {
    background: transparent;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    min-width: 80px;
	user-select: none;
}

.locale-switcher select option {
    background: #333;
    color: white;
    padding: 4px;
}

.locale-switcher select:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    main {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .help-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .help-actions a {
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .locale-switcher {
        top: 15px;
        right: 15px;
        padding: 6px;
    }
    
    .locale-switcher select {
        font-size: 0.8rem;
        padding: 4px 8px;
        min-width: 70px;
    }
}