/* Base container for schematic interactions */
.schematic-host {
    position: relative;
    overflow-x: hidden;
}

/* Disabled: expensive 3D perspective grid — body already has grid */
.glass-blueprint-grid {
    display: none;
}


/* Hero Scanner Sweep Over Profile Image */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.scanner-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    /* Inherits 40px from hero-image */
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.scanner-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, transparent 0%, rgba(var(--accent-rgb), 0.1) 80%, var(--accent-avionics) 100%);
    opacity: 0.6;
    animation: scanSweep 3s ease-in-out infinite;
}

@keyframes scanSweep {
    0% {
        top: -20%;
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* --- Advanced Biometric HUD for Hero Image --- */

/* Base Optical Grid */
.hud-optics-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

/* Targeting Brackets (Drone Viewfinder) */
.hud-bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-radar);
    z-index: 4;
    pointer-events: none;
    opacity: 0.6;
}

.top-left {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 30px;
    right: 30px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 30px;
    left: 30px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

/* Scanline Overlay (Replaces cheap moving laser) */
.advanced-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    opacity: 0.8;
}

/* Subtle data sweep */
.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.1) 50%, rgba(0, 240, 255, 0.2));
    border-bottom: 1px solid rgba(0, 240, 255, 0.5);
    animation: radarSweep 6s linear infinite;
    mix-blend-mode: screen;
}

.scanner-trail {
    display: none;
}

@keyframes radarSweep {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(800%);
    }
}

/* Inner Telemetry Data */
.hud-data {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    z-index: 5;
    pointer-events: none;
    opacity: 0.9;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-data-tl {
    top: 35px;
    left: 40px;
}

.hud-data-tr {
    top: 35px;
    right: 40px;
    text-align: right;
}

.hud-data-bl {
    bottom: 35px;
    left: 40px;
}

.hud-data-br {
    bottom: 35px;
    right: 40px;
    text-align: right;
}

.hud-rec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ef4444;
    /* Red recording color */
}

.rec-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

.hud-lock-text {
    border: 1px solid var(--accent-critical);
    /* Red lock */
    color: var(--accent-critical);
    padding: 2px 4px;
    background: rgba(255, 42, 42, 0.1);
}

/* --- Operations Log Timeline --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--panel-bg);
    border: 2px solid var(--accent);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-glow);
    background: var(--accent);
}

.timeline-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.timeline-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: white;
    /* Adding white bg in case images are dark */
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--accent);
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.timeline-company {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.timeline-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 8px;
}

.timeline-desc strong {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 4px;
    }
}

/* Alignment / Calibration Marks on Glass Cards */
.schematic-card {
    position: relative;
    overflow: visible;
    /* to allow crosshairs to bleed over edges */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.schematic-card:hover {
    transform: translateY(-5px);
}

.card-alignment-mark {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.schematic-card:hover .card-alignment-mark {
    opacity: 1;
    transform: rotate(90deg);
}

/* Draw crosses */
.card-alignment-mark::before,
.card-alignment-mark::after {
    content: '';
    position: absolute;
    background: var(--text-secondary);
    /* Keeps it subtle against glass */
}

.card-alignment-mark::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

.card-alignment-mark::after {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.cam-tl {
    top: 10px;
    left: 10px;
}

.cam-tr {
    top: 10px;
    right: 10px;
}

.cam-bl {
    bottom: 10px;
    left: 10px;
}

.cam-br {
    bottom: 10px;
    right: 10px;
}

/* Text Scramble Target Typography */
.scramble-text {
    font-family: 'Space Mono', monospace !important;
    /* Overriding default Inter to make it look like raw data */
}

/* System Diagnostics Mini Card (Hero overlay) */
.system-diagnostics {
    position: absolute;
    right: 0px;
    bottom: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-avionics);
    padding: 12px 16px;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-primary);
    z-index: 10;
    width: 200px;
    text-align: left;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: floatDiag 6s ease-in-out infinite;
}

@keyframes floatDiag {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.diag-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.diag-label {
    color: var(--text-secondary);
}

.diag-val.ok {
    color: #10b981;
}

.diag-val.warn {
    color: #f59e0b;
}
/* =========================================
   SERVICE DOSSIER ENHANCEMENTS 
   ========================================= */

/* Dossier Hero Section */
.dossier-hero {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
    position: relative;
}

.dossier-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dossier-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dossier-metrics span {
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 6px 12px;
    border-radius: 4px;
}

.dossier-metrics strong {
    color: var(--accent);
}

/* Secure Comms Button */
.secure-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(57, 255, 128, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 24px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.secure-link-btn:hover {
    background: rgba(57, 255, 128, 0.2);
    box-shadow: 0 0 15px rgba(57, 255, 128, 0.3);
    transform: translateY(-2px);
}

/* Tactical Briefing Interactive Cards */
.mission-report {
    width: 100%;
    margin-top: 15px;
    border-top: 1px dashed rgba(var(--text-primary-rgb), 0.2);
    padding-top: 10px;
}

.mission-report summary {
    list-style: none; /* Remove default arrow */
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.mission-report summary::-webkit-details-marker {
    display: none; /* Safari */
}

.mission-report summary::before {
    content: '[+]';
    display: inline-block;
    transition: transform 0.2s ease;
}

.mission-report[open] summary::before {
    content: '[-]';
}

.mission-report summary:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Expanded Content */
.mission-details {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    animation: slideDown 0.3s ease-out forwards;
}

.tactical-block {
    margin-bottom: 12px;
}

.tactical-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ambient Timeline Sweep */
.timeline-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: timelinePulse 8s linear infinite;
    opacity: 0.8;
}

@keyframes timelinePulse {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(500%); }
}

