﻿/* ============================================================
   NOT FOUND (404) – Branded Styles
   Red (#FF0033), Grey (#9C9B9B / #F2F2F2), Black
   Simple floating animation for the 404 digits
   ============================================================ */

/* ---------- Section Layout ---------- */
.not-found-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--landing-section-padding) 1.5rem;
    background-color: var(--color-bg-light, #F2F2F2);
}

.not-found-content {
    max-width: 620px;
    width: 100%;
    text-align: center;
}

/* ---------- The Big 404 ---------- */
.not-found-title {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 0.5rem 0;
    color: var(--color-black, #000);
    letter-spacing: -0.04em;
    display: inline-block;
    /* 🚀 FLOATING ANIMATION */
    animation: float 4s ease-in-out infinite;
}

/* ---------- Red Accent Line ---------- */
.not-found-accent-line {
    width: 80px;
    height: 5px;
    background: var(--color-accent, #FF0033);
    border-radius: 4px;
    margin: 1.25rem auto 1.75rem;
    transition: width 0.3s ease;
}

/* ---------- Typography ---------- */
.not-found-heading {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--color-primary, #222);
}

.not-found-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-muted, #666);
    max-width: 40ch;
    margin: 0 auto 2rem auto;
}

/* ---------- Button ---------- */
.not-found-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--color-accent, #FF0033);
    color: #fff;
    border: 1px solid var(--color-accent, #FF0033);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

    .not-found-btn:hover {
        background-color: #cc0029;
        border-color: #cc0029;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 0, 51, 0.25);
        color: #fff;
    }

/* ---------- Helpful Links ---------- */
.not-found-helpful-links {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--color-muted, #666);
}

.not-found-helpful-label {
    font-weight: 600;
    color: var(--color-primary, #222);
    margin-right: 0.25rem;
}

.not-found-helpful-links a {
    color: var(--color-primary, #222);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

    .not-found-helpful-links a:hover {
        color: var(--color-accent, #FF0033);
        border-bottom-color: var(--color-accent, #FF0033);
    }

.not-found-divider {
    color: var(--color-bg-grey, #9C9B9B);
    user-select: none;
}

/* 🚀 FLOATING KEYFRAMES – now at root level */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ============================================================
   MOBILE STYLES (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
    .not-found-section {
        min-height: 60vh;
        padding: 3rem 1rem;
    }

    .not-found-title {
        font-size: clamp(4rem, 15vw, 6rem);
        animation: float 3.5s ease-in-out infinite;
    }

    .not-found-accent-line {
        width: 60px;
        height: 4px;
        margin: 1rem auto 1.5rem;
    }

    .not-found-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .not-found-btn {
        padding: 0.75rem 2rem;
        width: 100%;
        max-width: 280px;
    }

    .not-found-helpful-links {
        flex-direction: column;
        gap: 0.75rem 0;
        align-items: center;
    }

    .not-found-divider {
        display: none; /* hide dots on mobile for cleaner vertical list */
    }

    .not-found-helpful-links a {
        font-size: 1.05rem;
        padding: 0.3rem 0;
    }
}
