/**
 * FUSION EATS - ERROR PAGES STYLING
 * Stunning, premium error states for 404 and 500
 */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #FDFCFB;
    position: relative;
    overflow-x: hidden;
}

.error-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    z-index: 10;
}

.error-container {
    max-width: 800px;
    width: 100%;
    z-index: 10;
    animation: errorFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.error-code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 0.8;
    color: #111827;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    position: relative;
    display: inline-block;
}

.error-code::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #ef4444;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    transform: translate(10px, -10px);
    opacity: 0.1;
    z-index: -1;
}

.error-title {
    font-family: 'Playfair Display SC', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.error-desc {
    font-family: 'Karla', sans-serif;
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-visual {
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.error-icon-bg {
    width: 150px;
    height: 150px;
    background-color: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.error-icon-bg i {
    font-size: 4rem;
    color: #ef4444;
}

.error-icon-bg::before {
    content: "";
    position: absolute;
    inset: -10px;
    border: 2px dashed #fee2e2;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes errorFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.floating-food {
    position: absolute;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.food-1 { top: 10%; left: 5%; font-size: 8rem; transform: rotate(-15deg); }
.food-2 { top: 20%; right: 10%; font-size: 6rem; transform: rotate(20deg); }
.food-3 { bottom: 15%; left: 15%; font-size: 7rem; transform: rotate(10deg); }
.food-4 { bottom: 10%; right: 5%; font-size: 9rem; transform: rotate(-25deg); }
