/* ========================================================
   404 ERROR PAGE STYLES
   ======================================================== */

.error-page-container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.error-wrapper {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

/* TERMINAL GRAPHIC */
.error-code-card {
    width: 100%;
    background: var(--bg-surface, #111827);
    border: 1px solid var(--border-color, #1F2937);
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.terminal-header {
    background: var(--bg-card, #1F2937);
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-color, #1F2937);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.terminal-title {
    font-size: 0.75rem;
    font-family: var(--font-code, 'JetBrains Mono', monospace);
    color: var(--text-muted, #6B7280);
    margin-left: auto;
}

.terminal-body {
    padding: 1.25rem;
    font-family: var(--font-code, 'JetBrains Mono', monospace);
    font-size: 0.825rem;
    line-height: 1.6;
    overflow-x: auto;
    background: var(--bg-main, #0B0F19);
}

.code-line {
    margin: 0;
    color: #E5E7EB;
}

.code-line.indent { padding-left: 1.25rem; }
.code-line.double-indent { padding-left: 2.5rem; }

.code-keyword { color: #EC4899; font-weight: 600; }
.code-string { color: #10B981; }
.code-func { color: #6366F1; }
.code-class { color: #F59E0B; }

/* ERROR TEXT & ACTIONS */
.error-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #F9FAFB);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.error-subtitle {
    color: var(--text-secondary, #9CA3AF);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

/* SEARCH BOX */
.error-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-surface, #111827);
    border: 1px solid var(--border-color, #1F2937);
    border-radius: var(--radius-lg, 12px);
    padding: 0.35rem 0.4rem 0.35rem 0.9rem;
    gap: 0.65rem;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.error-search-box:focus-within {
    border-color: var(--primary, #6366F1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.error-search-box .search-icon {
    position: relative;
    left: auto;
    top: auto;
    font-size: 0.9rem;
    color: var(--text-muted, #6B7280);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.error-search-box input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary, #F9FAFB);
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
}

.error-search-box .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* QUICK LINKS */
.error-quick-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.quick-links-label {
    font-size: 0.8rem;
    color: var(--text-muted, #6B7280);
}

.links-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.links-group .btn-secondary {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-search-box {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .error-search-box input,
    .error-search-box .btn-primary {
        width: 100%;
    }
}