/* Redacted content - black bar with CLASSIFIED stamp */
.redacted {
    background: #000;
    color: transparent;
    padding: 0.2rem 0.5rem;
    position: relative;
    display: inline-block;
    cursor: help;
    transition: all 0.5s var(--motion-spring-expressive, ease);
    border-radius: 2px;
    user-select: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.redacted::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg, #000 0px, #000 3px, #1a1a1a 3px, #1a1a1a 6px);
    opacity: 1;
    border-radius: 2px;
    z-index: 1;
}

.redacted::after {
    content: 'CLASSIFIED';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 0.6rem;
    font-weight: 800;
    color: rgba(255, 0, 0, 0.3);
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 3px rgba(255, 0, 0, 0.5);
}

.redacted.revealing {
    animation: declassify 1s var(--motion-spring-expressive, cubic-bezier(0.4, 0, 0.2, 1));
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    color: var(--md-sys-color-primary, #BBC3FF);
    text-shadow: 0 0 5px rgba(187, 195, 255, 0.5);
}

@keyframes declassify {
    0% { filter: brightness(1); }
    25% { filter: brightness(1.5) contrast(1.2); }
    50% {
        filter: brightness(2) contrast(1.5);
        box-shadow: 0 0 20px rgba(187, 195, 255, 0.6), inset 0 0 20px rgba(187, 195, 255, 0.4);
    }
    75% { filter: brightness(1.5) contrast(1.2); }
    100% { filter: brightness(1); }
}

.redacted.revealing::before {
    animation: scanLine 1s var(--motion-spring-expressive, cubic-bezier(0.4, 0, 0.2, 1));
}

@keyframes scanLine {
    0% { clip-path: inset(0 0 100% 0); background: #000; }
    50% { background: linear-gradient(180deg, #000 0%, rgba(187, 195, 255, 0.3) 50%, #000 100%); }
    100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

.redacted.revealed {
    background: linear-gradient(145deg, var(--md-sys-color-primary, #BBC3FF), var(--md-sys-color-primary-container, #383F90));
    color: white;
    padding: 0.2rem 0.5rem;
    box-shadow: 0 0 15px rgba(187, 195, 255, 0.4);
    animation: revealGlow 0.3s ease;
}

@keyframes revealGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(187, 195, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(187, 195, 255, 0.8); }
}

.redacted.revealed::before,
.redacted.revealed::after {
    display: none;
}

.redacted:hover:not(.revealed) {
    animation: redactPulse 1.5s ease-in-out infinite;
}

@keyframes redactPulse {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: inset 0 0 0 1px rgba(187, 195, 255, 0.4), 0 0 10px rgba(187, 195, 255, 0.2); }
}
