/* ==========================================================================
   Error-page family — carbon-copy of the legacy /404.html design.
   Source of truth: /Users/ace/Projects/php/Flying411/404.html (its <style>).
   The legacy html loaded the Tailwind CDN <script>; we do NOT — this file
   ports the legacy <style> VERBATIM and then reproduces the exact Tailwind
   utility classes the legacy markup used so the pages are self-contained.
   Shared by: app/not-found.tsx and app/error.tsx (linked, not global).
   ========================================================================== */

/* ---- VERBATIM legacy <style> from 404.html -------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #D9D9D9; /* Light grey background as requested */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px; /* Add some padding for smaller screens */
    box-sizing: border-box;
}

.containers {
    max-width: 1300px;
    width: 90%;
    margin: auto;
    display: flex;
    /*flex-direction: column;*/
    align-items: center;
    text-align: left;
    gap: 40px; /* Space between the text block and the aircraft/404 */
    /* Max width to keep content contained */
}

@media (max-width: 768px) {
    .containers {
        flex-direction: column-reverse; /* Horizontal layout on larger screens */
        justify-content: space-between;
        text-align: center;
        gap: 80px;
    }
}

.text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #333; /* Darker text for contrast on light background */
}

/* Styling for the massive 404 text on the right side graphic */


@media (max-width: 768px) {
    .error-code-graphic {
        font-size: 8rem;
    }
}

.error-message {
    font-size: 2.5rem; /* Error message */
    font-weight: 700;
    color: #555;
    line-height: 1.1;
}

.aircraft-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 300px; /* Ensures the large 404 text has enough space */
}

/* ---- Reproduced Tailwind utilities used by the legacy 404 markup ---------- */
/* (legacy pulled these from the Tailwind CDN; reproduced here 1:1 so the page
   renders identically without any external <script>.) */
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-gray-700 {
    color: #374151;
}

.max-w-sm {
    max-width: 24rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.text-white {
    color: #ffffff;
}

.font-semibold {
    font-weight: 600;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-lg {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.w-fit {
    width: fit-content;
}

/* The CTA is an <a>/<button>; make it a proper inline pill. Text alignment is
   left INHERITED (from .containers) on desktop and center on mobile — matching
   legacy exactly, which sets no text-align on the anchor and lets .containers
   drive it (left ≥768px, center <768px). Do NOT hard-set text-align here. */
a.bg-gray-600,
button.bg-gray-600 {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.bg-gray-600:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}

@media (min-width: 768px) {
    .md\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---- Local helpers (not from legacy; error.tsx secondary link + image) ---- */
.aircraft-image {
    max-width: 100%;
    height: auto;
}

.error-secondary-link {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    color: #4b5563;
    font-weight: 600;
    text-decoration: underline;
}

.error-secondary-link:hover {
    color: #1d4ed8;
}

@media (min-width: 768px) {
    .error-secondary-link {
        margin-left: 0;
        margin-right: 0;
    }
}
