/* ==========================================================================
   SKYFALL - 404 ERROR PAGE STYLES
   ========================================================================== */

.sf-404-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030303;
    overflow: hidden;
}

/* Background Effects */
.sf-404-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(234, 88, 12, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.sf-404-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(234, 88, 12, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 88, 12, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.sf-404-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    animation: sf-scanlines 8s linear infinite;
}

@keyframes sf-scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Container */
.sf-404-container {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.sf-404-content {
    text-align: center;
}

/* HUD Frame */
.sf-404-frame {
    --hud-color: #EA580C;
    position: relative;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(234, 88, 12, 0.2);
    padding: 3rem 2rem;
}

.sf-404-frame .hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 2;
}

.sf-404-frame .hud-corner-tl {
    top: 0; left: 0;
    border-top: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-404-frame .hud-corner-tr {
    top: 0; right: 0;
    border-top: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

.sf-404-frame .hud-corner-bl {
    bottom: 0; left: 0;
    border-bottom: 2px solid var(--hud-color);
    border-left: 2px solid var(--hud-color);
}

.sf-404-frame .hud-corner-br {
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
}

/* Error Code */
.sf-404-code {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sf-404-code-text {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: #EA580C;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(234, 88, 12, 0.4);
}

.sf-404-code-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(234, 88, 12, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

@media (max-width: 640px) {
    .sf-404-code-text {
        font-size: 4rem;
    }
}

/* Status Indicator */
.sf-404-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-bottom: 1.5rem;
}

.sf-404-status-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: sf-404-pulse 2s ease-in-out infinite;
}

@keyframes sf-404-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sf-404-status-text {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ef4444;
}

/* Subtitle */
.sf-404-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .sf-404-subtitle {
        font-size: 1.375rem;
    }
}

/* Description */
.sf-404-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto 2rem;
}

/* Search Form */
.sf-404-search {
    margin-bottom: 1.5rem;
}

.sf-404-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sf-404-search-wrapper:focus-within {
    border-color: rgba(234, 88, 12, 0.4);
    background: rgba(234, 88, 12, 0.05);
}

.sf-404-search-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.sf-404-search-input {
    flex: 1;
    padding: 14px 16px 14px 48px;
    background: transparent;
    border: none;
    font-size: 0.9375rem;
    color: #fff;
    outline: none;
}

.sf-404-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sf-404-search-btn {
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-404-search-btn:hover {
    color: #EA580C;
    background: rgba(234, 88, 12, 0.1);
}

/* Action Button */
.sf-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #EA580C 0%, #c2410c 100%);
    border: 1px solid rgba(234, 88, 12, 0.5);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sf-404-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sf-404-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.3);
}

.sf-404-btn:hover::before {
    opacity: 1;
}

.sf-404-btn svg {
    transition: transform 0.3s ease;
}

.sf-404-btn:hover svg {
    transform: translateX(4px);
}

/* Terminal Info */
.sf-404-terminal {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sf-404-terminal-prompt {
    color: #EA580C;
}

.sf-404-terminal-cursor {
    width: 8px;
    height: 14px;
    background: #EA580C;
    animation: sf-cursor-blink 1s step-end infinite;
}

@keyframes sf-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 640px) {
    .sf-404-frame {
        padding: 2rem 1.5rem;
    }

    .sf-404-terminal {
        flex-wrap: wrap;
        text-align: center;
    }
}
