/* ============================================================
 * 404 page — Frugivore theme with floating fruits & vegetables
 * ============================================================ */
.rd-404 {
    position: relative;
    min-height: 620px;
    background:
        radial-gradient(circle at 15% 20%, rgba(212,166,75,0.10), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(240,138,58,0.10), transparent 40%),
        linear-gradient(180deg, var(--rd-cream) 0%, var(--rd-cream-3) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 100px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Floating fruit/veg backdrop */
.rd-404-bg {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
}
.rd-404-fruit {
    position: absolute;
    left: var(--x); top: var(--y);
    font-size: 56px; line-height: 1;
    animation: rd-404-float 5.5s ease-in-out infinite;
    animation-delay: var(--d, 0s);
    transform-origin: center center;
    filter: drop-shadow(0 8px 14px rgba(20,40,30,0.10));
    opacity: 0.92;
    user-select: none;
}
.rd-404-fruit--sm { font-size: 36px; opacity: 0.65; }
@keyframes rd-404-float {
    0%   { transform: translateY(0)    rotate(var(--r, 0deg)); }
    50%  { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -1)); }
    100% { transform: translateY(0)    rotate(var(--r, 0deg)); }
}
@media (prefers-reduced-motion: reduce) {
    .rd-404-fruit { animation: none; }
}

/* Main card */
.rd-404-card {
    position: relative; z-index: 2;
    background: var(--rd-card-bg);
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 56px 64px 48px;
    max-width: 680px; width: 100%;
    text-align: center;
    box-shadow: var(--rd-shadow-lg);
    font-family: var(--rd-sans);
}

/* Eyebrow */
.rd-404-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase;
    font-size: 11px; letter-spacing: 0.14em;
    color: var(--rd-orange-2); font-weight: 700;
    margin-bottom: 18px;
}
.rd-404-eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--rd-orange-2);
}

/* The "404" with a styled orange fruit as the middle "0" */
.rd-404-code {
    font-size: 144px;
    font-weight: 700;
    line-height: 0.9;
    margin: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.04em;
    font-family: var(--rd-sans);
}
.rd-404-digit {
    display: inline-block;
    background: linear-gradient(180deg, var(--rd-green) 0%, var(--rd-green-3) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.rd-404-orange {
    width: 0.88em; height: 0.88em;
    display: inline-flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 35% 30%, #ffba6a 0%, var(--rd-orange) 55%, var(--rd-orange-2) 100%);
    border-radius: 50%;
    box-shadow:
        inset -8px -10px 24px rgba(0,0,0,0.18),
        inset 8px 8px 18px rgba(255,255,255,0.18),
        0 16px 36px rgba(240,138,58,0.4);
    position: relative;
    animation: rd-404-spin 8s linear infinite;
}
.rd-404-orange::before {
    /* a stylized leaf at the top of the orange */
    content: "";
    position: absolute; top: -2%; right: 26%;
    width: 22%; height: 18%;
    background: linear-gradient(135deg, var(--rd-green) 0%, var(--rd-green-3) 100%);
    border-radius: 60% 40% 50% 60% / 40% 60% 40% 60%;
    transform: rotate(-30deg);
    box-shadow: 0 4px 10px rgba(20,40,30,0.25);
}
.rd-404-orange-fruit {
    /* hide the emoji — the styled circle is the visual */
    font-size: 0;
}
@keyframes rd-404-spin {
    from { transform: rotate(-6deg); }
    to   { transform: rotate(354deg); }
}
@media (prefers-reduced-motion: reduce) {
    .rd-404-orange { animation: none; }
}

/* Title + body copy */
.rd-404-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.18;
    color: var(--rd-ink);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.rd-404-title em {
    font-family: var(--rd-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--rd-green);
}
.rd-404-text {
    color: var(--rd-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* CTAs */
.rd-404-cta {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; flex-wrap: wrap;
    margin-bottom: 32px;
}
.rd-404-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600;
    border-radius: var(--rd-radius-pill);
    padding: 13px 24px;
    text-decoration: none !important;
    transition: transform 0.2s var(--rd-easing), box-shadow 0.2s var(--rd-easing), background 0.2s var(--rd-easing);
    line-height: 1.2;
}
.rd-404-btn-primary {
    background: var(--rd-green);
    color: var(--rd-text-inv) !important;
    border: none;
    box-shadow: 0 6px 18px rgba(31,61,46,0.28);
}
.rd-404-btn-primary:hover {
    background: var(--rd-green-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31,61,46,0.36);
    color: var(--rd-text-inv) !important;
}
.rd-404-btn-primary i { font-size: 14px; }
.rd-404-btn-ghost {
    background: transparent;
    color: var(--rd-ink) !important;
    border: 1px solid var(--rd-border);
}
.rd-404-btn-ghost:hover {
    background: var(--rd-cream-2);
    border-color: var(--rd-green);
    color: var(--rd-green) !important;
    transform: translateY(-2px);
}

/* Footer shortcuts */
.rd-404-shortcuts {
    border-top: 1px solid var(--rd-border);
    padding-top: 20px;
    display: flex; align-items: center; justify-content: center;
    gap: 14px; flex-wrap: wrap;
    font-size: 13px;
}
.rd-404-shortcuts-label {
    color: var(--rd-muted); font-weight: 500;
}
.rd-404-shortcuts a {
    color: var(--rd-green) !important;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.2s var(--rd-easing);
}
.rd-404-shortcuts a:hover {
    border-color: var(--rd-green);
}

/* Responsive */
@media (max-width: 700px) {
    .rd-404 { padding: 60px 16px; }
    .rd-404-card { padding: 36px 24px 28px; }
    .rd-404-code { font-size: 96px; gap: 6px; }
    .rd-404-title { font-size: 24px; }
    .rd-404-text { font-size: 14px; }
    .rd-404-fruit { font-size: 36px; }
    .rd-404-fruit--sm { font-size: 24px; }
    .rd-404-btn { padding: 11px 18px; font-size: 13px; }
    .rd-404-shortcuts { gap: 10px; }
}
