/* matchoomnews.com - HUD Overlay / Cyberpunk News */
/* Colors: #0A0E14, #111827, #00E5FF, #E0F0FF, #FF2D55, #FF6B35, #A0B8CC */
/* Fonts: Chakra Petch, Source Sans 3, Space Mono */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: #A0B8CC;
    background: #0A0E14;
    overflow-x: hidden;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* Scan Line */
.scan-line {
    position: fixed;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    z-index: 999;
    pointer-events: none;
    animation: scanSweep 8s linear infinite;
}

@keyframes scanSweep {
    0% { top: -2px; opacity: 0; }
    5% { opacity: 0.4; }
    95% { opacity: 0.4; }
    100% { top: 100vh; opacity: 0; }
}

/* Opening Section */
.opening-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Targeting Reticle */
.reticle {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0;
}

.reticle.visible {
    opacity: 0.15;
}

.reticle-circle {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    opacity: 0.4;
}

.reticle.drawn .reticle-circle {
    animation: drawCircle 1.2s ease-out forwards;
}

.reticle.drawn .rc-2 { animation-delay: 0.15s; }
.reticle.drawn .rc-3 { animation-delay: 0.3s; }
.reticle.drawn .rc-4 { animation-delay: 0.45s; }

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

.crosshair {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.reticle.drawn .crosshair {
    animation: drawCrosshair 0.6s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes drawCrosshair {
    to { stroke-dashoffset: 0; }
}

/* Opening Content */
.opening-content {
    text-align: center;
    z-index: 11;
    opacity: 0;
    position: relative;
}

.opening-content.visible {
    animation: hudReveal 0.6s ease-out forwards;
}

@keyframes hudReveal {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.site-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #E0F0FF;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.site-subtitle {
    font-size: 13px;
    color: #00E5FF;
    letter-spacing: 0.15em;
    margin-top: 8px;
}

.mono-text {
    font-family: 'Space Mono', monospace;
}

.opening-status {
    position: absolute;
    bottom: 80px;
    display: flex;
    gap: 32px;
    opacity: 0;
}

.opening-status.visible {
    animation: statusFade 0.4s ease-in forwards;
}

@keyframes statusFade {
    to { opacity: 0.5; }
}

.status-line {
    font-size: 11px;
    color: #00E5FF;
    letter-spacing: 0.1em;
}

/* Timeline Section */
.timeline-section {
    position: relative;
    padding: 100px 0 200px;
    z-index: 10;
}

.timeline-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #00E5FF;
    opacity: 0.3;
    transform: translateX(-50%);
}

/* News Panels */
.news-panel {
    position: relative;
    width: 45%;
    margin-bottom: 60px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(17, 24, 39, 0.8);
}

.panel-left {
    margin-left: 3%;
}

.panel-right {
    margin-left: 52%;
}

/* Corner Brackets */
.panel-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #00E5FF;
    border-style: solid;
    border-width: 0;
    z-index: 2;
}

.panel-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.panel-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.panel-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.panel-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.panel-content {
    padding: 24px;
}

.panel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 11px;
}

.panel-timestamp {
    color: #A0B8CC;
    letter-spacing: 0.08em;
}

.panel-tag {
    padding: 2px 8px;
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.tag-breaking {
    background: #FF2D55;
    color: #FFFFFF;
}

.tag-analysis {
    background: rgba(0, 229, 255, 0.2);
    color: #00E5FF;
    border: 1px solid rgba(0, 229, 255, 0.4);
}

.tag-tech {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    border: 1px solid rgba(255, 107, 53, 0.4);
}

.panel-headline {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #E0F0FF;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 12px;
}

.panel-body {
    font-size: 14px;
    color: #A0B8CC;
    line-height: 1.65;
    margin-bottom: 16px;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #A0B8CC;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}

/* Confidence Meter */
.confidence-meter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confidence-bar {
    display: inline-block;
    width: 60px;
    height: 4px;
    background: rgba(0, 229, 255, 0.15);
    position: relative;
}

.confidence-fill {
    display: block;
    height: 100%;
    background: #00E5FF;
}

.source-count {
    color: #00E5FF;
}

/* Panel hover glow */
.news-panel {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-panel:hover {
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(0, 229, 255, 0.03);
}

.news-panel:hover .panel-corner {
    border-color: #00E5FF;
}

/* Fade Reveal */
.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* HUD Footer */
.hud-footer {
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    padding: 32px 24px 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 24px;
}

.footer-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-label {
    font-size: 10px;
    color: #A0B8CC;
    letter-spacing: 0.12em;
    opacity: 0.6;
}

.footer-value {
    font-size: 14px;
    color: #00E5FF;
}

.footer-domain {
    font-size: 11px;
    color: rgba(160, 184, 204, 0.4);
    letter-spacing: 0.1em;
}

/* Ticker Bar */
.ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111827;
    border-top: 1px solid rgba(0, 229, 255, 0.3);
    padding: 6px 0;
    overflow: hidden;
    z-index: 1000;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 25s linear infinite;
}

.ticker-text {
    font-size: 12px;
    color: #00E5FF;
    letter-spacing: 0.06em;
    padding: 0 40px;
}

@keyframes tickerScroll {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 36px;
    }

    .news-panel {
        width: 90%;
        margin-left: 5% !important;
    }

    .timeline-spine {
        left: 5%;
    }

    .panel-headline {
        font-size: 18px;
    }

    .opening-status {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .reticle {
        width: 200px;
        height: 200px;
    }
}
