/* Alerts/Messages Component CSS */

.messages-container {
  position: relative;
  z-index: 1000;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s ease;
}

.alert--success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.alert--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.alert--warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.alert--info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.alert__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert__content {
  flex: 1;
}

.alert__dismiss {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.alert__dismiss:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Anonymous Prediction Prompt */
.anonymous-prediction-prompt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.anonymous-prediction-prompt__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.anonymous-prediction-prompt__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #16A34A;
}

.anonymous-prediction-prompt__text {
  flex: 1;
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

.anonymous-prediction-prompt__text strong {
  color: #000000;
}

.anonymous-prediction-prompt__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.anonymous-prediction-prompt__signup {
  background: #16A34A;
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.anonymous-prediction-prompt__signup:hover {
  background: #15803D;
  color: #FFFFFF;
  text-decoration: none;
}

.anonymous-prediction-prompt__dismiss {
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.anonymous-prediction-prompt__dismiss:hover {
  background: #F9FAFB;
  color: #374151;
}

/* Notification System */
.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 400px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 1;
  transition: opacity 0.3s ease;
  font-size: 14px;
  color: #374151;
}

.notification--success {
  border-color: #BBF7D0;
  background: #F0FDF4;
  color: #166534;
}

.notification--error {
  border-color: #FECACA;
  background: #FEF2F2;
  color: #991B1B;
}

.notification--warning {
  border-color: #FDE68A;
  background: #FFFBEB;
  color: #92400E;
}

.notification--info {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1E40AF;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .anonymous-prediction-prompt {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  
  .anonymous-prediction-prompt__content {
    padding: 12px;
    gap: 8px;
  }
  
  .anonymous-prediction-prompt__text {
    font-size: 13px;
  }
  
  .anonymous-prediction-prompt__actions {
    gap: 6px;
  }
  
  .notification {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
} 