/* ==========================================================================
   ZALET MOTORSPORT // TELEMETRY & HIGH-TECH ACCENTS
   HUD gauges, telemetry dials, mobile drawer, interactive widgets
   ========================================================================== */

/* Mobile Fullscreen Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-100%);
  transition: transform var(--transition-spring);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-item a:hover,
.mobile-nav-item a:active {
  background-color: var(--bg-surface);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.mobile-nav-item a span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
}

.mobile-nav-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Telemetry HUD Dashboard Widget on Hero */
.telemetry-dashboard-card {
  margin-top: 24px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
}

.telemetry-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-gray-light);
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 8px;
}

.telemetry-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-green-telemetry);
  font-weight: 700;
}

.telemetry-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  font-size: 0.68rem;
}

.telemetry-cell {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-cell-lbl {
  color: var(--text-gray-muted);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.telemetry-cell-val {
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.82rem;
}

/* Interactive Size Calculator in Size Guide Modal */
.size-calculator-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 24px;
  margin-bottom: 28px;
}

.calc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.calc-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.calc-slider {
  width: 100%;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

.calc-result-badge {
  background-color: var(--accent-orange-subtle);
  border: 1px solid var(--accent-orange);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.calc-recommended-size {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-orange);
}

/* Quick Notification Bar */
.paddock-alert {
  background: var(--accent-orange);
  color: #0A0A0A;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 6px;
  letter-spacing: 0.05em;
}

/* Sound Wave Animation for Audio Toggle */
.sound-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.sound-bar {
  width: 2px;
  background-color: var(--text-gray-muted);
  height: 3px;
  transition: all 0.2s ease;
}

.sound-on .sound-bar {
  background-color: var(--accent-orange);
  animation: equalize 0.5s ease-in-out infinite alternate;
  box-shadow: 0 0 8px var(--accent-orange);
}

.sound-on .sound-bar:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.sound-on .sound-bar:nth-child(2) { height: 10px; animation-delay: 0.25s; }
.sound-on .sound-bar:nth-child(3) { height: 6px; animation-delay: 0.15s; }

@keyframes equalize {
  0% { height: 3px; }
  100% { height: 10px; }
}

/* ==========================================================================
   FORMULA 1 TEAM RADIO HUD GRAPHIC & TOAST
   ========================================================================== */
.toast-f1-radio {
  background: rgba(10, 10, 10, 0.96) !important;
  border: 1px solid var(--accent-orange) !important;
  border-left: 5px solid var(--accent-orange) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 85, 31, 0.35) !important;
  padding: 12px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 310px;
  position: relative;
  overflow: hidden;
}

.toast-f1-radio::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 31, 0.05));
  pointer-events: none;
}

.f1-radio-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  flex-wrap: wrap;
}

.f1-radio-badge {
  background-color: var(--accent-orange);
  color: #0A0A0A;
  font-weight: 900;
  padding: 2px 6px;
  letter-spacing: 0.12em;
  font-family: var(--font-display);
  font-size: 0.62rem;
}

.f1-driver-tag {
  color: #FFFFFF;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-left: 2px solid var(--accent-orange);
}

.f1-team-tag {
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.f1-live-dot {
  width: 6px;
  height: 6px;
  background-color: #FF2A2A;
  border-radius: 50%;
  animation: blink 0.8s infinite;
  box-shadow: 0 0 8px #FF2A2A;
}

.f1-channel {
  color: var(--text-gray-light);
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  margin-left: auto;
}

.f1-radio-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.f1-radio-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}

.f1-radio-waves span {
  width: 2px;
  background-color: var(--accent-orange);
  animation: equalize 0.5s ease-in-out infinite alternate;
}
.f1-radio-waves span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.f1-radio-waves span:nth-child(2) { height: 14px; animation-delay: 0.25s; }
.f1-radio-waves span:nth-child(3) { height: 9px; animation-delay: 0.15s; }
.f1-radio-waves span:nth-child(4) { height: 12px; animation-delay: 0.3s; }

.f1-radio-quote {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* Instagram Order Copy Success Animation */
.copy-btn-success {
  background-color: var(--accent-green-telemetry) !important;
  color: #0A0A0A !important;
}

/* Loading Pulse Indicator */
.loading-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Slider Track Touch Enhancement */
.calc-slider {
  width: 100%;
  accent-color: var(--accent-orange);
  cursor: pointer;
  height: 28px;
}

/* Responsive adjustment for Telemetry Widget and Mobile F1 Toast */
@media (max-width: 600px) {
  .telemetry-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-inputs-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 12px !important;
    right: 12px !important;
    bottom: 14px !important;
    align-items: stretch !important;
  }

  .toast-f1-radio {
    min-width: 0 !important;
    width: 100% !important;
    padding: 10px 14px !important;
  }

  .f1-radio-quote {
    font-size: 0.78rem !important;
  }

  .f1-driver-tag {
    font-size: 0.65rem !important;
  }
}
