/* assets/css/buzz-slider.css */
/* Buzz Keywords Slider Styles */

.buzz-slider {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Courier New', monospace;
}

/* Toggle Button */
.buzz-slider-toggle {
  background: linear-gradient(135deg, #ff7be0 0%, #d65abc 100%);
  color: #000;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 123, 224, 0.4);
  transition: all 0.3s ease;
  border: 2px solid #ff9ed6;
  animation: buzzPulse 2s infinite;
}

.buzz-slider-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 123, 224, 0.6);
  background: linear-gradient(135deg, #ff9ed6 0%, #ff7be0 100%);
}

@keyframes buzzPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 123, 224, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 123, 224, 0.7);
  }
}

.buzz-icon {
  font-size: 18px;
  animation: buzzSpin 3s linear infinite;
}

@keyframes buzzSpin {
  0%, 90% {
    transform: rotate(0deg);
  }
  95%, 100% {
    transform: rotate(360deg);
  }
}

.buzz-label {
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

/* Expanded Content */
.buzz-slider-content {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #1a1a1a;
  border: 2px solid #ff7be0;
  border-radius: 12px;
  padding: 20px;
  width: 350px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.buzz-slider.expanded .buzz-slider-content {
  display: block;
}

/* Header */
.buzz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #6ba3d4;
}

.buzz-header h3 {
  margin: 0;
  color: #ff7be0;
  font-size: 16px;
  letter-spacing: 1px;
}

.buzz-close {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 24px;
  transition: color 0.3s ease;
}

.buzz-close:hover {
  color: #ff6b6b;
}

/* Hot Topic */
.buzz-hot-topic {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.buzz-hot-label {
  font-size: 11px;
  color: #000;
  font-weight: bold;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.buzz-hot-keyword {
  font-size: 20px;
  color: #000;
  font-weight: bold;
  letter-spacing: 2px;
  display: block;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Keywords Container */
.buzz-keywords-container,
.buzz-phrases-container {
  margin-bottom: 15px;
}

.buzz-keywords-container h4,
.buzz-phrases-container h4 {
  margin: 0 0 10px 0;
  color: #ff9ed6;
  font-size: 12px;
  letter-spacing: 1px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

/* Keywords */
.buzz-keywords {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.buzz-keyword-item {
  background: #2a2a2a;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border: 1px solid #333;
}

.buzz-keyword-item:hover {
  background: #333;
  border-color: #ff7be0;
  transform: translateX(5px);
}

.buzz-keyword-item.priority {
  border-left: 3px solid #ffd93d;
  background: linear-gradient(90deg, #3a3520 0%, #2a2a2a 20%);
}

.buzz-rank {
  color: #ff7be0;
  font-weight: bold;
  font-size: 11px;
  min-width: 25px;
}

.buzz-keyword-text {
  flex: 1;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.buzz-count {
  background: #ff7be0;
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
}

.buzz-source-icons {
  display: flex;
  gap: 4px;
  font-size: 10px;
}

.source-icon {
  opacity: 0.8;
}

/* Phrases */
.buzz-phrases {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buzz-phrase-item {
  background: #2a2a2a;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  transition: all 0.2s ease;
}

.buzz-phrase-item:hover {
  background: #333;
  border-color: #ff9ed6;
}

.buzz-phrase-text {
  color: #ff9ed6;
  font-size: 12px;
  font-style: italic;
}

.buzz-phrase-count {
  color: #999;
  font-size: 11px;
}

/* Stats */
.buzz-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #333;
  font-size: 11px;
  color: #999;
}

.buzz-sources {
  color: #ff7be0;
  font-weight: bold;
}

/* Auto Rotate (in collapsed state) */
.buzz-auto-rotate {
  display: none;
}

.buzz-slider:not(.expanded) .buzz-auto-rotate {
  display: none;
}

.buzz-rotating-keyword {
  transition: opacity 0.3s ease;
}

/* Scrollbar Styling */
.buzz-slider-content::-webkit-scrollbar,
.buzz-keywords::-webkit-scrollbar {
  width: 6px;
}

.buzz-slider-content::-webkit-scrollbar-track,
.buzz-keywords::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.buzz-slider-content::-webkit-scrollbar-thumb,
.buzz-keywords::-webkit-scrollbar-thumb {
  background: #ff7be0;
  border-radius: 3px;
}

.buzz-slider-content::-webkit-scrollbar-thumb:hover,
.buzz-keywords::-webkit-scrollbar-thumb:hover {
  background: #ff9ed6;
}

/* Responsive */
@media (max-width: 768px) {
  .buzz-slider {
    bottom: 10px;
    right: 10px;
  }

  .buzz-slider-content {
    width: calc(100vw - 40px);
    max-width: 350px;
  }

  .buzz-slider-toggle {
    padding: 10px 16px;
  }
}

/* Loading State */
.buzz-keyword-item.loading,
.buzz-phrase-item.loading {
  animation: buzzLoading 1.5s infinite;
}

@keyframes buzzLoading {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
