/* ==========================================================================
   FluidCluster 2.0 - Glassmorphic HUD & Cyber-UI Stylesheet
   Designed to elevate the 8 Interactive App Mockups with custom glowing indicators,
   neon accents, and high-fidelity, responsive CRT scanline dashboards.
   ========================================================================== */

:root {
    /* HUD Core Color Palette */
    --hud-bg: rgba(6, 10, 23, 0.65);
    --hud-border-cyan: rgba(0, 242, 254, 0.15);
    --hud-border-purple: rgba(168, 85, 247, 0.15);
    --hud-glow-cyan: 0 0 20px rgba(0, 242, 254, 0.25);
    --hud-glow-purple: 0 0 20px rgba(168, 85, 247, 0.25);
    
    /* Functional Status Alerts */
    --hud-ready: #10b981;
    --hud-warn: #fbbf24;
    --hud-alert: #ef4444;
    
    /* Fonts */
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
}

/* Glassmorphic frosted-panel layout cards */
.hud-panel {
    background: var(--hud-bg);
    border: 1px solid var(--hud-border-cyan);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hud-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.15) 0%, rgba(168, 85, 247, 0.15) 50%, transparent 100%);
    pointer-events: none;
}

/* Color thematic alternates */
.hud-panel-purple {
    border-color: var(--hud-border-purple);
}

.hud-panel-purple::before {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 100%);
}

.hud-panel:hover {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hud-panel-purple:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glowing Neon Elements */
.hud-glow-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.hud-glow-text-purple {
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Compact Cybermatic Terminals (with scanning lines and grids) */
.hud-terminal-frame {
    background: #03050c;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
}

.hud-terminal-frame::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 10;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}

/* CRT Screen scanning scroll line animation */
.hud-scanline {
    width: 100%;
    height: 4px;
    background: rgba(0, 242, 254, 0.08);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -4%; }
    100% { top: 104%; }
}

/* Dynamic Interactive Dials & Meters */
.hud-radial-meter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
}

.hud-progress-meter {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    height: 18px;
    width: 100%;
}

.hud-progress-fill-cyan {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: var(--hud-glow-cyan);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.hud-progress-fill-purple {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-indigo));
    box-shadow: var(--hud-glow-purple);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* HUD Interface Interactive Buttons */
.hud-btn {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid var(--hud-border-cyan);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hud-btn:hover:not(:disabled) {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: var(--hud-glow-cyan);
    transform: translateY(-1px);
}

.hud-btn:active:not(:disabled) {
    transform: translateY(0);
}

.hud-btn-purple {
    background: rgba(168, 85, 247, 0.05);
    border-color: var(--hud-border-purple);
}

.hud-btn-purple:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--accent-purple);
    box-shadow: var(--hud-glow-purple);
}

/* Status Badges */
.hud-status-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.hud-status-badge.ready {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--hud-ready);
}

.hud-status-badge.warn {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--hud-warn);
}

.hud-status-badge.alert {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--hud-alert);
}

/* Matrix scanning animations */
@keyframes pulse {
    0% { transform: scale(0.98); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.8; }
}

.hud-matrix-flash {
    animation: pulse 2s infinite alternate;
}
