/* Error Page Styles */
.error-page-container {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
}

.error-illustration {
    margin-bottom: 3rem;
}

.construction-error-svg {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.building-shake {
    animation: shake 2s ease-in-out infinite;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(80px) rotate(45deg); }
}

.falling-load {
    animation: fall 2s ease-in-out infinite;
}

@keyframes craneCollapse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(15deg); }
}

.crane-falling {
    transform-origin: 170px 250px;
    animation: craneCollapse 3s ease-in-out infinite alternate;
}

.error-number {
    animation: pulse 2s ease-in-out infinite;
}

/* Error Content */
.error-title {
    font-size: 2.5rem;
    color: var(--danger-color);
    margin-bottom: 1rem;
}

[data-theme="dark"] .error-title {
    color: #ec7063;
}

.error-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

[data-theme="dark"] .error-message {
    color: #b0b0b0;
}

.error-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

[data-theme="dark"] .error-details {
    background-color: #2d2d2d;
}

.error-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.error-info-item:last-child {
    margin-bottom: 0;
}

.error-info-item i {
    font-size: 1.2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.error-suggestions {
    text-align: right;
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

[data-theme="dark"] .error-suggestions {
    background-color: rgba(41, 128, 185, 0.1);
}

.error-suggestions h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    margin-bottom: 0.5rem;
}

.error-suggestions a {
    color: var(--secondary-color);
    text-decoration: none;
}

.error-suggestions a:hover {
    text-decoration: underline;
}

.error-info-box {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: right;
}

[data-theme="dark"] .error-info-box {
    background-color: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

.error-info-box h5 {
    color: #856404;
    margin-bottom: 1rem;
}

[data-theme="dark"] .error-info-box h5 {
    color: #f5b041;
}

.error-info-box ol {
    margin-bottom: 0;
    padding-right: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .error-page-container {
        padding: 1rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }
}

/* SVG colors for dark mode */
[data-theme="dark"] .construction-error-svg text {
    fill: #e0e0e0;
}

[data-theme="dark"] .construction-error-svg line {
    stroke: #e0e0e0;
}

/* Additional animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-question {
    animation: float 2s ease-in-out infinite;
}

.float-question-delayed {
    animation: float 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* Camera blink animation */
@keyframes cameraBlink {
    0%, 90%, 100% { fill: #e74c3c; }
    95% { fill: #c0392b; }
}

[data-theme="dark"] .construction-error-svg circle[r="5"] {
    animation: cameraBlink 3s ease-in-out infinite;
}

/* Fence pattern for dark mode */
[data-theme="dark"] #fence rect {
    fill: #7f8c8d;
}

/* Make error pages look good in dark mode */
[data-theme="dark"] .construction-error-svg {
    filter: brightness(0.9);
}