/* ==========================================================================
 * CesiumTimeline widget — canvas arc styles
 * ========================================================================== */

.cesium-timeline-widget {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), right 0.25s ease;
  pointer-events: none;
  height: 180px;
  overflow: hidden;
}

.cesium-timeline-widget.open {
  transform: translateY(0);
  pointer-events: auto;
}

.cesium-timeline-widget.minimized .ctw-canvas,
.cesium-timeline-widget.minimized .ctw-big-date,
.cesium-timeline-widget.minimized .ctw-bottom-haze {
  display: none;
}

.cesium-timeline-widget.minimized {
  height: auto;
}

/* ---------- Date label (centered, above mode bar) ---------- */

.ctw-big-date {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 8px rgba(0,0,0,.8), 0 1px 3px rgba(0,0,0,.6);
  transition: color 0.4s, text-shadow 0.4s;
}

/* ---------- Canvas ---------- */

.ctw-canvas {
  flex: 1;
  width: 100%;
  min-height: 0;
  cursor: grab;
}

.ctw-canvas:active {
  cursor: grabbing;
}

/* ---------- Bottom haze / adaptive gradient shadow ---------- */

.ctw-bottom-haze {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
  transition: background 0.7s ease;
}

/* ---------- Mode switcher ---------- */

.ctw-mode-bar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  z-index: 4;
  border-radius: 6px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.15);
}

.ctw-mode-btn {
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(210, 215, 225, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.ctw-mode-btn:hover {
  background: rgba(255,255,255,0.18);
  color: rgba(230, 235, 245, 0.9);
}

.ctw-mode-btn.active {
  background: rgba(80, 180, 220, 0.35);
  color: #fff;
  text-shadow: 0 1px 6px rgba(60,170,220,0.5);
}
