/* SSB Defence Pro - Article CSS Supplementary */

/* Heading anchors */
.ssb-heading-anchor {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--clr-accent);
    text-decoration: none;
    font-size: 0.75em;
    vertical-align: middle;
}
h2:hover .ssb-heading-anchor,
h3:hover .ssb-heading-anchor,
h4:hover .ssb-heading-anchor { opacity: 1; }

.ssb-anchor-copied {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    background: var(--clr-accent);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
}

/* Toast notification */
.ssb-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--clr-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}
.ssb-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Reveal animation */
.ssb-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.ssb-reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .ssb-reveal { opacity: 1; transform: none; }
}

/* Card fade in */
.ssb-card--fade-in { opacity: 0; transition: opacity 0.3s ease; }
.ssb-card--fade-in.is-visible { opacity: 1; }

/* Mobile nav overlay */
#ssb-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 89;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#ssb-nav-overlay.is-visible { opacity: 1; pointer-events: all; }

/* Search open state */
body.ssb-search-open { overflow: hidden; }
body.ssb-nav-open { overflow: hidden; }

/* Loading spinner */
.ssb-spinner {
    animation: ssb-spin 0.8s linear infinite;
}
@keyframes ssb-spin { to { transform: rotate(360deg); } }

/* Glossary loading state */
.ssb-glossary-grid.is-loading { opacity: 0.5; pointer-events: none; }
