/* Toast Component */

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background-color: #2a2f36;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: var(--font-pretendard, 'Pretendard', sans-serif);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  max-width: 90vw;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--hiding {
  opacity: 0;
  transform: translateY(-20px);
}

/* 토스트 타입별 스타일 */
.toast--info {
  background-color: #2a2f36;
}

.toast--success {
  background-color: #28a745;
}

.toast--warning {
  background-color: #ffc107;
  color: #1a1d21;
}

.toast--error {
  background-color: #dc3545;
}

.toast__message {
  flex: 1;
}

.toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.toast__close:hover {
  opacity: 1;
}

/* 모바일 대응 */
@media (max-width: 767px) {
  .toast-container {
    top: auto;
    bottom: 20px;
    left: 16px;
    right: 16px;
    transform: none;
  }

  .toast {
    width: 100%;
    max-width: none;
  }

  .toast--visible {
    transform: translateY(0);
  }

  .toast--hiding {
    transform: translateY(20px);
  }
}
