/* =================================================================
   DEEP SPACE MISSION CONTROL - STRICT REACT MATCH
   css/components.css
   ================================================================= */

/* Typography Utilities */
.font-header { font-family: 'Exo 2', sans-serif; }
.font-body { font-family: 'Exo 2', sans-serif; }
.font-data { font-family: 'Azeret Mono', monospace; }

/* =================================================================
   CONSOLE CARD - Primary Container Component
   ================================================================= */
.console-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 48, 255, 0.3); /* Purple Border Primary */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

/* Scanline Texture */
.console-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(155, 48, 255, 0) 50%, rgba(0,0,0,0.2) 50%); 
    background-size: 100% 4px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above texture */
.console-card > * {
    position: relative;
    z-index: 1;
}

/* =================================================================
   HOLOGRAPHIC GRID UTILITY
   ================================================================= */
.bg-grid-pattern {
    background-image: linear-gradient(#9B30FF 1px, transparent 1px), 
                      linear-gradient(90deg, #9B30FF 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

/* =================================================================
   GLOW EFFECTS
   ================================================================= */
/* PRIMARY GLOW (Purple) */
.glow-primary { 
    text-shadow: 0 0 30px rgba(155, 48, 255, 0.8); 
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure headings with glow-primary don't look like buttons */
h1.glow-primary,
h2.glow-primary,
h3.glow-primary {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: default !important;
}

h1.glow-primary:focus,
h2.glow-primary:focus,
h3.glow-primary:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.border-glow-primary { 
    box-shadow: 0 0 20px rgba(155, 48, 255, 0.2); 
    border-color: #9B30FF; 
}
.shadow-glow-primary {
    box-shadow: 0 0 25px rgba(155, 48, 255, 0.5);
}

/* Secondary Functional Glows */
.glow-orange { 
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.6); 
}
.shadow-glow-orange {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.glow-cyan {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}
.shadow-glow-cyan {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* =================================================================
   BUTTON LOGIC
   ================================================================= */
.thruster-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(155, 48, 255, 0.2); /* Subtle Purple tint */
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    color: #E2E8F0;
    border-radius: 6px; /* Subtle rounding to match design system */
    padding: 0.75rem 1.25rem; /* Adequate spacing between border and content */
}
.thruster-btn:active { 
    transform: scale(0.98); 
}

/* Mode States */
.thruster-btn.active-orange,
.thruster-btn--accent {
    background: rgba(249, 115, 22, 0.15);
    border-color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
    color: white;
}

.thruster-btn.active-purple,
.thruster-btn--primary {
    background: rgba(155, 48, 255, 0.25);
    border-color: #9B30FF;
    box-shadow: 0 0 25px rgba(155, 48, 255, 0.5);
    color: white;
}

/* Success State (Green/Emerald) */
.thruster-btn--success {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    color: white;
}
.thruster-btn--success:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

/* Signal State (Cyan - moon-signal-success) */
.thruster-btn--signal {
    background: rgba(6, 182, 212, 0.15);
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    color: white;
}
.thruster-btn--signal:hover {
    background: rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.thruster-btn--critical {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    color: white;
}

.thruster-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}
.thruster-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes pulse-signal {
    0% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(155, 48, 255, 0.4); }
    70% { opacity: 1; box-shadow: 0 0 0 6px rgba(155, 48, 255, 0); }
    100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(155, 48, 255, 0); }
}
.signal-pulse { animation: pulse-signal 2s infinite; }

/* =================================================================
   INPUTS (Adapted to match Console Theme)
   ================================================================= */
.thruster-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #E2E8F0;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.875rem;
    transition: all 0.25s ease;
}
.thruster-input:focus {
    outline: none;
    background: rgba(155, 48, 255, 0.08);
    border-color: #9B30FF;
    box-shadow: 0 0 20px rgba(155, 48, 255, 0.15);
}

.thruster-select {
    width: 100%;
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #E2E8F0;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.thruster-select:focus {
    outline: none;
    background: rgba(155, 48, 255, 0.08);
    border-color: #9B30FF;
    box-shadow: 0 0 20px rgba(155, 48, 255, 0.15);
}
.thruster-select option {
    background: #0a0a0a;
    color: #E2E8F0;
}

/* =================================================================
   UTILITIES
   ================================================================= */
.label-text {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9B30FF; /* Updated to Purple based on Design */
    opacity: 0.7;
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(155, 48, 255, 0.3); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(155, 48, 255, 0.5); }
