/* ==========================================================================
   Ankora Interactive Tour Theme (Driver.js)
   ========================================================================== */

.driver-overlay {
  background-color: transparent !important;
}

.driver-popover {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  padding: 20px !important;
  max-width: 360px !important;
  font-family: inherit !important;
  z-index: 1000000000 !important;
}

html.dark .driver-popover {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

.driver-popover-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.01em !important;
}

html.dark .driver-popover-title {
  color: #ffffff !important;
}

.driver-popover-description {
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  margin-bottom: 16px !important;
}

html.dark .driver-popover-description {
  color: #cbd5e1 !important;
}

/* slate-500: 4.76:1 on the white popover (WCAG AA); dark mode keeps slate-400 (6.96:1 on slate-900) */
.driver-popover-close-btn {
  color: #64748b !important;
  font-size: 20px !important;
  top: 12px !important;
  right: 12px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

html.dark .driver-popover-close-btn {
  color: #94a3b8 !important;
}

.driver-popover-close-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.dark .driver-popover-close-btn:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

.driver-popover-footer {
  margin-top: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 12px !important;
}

html.dark .driver-popover-footer {
  border-top-color: #1e293b !important;
}

.driver-popover-progress-text {
  font-size: 11px !important;
  font-weight: 700 !important;
  /* amber-700: 5.02:1 on white (WCAG AA) */
  color: #b45309 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

html.dark .driver-popover-progress-text {
  color: #fbbf24 !important;
}

.driver-popover-footer-btn {
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.driver-popover-prev-btn {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.driver-popover-prev-btn:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.dark .driver-popover-prev-btn {
  background-color: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}

html.dark .driver-popover-prev-btn:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}

.driver-popover-next-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #0f172a !important;
  border: 1px solid #f59e0b !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
}

.driver-popover-next-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #020617 !important;
}

/* Keyboard focus ring: driver.css resets button outlines to 0.
   amber-700 is 5.02:1 on white; amber-400 is 10.69:1 on slate-900. */
.driver-popover-footer-btn:focus-visible,
.driver-popover-close-btn:focus-visible {
  outline: 2px solid #b45309 !important;
  outline-offset: 2px !important;
}

html.dark .driver-popover-footer-btn:focus-visible,
html.dark .driver-popover-close-btn:focus-visible {
  outline-color: #fbbf24 !important;
}

/* Arrow styling */
.driver-popover-arrow-side-left { border-right-color: #ffffff !important; }
.driver-popover-arrow-side-right { border-left-color: #ffffff !important; }
.driver-popover-arrow-side-top { border-bottom-color: #ffffff !important; }
.driver-popover-arrow-side-bottom { border-top-color: #ffffff !important; }

html.dark .driver-popover-arrow-side-left { border-right-color: #0f172a !important; }
html.dark .driver-popover-arrow-side-right { border-left-color: #0f172a !important; }
html.dark .driver-popover-arrow-side-top { border-bottom-color: #0f172a !important; }
html.dark .driver-popover-arrow-side-bottom { border-top-color: #0f172a !important; }

/* Highlight active element outline - Ankora Gold */
.driver-active-element {
  outline: 3px solid #f59e0b !important;
  outline-offset: 4px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4) !important;
  transition: outline 0.2s ease, box-shadow 0.2s ease !important;
}

@media (max-width: 640px) {
  .driver-popover {
    max-width: calc(100vw - 24px) !important;
    min-width: calc(100vw - 24px) !important;
    left: 12px !important;
    right: 12px !important;
    box-sizing: border-box !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .driver-popover-arrow {
    display: none !important;
  }

  .driver-popover-title {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  .driver-popover-description {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }

  .driver-popover-footer {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }
}

