/* ShinobiWar — custom styles (font-face, animations, list bullets, prose, post content) */

/* ---- Local display font (was next/font/local blackpast.otf) ---- */
@font-face {
    font-family: "Blackpast";
    src: url("/assets/fonts/blackpast.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
.font-blackpast {
    font-family: "Blackpast", ui-sans-serif, system-ui, sans-serif;
}

/* ---- 3px border used throughout the design (not in the default TW scale) ---- */
.border-3 {
    border-width: 3px;
}

/* ---- News tabs (news / guides / highlights) — clear click affordance ---- */
.news-tab {
    cursor: pointer;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.news-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #3b82f6;
    border-radius: 3px;
    transition: width 0.2s ease;
}
.news-tab:hover::after,
.news-tab.is-active::after {
    width: 100%;
}
.news-tab.is-active {
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.55);
}

/* ---- Custom list bullet (news / guides / highlights lists) ---- */
ul.custom-list li {
    position: relative;
    padding-left: 28px;
}
ul.custom-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("/images/news/bullet.png");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ---- Rotating + pulsing class aura ---- */
@keyframes shinobi-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes shinobi-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
.animate-spin-slow {
    animation: shinobi-spin 10s linear infinite,
               shinobi-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =========================================================================
   Prose (subset of @tailwindcss/typography `prose prose-invert`)
   Used by the Agency, Privacy Policy and Terms pages.
   ========================================================================= */
.prose {
    color: #d4d4d8;                /* zinc-300 */
    line-height: 1.75;
    font-size: 1rem;
}
.prose > * + * { margin-top: 1.25em; }
.prose h1 { color: #fff; font-weight: 800; font-size: 2.25em; line-height: 1.1; margin-top: 0; margin-bottom: 0.8em; }
.prose h2 {
    color: #f4f4f5;               /* zinc-100 */
    font-weight: 700;
    font-size: 1.5em;
    line-height: 1.3;
    margin-top: 2.5rem;           /* prose-h2:mt-10 */
    margin-bottom: 0.75em;
}
.prose h3 { color: #f4f4f5; font-weight: 600; font-size: 1.25em; line-height: 1.4; margin-top: 1.6em; margin-bottom: 0.6em; }
.prose p { color: #d4d4d8; margin-top: 1.25em; margin-bottom: 1.25em; }
.prose a { color: #60a5fa; text-decoration: underline; }
.prose a:hover { color: #3b82f6; }
.prose strong { color: #f4f4f5; font-weight: 600; }
.prose ul { list-style: disc; padding-left: 1.625em; margin-top: 1.25em; margin-bottom: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.625em; margin-top: 1.25em; margin-bottom: 1.25em; }
.prose li { color: #d4d4d8; margin-top: 0.5em; margin-bottom: 0.5em; }
.prose hr { border: 0; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5em; margin-bottom: 2.5em; }
.prose blockquote { border-left: 4px solid #3b82f6; padding-left: 1em; font-style: italic; }

/* =========================================================================
   Post content (was mdx-components.tsx) — news / guides / highlights bodies
   ========================================================================= */
.post-content h1 { font-size: 3.75rem; line-height: 1; font-weight: 700; margin-bottom: 1rem; }
.post-content h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 500; margin-bottom: 1rem; }
.post-content h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 500; margin-bottom: 1rem; }
.post-content p  { font-size: 1rem; margin-bottom: 1rem; }
.post-content ul { list-style: disc; list-style-position: inside; padding-top: 1rem; padding-bottom: 1rem; }
.post-content ol { list-style: decimal; list-style-position: inside; padding-top: 1rem; padding-bottom: 1rem; }
.post-content ul > * + *, .post-content ol > * + * { margin-top: 0.5rem; }
.post-content li { font-size: 1rem; }
.post-content blockquote { border-left: 4px solid #3b82f6; padding-left: 1rem; font-style: italic; font-size: 1rem; margin-bottom: 1rem; }
.post-content code { background: rgba(0,0,0,0.6); padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.875rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-content pre { background: rgba(0,0,0,0.6); font-size: 1rem; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; }
.post-content pre code { background: transparent; padding: 0; }
.post-content a { color: #3b82f6; text-decoration: underline; }
.post-content a:hover { color: #2563eb; }
.post-content hr { border-color: rgba(0,0,0,0.6); }
.post-content strong { font-weight: 600; }
.post-content em { font-style: italic; }
.post-content img { border-radius: 0.5rem; border: 1px solid rgba(0,0,0,0.6); width: 100%; height: auto; }
