/* ═══════════════════════════════════════════════
   CYBERSPEED — Gauge Styles
   SVG speedometer gauge + digital display
   ═══════════════════════════════════════════════ */

/* ── Speedo Panel ── */
.speedo-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--sp-md);
    min-width: 0;
}

/* ── Gauge Container ── */
.gauge-container {
    position: relative;
    width: var(--gauge-size);
    height: var(--gauge-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(var(--neon-cyan-rgb), 0.1));
}

/* ── SVG Gauge Elements ── */
.gauge-ring-outer {
    fill: none;
    stroke: rgba(var(--neon-cyan-rgb), 0.06);
    stroke-width: 1;
}

.gauge-ring-inner {
    fill: none;
    stroke: rgba(var(--neon-cyan-rgb), 0.04);
    stroke-width: 0.5;
}

.gauge-ticks line.tick-major {
    stroke: rgba(var(--neon-cyan-rgb), 0.6);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.gauge-ticks line.tick-minor {
    stroke: rgba(var(--neon-cyan-rgb), 0.2);
    stroke-width: 1;
    stroke-linecap: round;
}

.gauge-ticks line.tick-danger {
    stroke: rgba(var(--neon-red-rgb), 0.6);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.gauge-labels text {
    fill: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
}

.gauge-labels text.label-danger {
    fill: var(--neon-red);
}

.gauge-bg-arc {
    fill: none;
    stroke: rgba(var(--neon-cyan-rgb), 0.06);
    stroke-width: 18;
    stroke-linecap: round;
}

.gauge-speed-arc {
    fill: none;
    stroke: url(#speed-gradient);
    stroke-width: 18;
    stroke-linecap: round;
    transition: d 0.25s ease-out;
}

/* ── Needle ── */
.gauge-needle {
    transform-origin: 200px 200px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.needle-line {
    stroke: url(#needle-gradient);
    stroke-width: 3;
    stroke-linecap: round;
}

.needle-center {
    fill: var(--bg-primary);
    stroke: var(--neon-cyan);
    stroke-width: 2;
}

.needle-dot {
    fill: var(--neon-cyan);
    filter: url(#neon-glow);
}

/* ── Digital Speed Display ── */
.digital-speed {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.speed-value-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.speed-value {
    font-family: var(--font-display);
    font-size: var(--fs-speed);
    font-weight: 900;
    color: var(--text-primary);
    text-shadow:
        0 0 20px rgba(var(--neon-cyan-rgb), 0.5),
        0 0 40px rgba(var(--neon-cyan-rgb), 0.2);
    line-height: 1;
    letter-spacing: -2px;
    transition: color var(--transition-medium);
}

.speed-value.speed-high {
    color: var(--neon-orange);
    text-shadow:
        0 0 20px rgba(var(--neon-orange-rgb), 0.5),
        0 0 40px rgba(var(--neon-orange-rgb), 0.2);
}

.speed-value.speed-danger {
    color: var(--neon-red);
    text-shadow:
        0 0 20px rgba(var(--neon-red-rgb), 0.6),
        0 0 40px rgba(var(--neon-red-rgb), 0.3);
    animation: pulse-text 0.5s ease infinite alternate;
}

.speed-decimal {
    font-family: var(--font-display);
    font-size: var(--fs-speed-decimal);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
}

.speed-unit {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ── Compass ── */
.compass {
    position: absolute;
    bottom: var(--sp-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
}

.compass-arrow {
    color: var(--neon-red);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.compass-dir {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    min-width: 24px;
    text-align: center;
}

.compass-bearing {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}