/* Dat.City - Cyber & Cinematic Styles */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;800&display=swap");

:root {
  --cyan-accent: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.45);
  --bg-glass: rgba(11, 18, 32, 0.82);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-drag: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #070b14;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Authentic Tilt-Shift Miniature Optical Blur */
.tilt-shift-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18vh;
  pointer-events: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

.tilt-shift-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18vh;
  pointer-events: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 45%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 16px 36px 0 rgba(0, 0, 0, 0.5);
}

.glass-pill {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Header UI */
.header-ui {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
  pointer-events: none;
}

.header-left, .header-right {
  pointer-events: auto;
}

/* Exact Logo Matching frame_001.jpg */
.brand-title {
  display: flex;
  align-items: center;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.8));
}

.brand-dat {
  color: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  text-shadow: 
    -1.5px -1.5px 0 #0f172a,
    1.5px -1.5px 0 #0f172a,
    -1.5px 1.5px 0 #0f172a,
    1.5px 1.5px 0 #0f172a,
    0 4px 0 #020617;
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a, #f59e0b 55%, #b45309);
  margin: 0 3px 2px 3px;
  box-shadow: 0 0 8px #f59e0b, 0 3px 0 #78350f;
}

.brand-city {
  color: #38bdf8;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  text-shadow: 
    -1.5px -1.5px 0 #0369a1,
    1.5px -1.5px 0 #0369a1,
    -1.5px 1.5px 0 #0369a1,
    1.5px 1.5px 0 #0369a1,
    0 4px 0 #075985;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #94a3b8;
  margin-top: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.btn-district {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-district:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-district-sq {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 2px;
}

/* Header Right: Search & Menu */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 42px;
  border-radius: 14px;
  width: 250px;
  transition: all 0.25s ease;
}

.search-box:focus-within {
  width: 320px;
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

.search-input::placeholder {
  color: #64748b;
}

/* Districts Dropdown */
#districts-dropdown {
  position: absolute;
  top: 100px;
  left: 28px;
  width: 290px;
  border-radius: 18px;
  padding: 10px;
  z-index: 20;
}

/* Search Results Dropdown */
#search-results {
  position: absolute;
  top: 74px;
  right: 28px;
  width: 330px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 18px;
  z-index: 20;
}

/* Bottom Left: Audio Widget */
.audio-widget {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  cursor: pointer;
  padding: 7px 16px 7px 12px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.audio-widget:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.eq-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding-bottom: 2px;
}

.eq-bar {
  width: 3px;
  height: 8px;
  background: linear-gradient(to top, #06b6d4, #10b981);
  border-radius: 2px;
  transition: height 0.08s ease;
}

.audio-meta {
  display: flex;
  flex-direction: column;
}

.audio-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #2dd4bf;
}

.audio-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* Bottom Center: Floating Dock */
.dock-container {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 36px;
  z-index: 10;
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.dock-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  position: relative;
}

.dock-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.dock-btn.active {
  color: #00f0ff;
}

.dock-btn.active::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  pointer-events: none;
}

/* Time Dial Circle Button */
.time-dial-btn {
  position: relative;
  overflow: visible;
}

.time-dial-svg {
  width: 34px;
  height: 34px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* HUD Tooltip */
#hud-tooltip {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  transform: translate(0, 0);
  white-space: nowrap;
}

/* Modals */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  width: 440px;
  max-width: 90vw;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Vehicle HUD */
#car-hud {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 20px;
}

.car-speed-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 38px;
  font-weight: 800;
  color: #00f0ff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
  line-height: 1;
}

.car-speed-unit {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #94a3b8;
}

.car-hint {
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 12px;
  border-radius: 8px;
}

.hidden {
  display: none !important;
}