/* Globe Section - Redesigned to Match Reference */

.globe-section {
    position: relative;
    background: #000000;
    /* Pure glossy black */
    padding: 4rem 0 2rem;
    min-height: 100vh;
}

.globe-section h1 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.globe-section h1 .red-accent {
    color: var(--accent-red);
}

.globe-section .subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

/* Main Globe Container */
.globe-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.globe-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* Globe Canvas */
#globe-canvas-container {
    width: 100%;
    height: 600px;
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.03) 0%, transparent 60%);
    border-radius: 12px;
    position: relative;
    overflow: visible;
}

/* Live Threat Feed - Right Side */
.live-threat-feed {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 60, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.live-threat-feed h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 60, 0, 0.2);
}

.threat-feed-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.threat-feed-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 60, 0, 0.15);
    animation: threatSlideIn 0.4s ease;
}

@keyframes threatSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.threat-feed-item .time {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.threat-feed-item .threat-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff3c00;
    margin-bottom: 0.5rem;
}

.threat-feed-item .route {
    font-size: 0.85rem;
    color: #999;
}

.threat-feed-item .route .arrow {
    color: #ff3c00;
    margin: 0 0.5rem;
}

/* Scrollbar */
.threat-feed-list::-webkit-scrollbar {
    width: 4px;
}

.threat-feed-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.threat-feed-list::-webkit-scrollbar-thumb {
    background: rgba(255, 60, 0, 0.5);
    border-radius: 2px;
}

/* Target Breach Cards - Below Globe */
.breach-targets {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* --- SINGLE CINEMATIC INTELLIGENCE SURFACE (NEON ARMORED MODE) --- */
.intelligence-surface-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    margin-top: 4rem;
    perspective: 2000px;
}

.intelligence-surface {
    /* The Neon Armored Monolith */
    width: 100%;
    max-width: 900px;

    /* Void-Black Armored Glass - NO Haze */
    background: #030303;
    /* Fallback */
    background: linear-gradient(180deg,
            rgba(6, 8, 12, 0.96) 0%,
            rgba(0, 0, 0, 0.98) 100%);

    /* Minimal refraction, mostly opaque */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 16px;
    /* Tactical radius */

    /* Precise Edge-Only Lighting */
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow:
        0 50px 100px -10px black,
        /* Deep void creation */
        0 0 0 1px rgba(0, 0, 0, 1.0);
    /* Inner black stroke to cut overlap */

    padding: 3.5rem;
    position: relative;
    overflow: hidden;

    /* Reveal State */
    opacity: 0;
    transform: translateY(100px) scale(0.98);
    transition:
        transform 1.2s cubic-bezier(0.1, 0.9, 0.2, 1),
        opacity 1s ease;
}

/* Internal Grid Removed for Polished Surface */
.intelligence-surface::after {
    display: none;
}

.intelligence-surface.active {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
}

/* Surface Header */
.surface-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    /* Cyan divider */
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.header-led {
    width: 6px;
    height: 6px;
    background: #ff3b3b;
    /* Red Signal */
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.8);
    animation: ledPulse 4s infinite ease-in-out;
}

@keyframes ledPulse {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(255, 59, 59, 0.5);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 59, 59, 0.9);
    }
}

.surface-header h2 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #ffffff;
    /* Pure white for contrast */
    letter-spacing: 0.25em;
    font-weight: 500;
    margin: 0;
    flex-grow: 1;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    /* Stronger neon glow */
}

.classification-badge {
    font-size: 0.65rem;
    color: #00f0ff;
    border: 1px solid #00f0ff;
    /* Hard neon border */
    background: rgba(0, 10, 20, 0.8);
    /* Darker background */
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    /* Engineering sharp */
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* Intel Rows */
/* Intel Rows */
/* Intel Rows - Static Global Breach List */
/* Intel Rows - Static Global Breach List (Dense Mode) */
.intel-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 0;
    /* Significantly reduced padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.intel-row:last-child {
    border-bottom: none;
}

.intel-id {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: #ff3b3b;
    margin-bottom: 0.2rem;
    opacity: 0.8;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.4);
}

.intel-data {
    width: 100%;
}

.intel-data h3 {
    font-family: var(--font-body);
    color: #ffffff;
    font-size: 1.1rem;
    /* Smaller header */
    margin: 0 0 0.2rem 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.intel-data p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    /* Compact details */
    margin: 0;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Status Indicators - Restrained Precision */
.intel-status {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.3rem 0.9rem;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid currentColor;
    text-shadow: 0 0 5px currentColor;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.intel-status.critical {
    color: #ff3b3b;
    border-color: #ff3b3b;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.4);
}

.intel-status.high {
    color: #ffaa33;
    border-color: #ffaa33;
}

.intel-status.medium {
    color: #00f0ff;
    border-color: #00f0ff;
}

/* Footer */
.surface-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #4db8cc;
    /* Brighter teal for readability against black */
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    border-top: 1px solid rgba(0, 240, 255, 0.25);
    /* Neon separator */
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

/* Cleanup */
.breach-card,
.sheen {
    display: none;
}

/* Global Status - Bottom Left */
.global-status-panel {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 60, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 250px;
    z-index: 100;
}

.global-status-panel h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #ff3c00;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 60, 0, 0.15);
    font-size: 0.9rem;
}

.status-row:last-child {
    border-bottom: none;
}

.status-row .label {
    color: #999;
}

.status-row .value {
    color: #ff3c00;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Control Buttons - Bottom Right */
.globe-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.control-btn {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 60, 0, 0.5);
    color: #ff3c00;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-btn:hover {
    background: rgba(255, 60, 0, 0.1);
    border-color: #ff3c00;
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.3);
}

.control-btn.active {
    background: rgba(255, 60, 0, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .globe-wrapper {
        grid-template-columns: 1fr;
    }

    .live-threat-feed {
        height: 400px;
        margin-top: 2rem;
    }

    .global-status-panel,
    .globe-controls {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 2rem auto;
        max-width: 400px;
    }

    .globe-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .globe-section h1 {
        font-size: 2.5rem;
    }

    #globe-canvas-container {
        height: 400px;
    }

    .breach-targets {
        grid-template-columns: 1fr;
    }
}

/* === NVD DASHBOARD OVERLAY === */

.nvd-dashboard {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 320px;
    background: rgba(5, 5, 8, 0.85);
    /* Deep dark glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1.5rem;
    color: #fff;
    font-family: var(--font-body, sans-serif);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nvd-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nvd-header h3 {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    color: #ff3b3b;
    /* Decline Red */
}

.live-status {
    font-size: 0.6rem;
    background: rgba(255, 59, 59, 0.2);
    color: #ff3b3b;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 700;
    animation: pulseRed 2s infinite;
}

.nvd-stat-box {
    margin-bottom: 1.5rem;
}

.nvd-stat-box h4 {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.8rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: #ccc;
}

.stat-val.mono {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.text-red {
    color: #ff3b3b;
}

.text-orange {
    color: #ffaa00;
}

/* Bar Charts */
.sev-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.sev-label {
    width: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.bar-track {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
}

.bar-fill.critical {
    background: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}

.bar-fill.high {
    background: #ff6600;
}

.bar-fill.medium {
    background: #ffaa00;
}

.bar-fill.low {
    background: #0088ff;
}

.sev-val {
    width: 30px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Mini Stats */
.mini-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.mini-stat-item {
    display: flex;
    flex-direction: column;
}

.mini-stat-item .label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
}

.mini-stat-item .value {
    font-size: 0.9rem;
    font-weight: 700;
}

@keyframes pulseRed {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive Hide */
@media (max-width: 900px) {
    .nvd-dashboard {
        display: none;
    }
}