/* ============================================================
   fmf-empty-states.css
   Global empty-state skin: paper-clipping card in the
   monster-kid bulletin board aesthetic.

   Loaded sitewide by functions.php so any surface can render
   an empty-state card (404, search-no-results, archive filter
   misses, bbPress/BP empty loops, etc.).

   Card variants (modifier classes) set the icon size/tilt:
     .fmf-empty-state--topic    → eyes peering
     .fmf-empty-state--activity → Erik peeking
     .fmf-empty-state--404      → eyes, larger tilt
     .fmf-empty-state--search   → Erik, straight-ish
     .fmf-empty-state--filter   → Erik or eyes, small
   ============================================================ */

.fmf-empty-state {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    max-width: 560px;
    margin: 2.2rem auto;
    padding: 2rem 1.6rem 1.6rem;
    background: var(--fm-paper);
    color: var(--fm-black);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.25);
    transform: rotate(-0.4deg);
}

/* Masking-tape strip across the top — fanzine-wall feel */
.fmf-empty-state::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 110px;
    height: 18px;
    background: rgba(201, 134, 10, 0.55);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fmf-empty-state-icon {
    width: 72px;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.fmf-empty-state--topic .fmf-empty-state-icon {
    width: 96px;
    margin-top: -0.3rem;
    transform: rotate(-3deg);
}

.fmf-empty-state--activity .fmf-empty-state-icon {
    width: 78px;
    transform: rotate(-5deg);
}

.fmf-empty-state--404 .fmf-empty-state-icon {
    width: 120px;
    margin-top: -0.2rem;
    transform: rotate(-4deg);
    animation: fmf-eyes-blink 6.5s infinite;
}

.fmf-empty-state--search .fmf-empty-state-icon {
    width: 92px;
    transform: rotate(-2deg);
}

.fmf-empty-state--filter .fmf-empty-state-icon {
    width: 72px;
    transform: rotate(-3deg);
}

@keyframes fmf-eyes-blink {
    0%, 88%, 94%, 100% { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); opacity: 1; }
    90%, 92%           { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); opacity: 0.15; }
}

.fmf-empty-state-heading {
    font-family: 'Nosifer', 'Impact', sans-serif;
    font-size: 1.55rem;
    line-height: 1.1;
    color: var(--fm-red-bright);
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.fmf-empty-state-copy {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--fm-black);
    margin: 0;
    letter-spacing: 0.01em;
}

.fmf-empty-state-copy em {
    font-style: italic;
    /* A2 funky-palette 2026-05-15: green-toxic tint per spec ("Erik
       whisper" accent). Was amber rgba(201,134,10,0.28). */
    background: rgba(91, 186, 71, 0.28);
    padding: 0 0.2em;
    border-radius: 1px;
}

.fmf-empty-state-ctas {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.fmf-empty-state-btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.fmf-empty-state-btn-primary {
    background: var(--fm-red-bright);
    color: var(--fm-paper) !important;
    border: 1px solid var(--fm-red-dark);
    box-shadow:
        0 3px 0 var(--fm-red-dark),
        0 4px 8px rgba(139, 0, 0, 0.45);
}

.fmf-empty-state-btn-primary:hover,
.fmf-empty-state-btn-primary:focus {
    background: var(--fm-red-hover);
    transform: translateY(-1px);
}

.fmf-empty-state-btn-outline {
    background: transparent;
    color: var(--fm-red-bright) !important;
    border: 1px solid var(--fm-red-bright);
}

.fmf-empty-state-btn-outline:hover,
.fmf-empty-state-btn-outline:focus {
    background: var(--fm-red-bright);
    color: var(--fm-paper) !important;
}

@media (max-width: 640px) {
    .fmf-empty-state {
        max-width: 92%;
        padding: 1.6rem 1.1rem 1.2rem;
        margin: 1.6rem auto;
    }
    .fmf-empty-state-icon { width: 58px; }
    .fmf-empty-state--topic    .fmf-empty-state-icon { width: 76px; }
    .fmf-empty-state--activity .fmf-empty-state-icon { width: 64px; }
    .fmf-empty-state--404      .fmf-empty-state-icon { width: 92px; }
    .fmf-empty-state--search   .fmf-empty-state-icon { width: 72px; }
    .fmf-empty-state-heading   { font-size: 1.25rem; }
    .fmf-empty-state-copy      { font-size: 0.96rem; }
    .fmf-empty-state-btn       { font-size: 0.9rem; padding: 0.5rem 0.95rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   404 PAGE LAYOUT — frame the empty-state card with breathing room
   ═══════════════════════════════════════════════════════════════════ */
.fmf-404-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   404 VARIANT — closet dark.
   Lights are off; you're inside; only the eyes (and the red Nosifer
   scrawl) read against pitch-black. The exits are the only things
   that look warm — make the visitor want to push toward them.
   ═══════════════════════════════════════════════════════════════════ */

/* Whole page goes pitch on a 404. WP adds .error404 to <body>. */
body.error404 {
    background: #000 !important;
}

/* Soft dim warm core inside the wrap so the eyes have a flashlight stage
   to glow on, falling off to true black at the edges. */
.fmf-404-wrap {
    background:
        radial-gradient(ellipse at 50% 38%, #170c06 0%, #050302 65%, #000 100%);
}

/* Card dissolves into the dark — no paper, no tape, no fanzine tilt. */
.fmf-empty-state--404 {
    background: transparent;
    color: var(--fm-bone);
    border: 1px solid rgba(232, 220, 200, 0.05);
    box-shadow: none;
    transform: none;
}
.fmf-empty-state--404::before {
    display: none;
}

/* Amber eyeshine — "something is watching from the shelf." Animation
   carries the drop-shadow inside the keyframes so the glow never resets
   to the bone-paper variant's default drop-shadow on each blink. */
@keyframes fmf-eyes-blink-glow {
    0%, 88%, 94%, 100% {
        filter:
            drop-shadow(0 0 18px rgba(255, 196, 80, 0.7))
            drop-shadow(0 0 4px rgba(255, 196, 80, 0.9));
        opacity: 1;
    }
    90%, 92% {
        filter:
            drop-shadow(0 0 8px rgba(255, 196, 80, 0.3));
        opacity: 0.15;
    }
}
.fmf-empty-state--404 .fmf-empty-state-icon {
    animation: fmf-eyes-blink-glow 6.5s infinite;
}

/* Headline: vivid red Nosifer scrawled on the dark — flashlight catches
   it for a second. Brighter halo than the bone-paper variant. */
.fmf-empty-state--404 .fmf-empty-state-heading {
    text-shadow:
        0 0 14px rgba(232, 54, 42, 0.7),
        0 0 2px rgba(0, 0, 0, 0.95);
}

/* Body copy: bone typewriter — like a note found in the dark. */
.fmf-empty-state--404 .fmf-empty-state-copy {
    color: var(--fm-bone);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
}
.fmf-empty-state--404 .fmf-empty-state-copy em {
    background: rgba(255, 196, 80, 0.18);
    color: var(--fm-bone);
}

/* Buttons inherit the primary-red + outline-red treatment from the base
   skin — both already pop on black. They're the escape routes; the eye
   should land on them after the eyes and the headline. */

/* END fmf-empty-states.css ───────────────────────────────────── */
