/* ============================================================
   App-Guide Overlay-System (analog Mac-App Phase 18)
   Pillförmige Bubble + Spotlight + Bouncing Arrow
   ============================================================ */

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: auto;
}

.guide-overlay.hidden { display: none; }

.guide-dim {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
}

.guide-spotlight-border {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4),
              0 0 24px rgba(212, 175, 55, 0.5);
  pointer-events: none;
  animation: spotlight-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes spotlight-pulse {
  from { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3),
                     0 0 16px rgba(212, 175, 55, 0.4); }
  to   { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.55),
                     0 0 32px rgba(212, 175, 55, 0.7); }
}

.guide-arrow {
  position: absolute;
  font-size: 38px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
  animation: arrow-bounce 1s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes arrow-bounce {
  from { transform: translate(0, 0); }
  to   { transform: translate(0, -10px); }
}

.guide-arrow.from-bottom { transform-origin: bottom center; }
.guide-arrow.from-top { transform-origin: top center; transform: rotate(180deg); }
.guide-arrow.from-leading { transform: rotate(90deg); }
.guide-arrow.from-trailing { transform: rotate(-90deg); }

.guide-bubble {
  position: absolute;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: rgba(35, 35, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5),
              0 0 32px rgba(212, 175, 55, 0.25);
  pointer-events: auto;
  animation: bubble-glow 1.6s ease-in-out infinite alternate;
}

@keyframes bubble-glow {
  from { box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5),
                     0 0 24px rgba(212, 175, 55, 0.22); }
  to   { box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5),
                     0 0 40px rgba(212, 175, 55, 0.45); }
}

.guide-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.guide-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-bubble-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.guide-bubble-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

.guide-bubble-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.guide-bubble-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.guide-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-progress {
  display: flex;
  gap: 5px;
}

.guide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.guide-dot.active { background: var(--accent); }

.guide-actions {
  display: flex;
  gap: 8px;
}

.guide-btn-back, .guide-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.guide-btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.guide-btn-back:hover { background: rgba(255, 255, 255, 0.15); }

.guide-btn-next {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.guide-btn-next:hover { background: var(--accent-dim); }

/* Guide-List Popover (beim Klick auf (i)-Icon) */
.guide-list {
  position: absolute;
  top: calc(var(--topbar-h) + 8px);
  right: 24px;
  width: 320px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 110;
}

.guide-list-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-list-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.guide-list-item:hover { background: var(--bg-card); }

.guide-list-icon { color: var(--accent); font-size: 16px; }

.guide-list-title { font-size: 13px; font-weight: 600; }
.guide-list-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

.guide-list-steps {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
