/* ============================================
   ANIME-FX.CSS — minimal additive styles for
   anime.js effects. No overrides of existing UI.
   ============================================ */

/* Hero name — give chars their own transform context */
#hcard-name {
    perspective: 1000px;
    display: inline-block;
}
#hcard-name .fx-char {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* ── FOOTER SIGNATURE ── */
.fx-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px 20px;
    margin-top: 16px;
    color: var(--accent, rgba(var(--element-rgb, 228,255,26), 1));
    border-top: 1px solid rgba(var(--element-rgb, 228,255,26), 0.1);
}
.fx-sig-svg {
    width: 280px;
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(var(--element-rgb, 228,255,26), 0.3));
}
.fx-sig-path {
    color: rgba(var(--element-rgb, 228,255,26), 0.85);
}
.fx-sig-line {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
    .fx-sig-svg { width: 220px; }
    .fx-sig-line { font-size: 9px; letter-spacing: 0.15em; }
}

/* ── "FX ONLINE" READY TOAST ── */
.fx-ready-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translate(-50%, -8px);
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(10, 10, 14, 0.92);
    border: 1px solid rgba(var(--element-rgb, 228,255,26), 0.55);
    border-radius: 999px;
    font-family: "SF Mono", "Monaco", "Consolas", monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(var(--element-rgb, 228,255,26), 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 28px rgba(var(--element-rgb, 228,255,26), 0.35),
        0 10px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 1, 0.4, 1);
    white-space: nowrap;
}
.fx-ready-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.fx-ready-icon {
    font-size: 14px;
    animation: fxReadySpin 2s linear infinite;
    display: inline-block;
}
@keyframes fxReadySpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (max-width: 600px) {
    .fx-ready-toast {
        top: 72px;
        font-size: 10px;
        padding: 8px 14px;
        letter-spacing: 0.12em;
    }
}

/* ── HERO ASSEMBLY FLASH ── */
.fx-hero-flash {
    position: absolute;
    inset: -20px -10px;
    border-radius: 24px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(var(--element-rgb, 228,255,26), 0.15) 30%,
        transparent 70%
    );
    opacity: 0;
    pointer-events: none;
    filter: blur(10px);
    transition: opacity 0.25s ease;
    z-index: 0;
}
.fx-hero-flash.fx-hero-flash--active {
    opacity: 1;
    animation: fxHeroPulse 0.7s cubic-bezier(0.3, 1, 0.5, 1);
}
@keyframes fxHeroPulse {
    0%   { opacity: 0;    transform: scale(0.9); }
    35%  { opacity: 1;    transform: scale(1.1); }
    100% { opacity: 0;    transform: scale(1.3); }
}
/* Ensure the parent .hcard-name-block is the positioning context */
.hcard-name-block { position: relative; }
.hcard-name-block #hcard-name { position: relative; z-index: 1; }

/* ── NAVIGATOR LOG (corner HUD) ── */
.fx-nav-log {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 12px;
    background: rgba(10, 10, 14, 0.82);
    border: 1px solid rgba(var(--element-rgb, 228,255,26), 0.35);
    border-radius: 999px;
    font-family: "SF Mono", "Monaco", "Consolas", monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(var(--element-rgb, 228,255,26), 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4),
                0 0 18px rgba(var(--element-rgb, 228,255,26), 0.12);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2,1,0.4,1);
    pointer-events: none;
    max-width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fx-nav-log.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.fx-nav-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(var(--element-rgb, 228,255,26), 1);
    box-shadow: 0 0 8px rgba(var(--element-rgb, 228,255,26), 0.9);
    animation: fxNavPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes fxNavPulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 8px  rgba(var(--element-rgb, 228,255,26), 0.9); }
    50%      { opacity: 0.4; box-shadow: 0 0 14px rgba(var(--element-rgb, 228,255,26), 0.6); }
}
@media (max-width: 768px) {
    .fx-nav-log {
        top: auto;
        bottom: 80px;
        right: 12px;
        left: 12px;
        justify-content: flex-start;
        font-size: 10px;
        padding: 6px 12px;
    }
}

/* Recruiter mode — all fx suppressed */
body[data-mode="recruiter"] .fx-nav-log,
body[data-mode="recruiter"] .fx-signature { display: none !important; }

/* Reduced motion fallback — engine already skips, but belt+suspenders */
@media (prefers-reduced-motion: reduce) {
    .fx-nav-log, .fx-signature { display: none !important; }
    #hcard-name .fx-char {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}
