/* Pelagic Archives - Custom Styles */

/* HUD Border Effect */
.hud-border {
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.3);
}
.hud-border::before, .hud-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #00D4FF;
}
.hud-border::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-border::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Card Glow */
.card-glow {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
    transition: all 0.3s ease;
}
.card-glow:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

/* Text Glow */
.text-glow { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }

/* Scan Line Animation */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    animation: scan 3s linear infinite;
}
@keyframes scan {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #00D4FF;
    white-space: nowrap;
    animation: typing 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
}
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink {
    50% { border-color: transparent; }
}

/* Depth Gradient */
.depth-gradient {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 16, 20, 0.95);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Masonry Grid */
.masonry-grid {
    columns: 1;
    column-gap: 1rem;
}
@media (min-width: 640px) { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* Case File Sidebar */
.case-file-data dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 212, 255, 0.7);
    margin-bottom: 0.25rem;
}
.case-file-data dd {
    font-family: 'Inter', sans-serif;
    color: #E0F7FA;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #051014; }
::-webkit-scrollbar-thumb { background: #0F2634; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00D4FF; }

/* Selection */
::selection { background: rgba(0, 212, 255, 0.3); color: #E0F7FA; }
