/*
 * SHELL STYLES — loaded by index.html before the app bundle.
 *
 * This used to be an inline <style> block in index.html. Vite 6's
 * html-inline-proxy path, together with @tailwindcss/vite, could not build
 * it: "No matching HTML proxy module found" failed every production build,
 * which meant the live site's dist could never be regenerated - and a stale
 * bundle is how old lies stay on a domain. The rules are byte-identical,
 * loaded from the same position in <head>, so the cascade is unchanged.
 *
 * The shakura-blur rules are a SAFETY surface (ShakuraProtector's
 * graphic-content filter). They blur graphic combat media by default and
 * reveal on hover. Do not reorder them below the app CSS.
 */

body {
    font-family: 'Inter', sans-serif;
    background-color: #09090b;
    color: #fafafa;
}
/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #18181b;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* ShakuraProtector Safe Combat Content Filter Styles & Moderation Overlays */
body.shakura-blur-graphic .graphic-combat-media,
body.shakura-blur-graphic video.graphic-feed,
body.shakura-blur-graphic .blood-flagged,
body.shakura-blur-graphic .ko-replay-media,
body.shakura-blur-graphic .combat-cut-media,
body.shakura-blur-graphic [data-graphic-combat="true"] {
    filter: blur(16px) brightness(0.65);
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
body.shakura-blur-graphic-heavy .graphic-combat-media,
body.shakura-blur-graphic-heavy video.graphic-feed,
body.shakura-blur-graphic-heavy [data-graphic-combat="true"] {
    filter: blur(24px) brightness(0.5);
}
body.shakura-blur-graphic-low .graphic-combat-media,
body.shakura-blur-graphic-low video.graphic-feed,
body.shakura-blur-graphic-low [data-graphic-combat="true"] {
    filter: blur(8px) brightness(0.8);
}
body.shakura-blur-graphic .graphic-combat-media:hover,
body.shakura-blur-graphic video.graphic-feed:hover,
body.shakura-blur-graphic [data-graphic-combat="true"]:hover {
    filter: blur(0px) brightness(1);
}
.shakura-reveal-active {
    filter: none !important;
}

/* Subtle Heartbeat & Exertion Pulse Keyframes for >120 BPM */
@keyframes subtle-heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.18); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes hr-pulse-glow {
    0%, 100% {
        box-shadow: 0 0 12px -2px rgba(244, 63, 94, 0.25);
        border-color: rgba(244, 63, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 22px 2px rgba(244, 63, 94, 0.5);
        border-color: rgba(244, 63, 94, 0.85);
    }
}

.animate-subtle-heartbeat {
    animation: subtle-heartbeat 0.85s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.animate-hr-glow {
    animation: hr-pulse-glow 1.2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * WCAG 2.1 AA — REDUCED MOTION & BANDWIDTH ACCESSIBILITY
 * ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .animate-spin, .animate-ping, .animate-pulse, .animate-bounce,
    .animate-subtle-heartbeat, .animate-hr-glow {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * WCAG 2.1 AA — KEYBOARD FOCUS VISIBILITY & SKIP LINK
 * ═══════════════════════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid #FF9D2F !important;
    outline-offset: 2px !important;
}

.dfc-skip-link {
    position: fixed;
    top: -9999px;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: #FF9D2F;
    color: #000000;
    font-weight: 900;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 157, 47, 0.4);
    text-decoration: none;
    transition: top 0.15s ease-in-out;
}

.dfc-skip-link:focus {
    top: 1rem;
}

