/* ================================
   SCROLL HOVER CARD (3D -> 2D)
   Similar to Claude bot speech bubbles
   ================================ */

.scroll-hover-card {
  position: fixed;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.98));
  color: #1f2937;
  padding: 16px 20px;
  border-radius: 16px;
  border: 3px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: 'Arial', sans-serif;
  max-width: 350px;
  min-width: 250px;
  z-index: 9999
  pointer-events: none;
  animation: cardPop 0.3s ease;
}

.scroll-hover-card::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid rgba(245, 245, 245, 0.98);
}

/* Card sections */
.card-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.card-badge {
  font-size: 12px;
  font-weight: bold;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-author {
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 6px;
}

.card-stats {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.card-hint {
  font-size: 12px;
  color: #d1d5db;
  font-style: italic;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(209, 213, 219, 0.3);
  text-align: center;
}

/* Animation */
@keyframes cardPop {
  0% {
    transform: translate(-50%, -100%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -100%) scale(1.05);
  }
  100% {
    transform: translate(-50%, -100%) scale(1);
    opacity: 1;
  }
}

/* Content type color variations */
.scroll-hover-card[data-type="poll"] {
  border-color: rgba(59, 130, 246, 0.6); /* Blue */
}

.scroll-hover-card[data-type="article"] {
  border-color: rgba(16, 185, 129, 0.6); /* Green */
}

.scroll-hover-card[data-type="cartoon"] {
  border-color: rgba(245, 158, 11, 0.6); /* Orange */
}
