/* ─── Vibe Summary — Sparkle Button + Popover ────────── */

/* ─── Sparkle button ──────────────────────────────────── */
.vibe-sparkle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(167, 139, 250, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: relative;
}
.vibe-sparkle-btn:hover {
  background: rgba(167, 139, 250, 0.2);
  transform: scale(1.08);
}
.vibe-sparkle-btn:active {
  transform: scale(0.95);
}
.vibe-sparkle-icon {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.4));
  transition: filter 0.25s ease;
}
.vibe-sparkle-btn:hover .vibe-sparkle-icon {
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6));
}

/* ─── Popover ─────────────────────────────────────────── */
.vibe-popover {
  position: absolute;
  left: 0; right: 0;
  z-index: 100;
  max-width: 380px;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 16px;
  padding: 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(167, 139, 250, 0.06);
  margin-top: 8px;
  overflow: hidden;
}
.vibe-popover--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Arrow */
.vibe-popover-arrow {
  display: none; /* clean look without arrow */
}

/* Content wrapper */
.vibe-popover-content {
  padding: 16px 18px;
}

/* ─── Header ──────────────────────────────────────────── */
.vibe-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vibe-header .vibe-sparkle-icon {
  width: 18px;
  height: 18px;
}
.vibe-header-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #a78bfa, #c084fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Section (venue or festival) ─────────────────────── */
.vibe-section {
  margin-bottom: 14px;
}
.vibe-section:last-child {
  margin-bottom: 0;
}
.vibe-section + .vibe-section {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.vibe-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #8b949e);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* ─── Summary text ────────────────────────────────────── */
.vibe-summary-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text, #e8e6f0);
  margin: 0 0 10px;
}

/* ─── Tags ────────────────────────────────────────────── */
.vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.vibe-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.12);
  white-space: nowrap;
}

/* ─── Sources toggle + list ───────────────────────────── */
.vibe-sources-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #6b6b8a);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.vibe-sources-toggle:hover {
  color: var(--text, #e8e6f0);
}
.vibe-toggle-chevron {
  transition: transform 0.25s ease;
}

.vibe-sources-list {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 2px;
}
.vibe-sources-list--visible {
  display: flex;
}
.vibe-source-link {
  font-size: 11px;
  color: #a78bfa;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}
.vibe-source-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

/* ─── Updated timestamp ───────────────────────────────── */
.vibe-updated {
  font-size: 10px;
  color: var(--muted, #4a4a6a);
  margin-top: 6px;
}

/* ─── Empty state ─────────────────────────────────────── */
.vibe-empty {
  font-size: 12px;
  color: var(--muted, #6b6b8a);
  text-align: center;
  padding: 8px 0;
}

/* ─── Loading shimmer ─────────────────────────────────── */
.vibe-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.vibe-loading-shimmer {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(167, 139, 250, 0.06) 0%,
    rgba(167, 139, 250, 0.12) 50%,
    rgba(167, 139, 250, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: vibe-shimmer 1.8s ease-in-out infinite;
}
.vibe-loading-shimmer--short {
  width: 65%;
}
@keyframes vibe-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Map card context — tighter popover ──────────────── */
.map-event-card .vibe-popover {
  max-width: 340px;
}
.map-event-card .vibe-popover-content {
  padding: 14px 16px;
  max-height: 240px;
  overflow-y: auto;
}
