﻿/* ═══════════════════════════════════════════════════════════════════════════
   CHESS NYC - Modern Toast Notification System
   ═══════════════════════════════════════════════════════════════════════════ */

.cny-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: calc(100% - 32px);
  pointer-events: none;
}

@media (max-width: 576px) {
  .cny-toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

.cny-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-family: inherit;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cny-toast.cny-toast--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cny-toast.cny-toast--hiding {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
}

/* Icons & Colors */
.cny-toast-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-top: 1px;
}

/* Toast Variants */
.cny-toast--warning {
  border-left: 4px solid #f59e0b;
}
.cny-toast--warning .cny-toast-icon {
  background: #fef3c7;
  color: #d97706;
}

.cny-toast--success {
  border-left: 4px solid #10b981;
}
.cny-toast--success .cny-toast-icon {
  background: #d1fae5;
  color: #059669;
}

.cny-toast--danger,
.cny-toast--error {
  border-left: 4px solid #ef4444;
}
.cny-toast--danger .cny-toast-icon,
.cny-toast--error .cny-toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.cny-toast--info {
  border-left: 4px solid #6366f1;
}
.cny-toast--info .cny-toast-icon {
  background: #e0e7ff;
  color: #4f46e5;
}

/* Content */
.cny-toast-content {
  flex: 1;
  min-width: 0;
}

.cny-toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 2px;
  color: #0f172a;
}

.cny-toast-message {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #475569;
}

/* Close Button */
.cny-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
  margin-left: 4px;
  margin-top: -2px;
}

.cny-toast-close:hover {
  background: #f1f5f9;
  color: #334155;
}

/* Progress bar */
.cny-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.06);
}

.cny-toast-progress-bar {
  height: 100%;
  width: 100%;
  transition: width linear;
}

.cny-toast--warning .cny-toast-progress-bar { background: #f59e0b; }
.cny-toast--success .cny-toast-progress-bar { background: #10b981; }
.cny-toast--danger .cny-toast-progress-bar,
.cny-toast--error .cny-toast-progress-bar { background: #ef4444; }
.cny-toast--info .cny-toast-progress-bar { background: #6366f1; }
