/* Yield Advisory Notification - Subtle glass-morphic bubble at bottom-left */

.yield-advisory-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  z-index: 9000;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.yield-advisory-notification.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.yield-advisory-notification.fade-in {
  animation: advisorySlideIn 0.3s ease forwards;
}

.yield-advisory-notification.fade-out {
  animation: advisoryFadeOut 0.3s ease forwards;
}

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

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

/* Glass-morphic card */
.advisory-content {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.advisory-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.advisory-icon {
  font-size: 18px;
  line-height: 1;
}

.advisory-title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  color: var(--color-text-primary, #333);
}

.advisory-dismiss {
  background: transparent;
  border: none;
  color: #666;
  color: var(--color-text-secondary, #666);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.advisory-dismiss:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.advisory-body {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
  color: var(--color-text-primary, #444);
}

.advisory-body strong {
  color: #222;
  font-weight: 600;
}

.advisory-reason {
  color: #555;
  color: var(--color-text-secondary, #555);
  font-style: italic;
}

.advisory-dice {
  color: #2563eb;
  font-weight: 600;
}

.advisory-confidence {
  color: #666;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .yield-advisory-notification {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: calc(20px + env(safe-area-inset-left, 0px));
    max-width: calc(100vw - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .advisory-content {
    background: rgba(40, 40, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .advisory-title {
    color: #e0e0e0;
  }
  
  .advisory-dismiss {
    color: #aaa;
  }
  
  .advisory-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
  }
  
  .advisory-body {
    color: #ccc;
  }
  
  .advisory-body strong {
    color: #e0e0e0;
  }
  
  .advisory-reason {
    color: #999;
  }
  
  .advisory-dice {
    color: #60a5fa;
  }
  
  .advisory-confidence {
    color: #aaa;
  }
}
