/* ========================================
   CUSTOM CONFIRMATION & NOTIFICATIONS
   ======================================== */

.toast {
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--color-primary);
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast.info {
  border-left-color: #3b82f6;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.toast-message {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #333;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.hiding {
  animation: slideOutRight 0.3s ease forwards;
}

/* Dark mode */
body.dark-mode .toast {
  background: var(--surface2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .toast-title {
  color: #e5e7eb;
}

body.dark-mode .toast-message {
  color: #9ca3af;
}

body.dark-mode .toast-close {
  color: #6b7280;
}

body.dark-mode .toast-close:hover {
  background: var(--border-hi);
  color: #e5e7eb;
}

/* Dark mode: Market prices & external links */
body.dark-mode .market-price-card {
  background: var(--bg-elevated, #252240);
  border-color: var(--border-color, #3d3a5c);
}

body.dark-mode .market-price-card.cm {
  border-left-color: #e74c3c;
}

body.dark-mode .market-price-card.justtcg {
  border-left-color: #3498db;
}

body.dark-mode .market-price-main {
  color: #f3f4f6;
}

body.dark-mode .market-price-detail-value {
  color: #d1d5db;
}

body.dark-mode .market-price-details {
  border-top-color: #444;
}

body.dark-mode .pokemon-tag {
  background: #2a3555;
  color: #8bb4f0;
  border-color: #3d4f7a;
}

body.dark-mode .pokemon-tag:hover {
  background: #344168;
}

/* Dark mode: uniform hover for every clickable-filter chip in the
   card modal — matches the light-mode shared selector list in
   modals.css. */
body.dark-mode .info-value.clickable-filter:hover,
body.dark-mode .stage-badge.clickable-filter:hover,
body.dark-mode .type-badge.clickable-filter:hover,
body.dark-mode .pokemon-tag.clickable-filter:hover,
body.dark-mode .modal-lang-flag.clickable-filter:hover {
  background: rgba(102, 126, 234, 0.2) !important;
  border-color: rgba(102, 126, 234, 0.45) !important;
  color: #8bb4f0;
}

body.dark-mode #modalSourceSection,
body.dark-mode #modalMarketPricesSection,
body.dark-mode #modalExternalLinksSection {
  border-top-color: #444;
}

body.dark-mode .source-type-badge {
  background: #2a2a4a;
  color: #c0c4d0;
}

body.dark-mode .source-lang-label {
  color: #8890a0;
}

body.dark-mode .source-img-btn {
  background: #2a2a4a;
  border-color: #444;
  color: #9ca3af;
}

body.dark-mode .source-img-btn:hover {
  background: #3a3a6a;
  color: #a5b4fc;
  border-color: #6366f1;
}

body.dark-mode .source-name {
  color: #d0d4e0;
}

body.dark-mode .source-link {
  color: #60a5fa;
}

body.dark-mode .source-link:hover {
  color: #93c5fd;
}

/* ========================================
   MISSING CARDS BANNER
   ======================================== */

.missing-cards-banner {
  background: var(--cool-dim, #eff6ff);
  border: 1px solid var(--cool, #93c5fd);
  border-radius: 10px;
  padding: 14px 20px;
  margin: 12px 0;
  animation: slideDown 0.3s ease;
}

.missing-cards-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.missing-cards-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 200px;
}

.missing-cards-banner-text strong {
  color: var(--cool, #1e40af);
  font-size: 14px;
}

.missing-cards-banner-text span {
  color: var(--text-dim, #3b82f6);
  font-size: 13px;
}

.missing-cards-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

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

/* Dark mode */
body.dark-mode .missing-cards-banner {
  background: var(--cool-dim);
  border-color: var(--cool);
}

body.dark-mode .missing-cards-banner-text strong {
  color: var(--cool);
}

body.dark-mode .missing-cards-banner-text span {
  color: var(--text-dim);
}
