/* Homepage Drive Mode Styles */
/* Minimal UI for chill page navigation */

/* ========== BODY WHEN DRIVE MODE ACTIVE ========== */
body.drive-mode-active {
  cursor: crosshair !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  overflow: hidden !important;
}

/* Prevent clicking interactive elements during drive mode */
body.drive-mode-active a[href]:not([data-site-nav] a):not(#homepage-drive-ui a) {
  pointer-events: none !important;
}

/* ========== CAR ========== */
#homepage-drive-car {
  position: fixed;
  width: 64px;
  height: 64px;
  background: url('/stuff/car.png') center/contain no-repeat;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
  will-change: transform;
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.3s ease;
}

/* ========== UI CONTAINER ========== */
#homepage-drive-ui {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  font-family: 'Comfortaa', 'Segoe UI', sans-serif;
}

#homepage-drive-ui button {
  pointer-events: all;
}

/* ========== INTERACT HINT ========== */
#drive-interact-hint {
  position: fixed;
  transform: translate(-50%, 0);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(240, 95, 64, 0.6);
  transition: opacity 0.2s ease;
  opacity: 1;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

#drive-interact-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ========== EXIT BUTTON ========== */
#drive-exit-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #F05F40;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 24px 44px;
  font: 700 2rem Comfortaa, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(240, 95, 64, 0.45);
  z-index: 99999;
  transition: background 0.15s ease, transform 0.15s ease;
}

#drive-exit-btn:hover {
  background: #c84b15;
  transform: translateY(-1px);
}

/* ========== ELEMENT HIGHLIGHTING ========== */
.drive-highlight {
  outline: 3px solid #f05f40 !important;
  outline-offset: 4px;
  box-shadow: 0 0 20px rgba(240, 95, 64, 0.5) !important;
  transform: scale(1.05);
  transition: all 0.2s ease;
  z-index: 999;
  position: relative;
}

.drive-near {
  outline-color: #ffe66d !important;
  box-shadow: 0 0 30px rgba(255, 230, 109, 0.6) !important;
  transform: scale(1.08);
}

/* ========== TOAST NOTIFICATIONS ========== */
.drive-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 100001;
  background: rgba(15, 15, 18, 0.95);
  color: #fff;
  padding: 18px 26px;
  border-radius: 16px;
  border: 2px solid #f05f40;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(240, 95, 64, 0.25);
  font-family: 'Comfortaa', sans-serif;
  text-align: center;
  min-width: 260px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.drive-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ========== FIX BUTTON-LINK OUTLINE ========== */
.button-link {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.button-link:focus,
.button-link:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.button-link img {
  outline: none !important;
  border: none !important;
  display: block;
}
