/**
 * Starlight Network - Error Pages Stylesheet
 * ==========================================
 * Gemeinsames CSS für alle Fehlerseiten (404, 419, 500, etc.)
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #050510;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Error Container */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

/* Background Glow */
.error-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.error-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

/* Error Icon */
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Error Code */
.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00f3ff 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Error Type Variations */
.error-code.error-404 {
    background: linear-gradient(135deg, #00f3ff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
}

.error-code.error-419 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
}

.error-code.error-500 {
    background: linear-gradient(135deg, #f87171, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
}

.error-code.error-503 {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Error Title */
.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

/* Error Message */
.error-message {
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Error Actions */
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn-error {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00f3ff, #00b8cc);
    color: #050510;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

/* Info Box */
.error-info {
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.5);
}

.error-info code {
    background: rgba(0, 243, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    color: #00f3ff;
}

/* Countdown (for auto-redirect) */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #00f3ff;
}

.countdown-number {
    font-weight: 700;
    min-width: 1.5rem;
}

/* Brand Footer */
.error-brand {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.3);
    text-decoration: none;
    transition: color 0.3s;
}

.error-brand:hover {
    color: rgba(224, 224, 224, 0.6);
}

.error-brand span {
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 480px) {
    .error-page {
        padding: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-error {
        width: 100%;
        justify-content: center;
    }
    
    .error-info {
        padding: 0.875rem 1rem;
    }
}
