/* Andrew Van Ek Portfolio | 3D Planetary Radar & Global Internet Backbone Stylesheet */
@import url("knowledge-map.css");

#globe-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#globe-container canvas {
    display: block !important;
    margin: 0 auto;
}

/* Stack Layer Filter Pills vertically on Desktop on the upper left */
.hud-filter-bar {
    top: 62px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 220px;
    z-index: 15;
}

.filter-pill {
    width: auto;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Top HUD Bar */
.hud-top-bar {
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Custom Globe-specific HUD & Drawer styling */
.globe-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ground-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(30, 41, 59, 0.85);
    color: #f1f5f9;
}

.ground-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.ground-btn-street {
    border-color: rgba(245, 158, 11, 0.4);
}

.ground-btn-street:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.ground-btn-mapillary {
    border-color: rgba(16, 185, 129, 0.4);
}

.ground-btn-mapillary:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.drawer-coords-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: monospace;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    margin-top: 6px;
}

.drawer-ping-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.cable-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.cable-spec-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 10px;
}

.cable-spec-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.cable-spec-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f8fafc;
}

/* Tech Term Analogy Styling for Globe Dark HUD & Telemetry Drawer */
.map-page-body .tech-term,
.hud-drawer .tech-term,
.hud-legend .tech-term {
    display: inline-block;
    position: relative;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: none;
    border-bottom: 2px dotted #38bdf8;
    padding: 1px 6px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    cursor: help;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.map-page-body .tech-term:hover,
.hud-drawer .tech-term:hover,
.hud-legend .tech-term:hover,
.map-page-body .tech-term:focus-visible,
.hud-drawer .tech-term:focus-visible,
.hud-legend .tech-term:focus-visible {
    background: rgba(56, 189, 248, 0.28);
    color: #f0f9ff;
    border-bottom-style: solid;
    outline: none;
}

.drawer-tech-tags .drawer-tech-tag.tech-term {
    cursor: help;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-bottom: 2px dotted #38bdf8;
    color: #bae6fd;
    transition: all 0.18s ease;
}

.drawer-tech-tags .drawer-tech-tag.tech-term:hover,
.drawer-tech-tags .drawer-tech-tag.tech-term:focus-visible {
    background: rgba(56, 189, 248, 0.28);
    border-color: #38bdf8;
    border-bottom-style: solid;
    color: #ffffff;
}
/* Telemetry Drawer Theme Shield: the drawer is a dark navy HUD panel in every theme.
   Seasonal themes recolor headings, links and tech terms for the site's light pages with
   !important rules; without this shield they leak into the drawer (dark-green title on navy,
   green link text on the drawer's blue footer bar, green tech terms). Pin the drawer's own
   palette with ID-level specificity so no seasonal theme can override it. */
#telemetry-drawer .drawer-title { color: #f8fafc !important; }
#telemetry-drawer .drawer-section-title { color: #cbd5e1 !important; }
#telemetry-drawer .tech-term { color: #38bdf8 !important; background: rgba(56, 189, 248, 0.12) !important; border-bottom: 2px dotted #38bdf8 !important; }
#telemetry-drawer .tech-term:hover, #telemetry-drawer .tech-term:focus-visible { background: rgba(56, 189, 248, 0.28) !important; color: #f0f9ff !important; border-bottom-style: solid !important; }
#telemetry-drawer .drawer-tech-tag.tech-term { color: #bae6fd !important; background: rgba(56, 189, 248, 0.12) !important; border-color: rgba(56, 189, 248, 0.35) !important; border-bottom: 2px dotted #38bdf8 !important; }
#telemetry-drawer .drawer-project-link { color: #ffffff !important; }
body.christmas-theme #telemetry-drawer .drawer-project-link { background: #15803d !important; }
body.christmas-theme #telemetry-drawer .drawer-project-link:hover { background: #166534 !important; }

.globe-controls .hud-filter-bar { flex-direction: row; max-width: 100%; }
.globe-map-caption { color: #dbe5ef; font-size: .8rem; line-height: 1.7; margin: 0; }
body .globe-map-caption a { color: #bae6fd!important; text-decoration: underline; }
.globe-explainer { margin: 30px 0; padding: 24px; background: #fff; border: 1px solid #d5e0eb; border-radius: 12px; color: #334155; }
body .globe-explainer :is(h2,h3) { color: #18334d!important; }
.globe-explainer > p { color: #475569; line-height: 1.7; }
.globe-explainer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 20px 0; }
.globe-explainer-grid article { min-width: 0; background: var(--s-tint,#f4f8fc); border: 1px solid #d5e0eb; border-top: 3px solid var(--s-primary,#155b97); border-radius: 8px; padding: 18px; }
.globe-explainer-grid h3 { font-size: 1.05rem; line-height: 1.5; }
.globe-explainer-grid p { color: #334155; font-size: .9rem; line-height: 1.7; }
.globe-explainer details { border-top: 1px solid #d5e0eb; padding-top: 14px; font-size: .9rem; line-height: 1.7; }
.globe-explainer summary { cursor: pointer; font-weight: 700; min-height: 40px; }
@media(max-width:900px){.globe-explainer-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.globe-explainer{padding:18px}}
