/* ═══════════════════════════════════════════════════════════════ */
/* LIVING ORGANOID HUD - Premium Biotech Visualization             */
/* ═══════════════════════════════════════════════════════════════ */

#living-organoid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    /* Debug: red border to verify container visibility */
    /* border: 3px solid red; */
}

#living-organoid-container canvas {
    pointer-events: auto;
}

.organoid-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    z-index: 10;
}

.organoid-hud-top-left,
.organoid-hud-top-right,
.organoid-hud-bottom-left,
.organoid-hud-bottom-right {
    position: absolute;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 8, 20, 0.85) 0%, rgba(0, 20, 40, 0.75) 100%);
    border: 1px solid rgba(0, 212, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.organoid-hud-top-left {
    top: 20px;
    left: 20px;
    border-radius: 0 0 12px 0;
    border-left: 3px solid rgba(0, 212, 255, 0.6);
}

.organoid-hud-top-right {
    top: 20px;
    right: 20px;
    border-radius: 0 0 0 12px;
    border-right: 3px solid rgba(0, 255, 136, 0.6);
    text-align: right;
}

.organoid-hud-bottom-left {
    bottom: 20px;
    left: 20px;
    border-radius: 0 12px 0 0;
    border-left: 3px solid rgba(255, 195, 0, 0.6);
    min-width: 220px;
}

.organoid-hud-bottom-right {
    bottom: 20px;
    right: 20px;
    border-radius: 12px 0 0 0;
    border-right: 3px solid rgba(247, 37, 133, 0.6);
    text-align: right;
}

.organoid-hud-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(0, 212, 255, 0.7);
    margin-bottom: 5px;
}

.organoid-hud-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.organoid-hud-meta {
    font-size: 12px;
    color: rgba(224, 242, 254, 0.6);
    margin-top: 4px;
}

.organoid-hud-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #00ff88;
    letter-spacing: 2px;
}

.organoid-status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.organoid-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.organoid-metric:last-child {
    margin-bottom: 0;
}

.organoid-metric-label {
    font-size: 11px;
    color: rgba(224, 242, 254, 0.6);
    width: 85px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organoid-metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.organoid-metric-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease-out;
}

.organoid-metric-fill.consciousness-bar {
    background: linear-gradient(90deg, #00d4ff, #7dd3fc);
}

.organoid-metric-fill.activity-bar {
    background: linear-gradient(90deg, #ffc300, #ff9f43);
}

.organoid-metric-fill.growth-bar {
    background: linear-gradient(90deg, #00ff88, #1dd1a1);
}

.organoid-metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #00d4ff;
    width: 48px;
    text-align: right;
}

.organoid-hud-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(247, 37, 133, 0.9);
    letter-spacing: 1px;
    margin-top: 5px;
}

.organoid-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    pointer-events: none;
}

.organoid-corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.organoid-corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.organoid-corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.organoid-corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Hero organoid background image */
.hero-organoid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/organoids/organoid1.png') center center / cover no-repeat;
    opacity: 0.15;
    z-index: 0;
    filter: blur(2px) saturate(1.3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .organoid-hud-top-left,
    .organoid-hud-top-right,
    .organoid-hud-bottom-left,
    .organoid-hud-bottom-right {
        padding: 12px 15px;
    }

    .organoid-hud-title { font-size: 13px; }
    .organoid-metric-label { width: 60px; font-size: 9px; }
    .organoid-hud-bottom-left { min-width: 180px; }

    .organoid-corner { display: none; }
}
