/**
 * FOMO Engine UI Styles
 * CRITICAL: Retention and engagement driver
 * Matches system-3046 design system (terminal green theme)
 */

/* FOMO Engine Widget */
.fomo-engine-widget {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid #0f0;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: "Courier New", monospace;
  color: #0f0;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.fomo-engine-widget .widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #0f0;
  padding-bottom: 0.5rem;
}

.fomo-engine-widget .widget-title {
  margin: 0;
  font-size: 1.1rem;
  color: #0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fomo-engine-widget .widget-close {
  background: none;
  border: 1px solid #0f0;
  color: #0f0;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 1.2rem;
  line-height: 1;
}

.fomo-engine-widget .widget-close:hover {
  background: rgba(0, 255, 0, 0.1);
}

/* Events Container */
.fomo-events-container {
  margin-bottom: 1.5rem;
}

.fomo-event-card {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid #0f0;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.fomo-event-card:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.fomo-event-card.urgent {
  border-color: #ff0;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
  }
}

.fomo-event-card.subscriber-only {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.05);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-name {
  margin: 0;
  font-size: 1.1rem;
  color: #0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subscriber-badge {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
  color: #ffd700;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-description {
  color: #0f0;
  margin-bottom: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

.event-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(0, 255, 0, 0.02);
  border-left: 2px solid #0f0;
}

.timer-icon {
  font-size: 1.5rem;
}

.timer-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.timer-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0f0;
}

.timer-value.urgent {
  color: #ff0;
  animation: blink 1s infinite;
}

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

.event-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: #0f0;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.75rem;
  text-align: right;
  opacity: 0.7;
}

.participate-button {
  width: 100%;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #0f0;
  color: #0f0;
  padding: 0.75rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.participate-button:hover {
  background: rgba(0, 255, 0, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.participate-button:active {
  background: rgba(0, 255, 0, 0.3);
}

.event-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.event-actions-row .btn-primary,
.event-actions-row .btn-secondary {
  flex: 1;
}

.packages-button {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid #0f0;
  color: #0f0;
  padding: 0.75rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.packages-button:hover {
  background: rgba(0, 255, 0, 0.15);
}

/* Activity Feed */
.fomo-activity-feed {
  margin-top: 1.5rem;
  border-top: 1px solid #0f0;
  padding-top: 1rem;
}

.activity-feed-header {
  margin-bottom: 1rem;
}

.activity-feed-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.activity-feed-content {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 255, 0, 0.02);
  border-left: 2px solid #0f0;
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: rgba(0, 255, 0, 0.05);
}

.activity-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-message {
  color: #0f0;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
}

/* Loading and Empty States */
.loading-message,
.no-events-message,
.no-activity-message {
  text-align: center;
  padding: 2rem;
  color: #0f0;
  opacity: 0.7;
}

.no-events-message .subtext {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.5;
}

/* Notifications */
.fomo-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid #0f0;
  color: #0f0;
  padding: 1rem 1.5rem;
  font-family: "Courier New", monospace;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 300px;
}

.fomo-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.fomo-notification.success {
  border-color: #0f0;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.fomo-notification.error {
  border-color: #f00;
  color: #f00;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Refresh Button */
.refresh-button {
  width: 100%;
  margin-top: 1rem;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid #0f0;
  color: #0f0;
  padding: 0.75rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-button:hover {
  background: rgba(0, 255, 0, 0.1);
}

/* Scrollbar Styling */
.activity-feed-content::-webkit-scrollbar {
  width: 8px;
}

.activity-feed-content::-webkit-scrollbar-track {
  background: rgba(0, 255, 0, 0.1);
}

.activity-feed-content::-webkit-scrollbar-thumb {
  background: #0f0;
  border-radius: 4px;
}

.activity-feed-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 0, 0.8);
}
