/**
 * Toast Notification Styles
 *
 * 모바일 친화적인 Toast 알림 스타일
 */

/* Toast 컨테이너 */
.toast-container {
    position: fixed;
    bottom: 80px; /* 하단 네비게이션 위에 표시 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90%;
    width: auto;
}

/* Toast 기본 스타일 */
.toast {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 14px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    cursor: pointer;
    max-width: 100%;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toast 표시 애니메이션 */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast 아이콘 */
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

/* Toast 메시지 */
.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* Success Toast */
.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* Error Toast */
.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* Info Toast */
.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* Warning Toast */
.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .toast-container {
        bottom: 70px; /* 모바일에서 하단 네비게이션 간격 조정 */
        max-width: 85%;
    }

    .toast {
        padding: 12px 18px;
        font-size: 13px;
        max-width: 100%;
    }

    .toast-icon {
        font-size: 16px;
    }
}

/* 다크 모드 지원 (추후 구현 시) */
[data-theme="dark"] .toast {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

[data-theme="dark"] .toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

[data-theme="dark"] .toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

[data-theme="dark"] .toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

[data-theme="dark"] .toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* 호버 효과 (데스크톱) */
@media (hover: hover) {
    .toast:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    }
}

/* 여러 Toast가 쌓일 때 */
.toast-container > .toast:not(:last-child) {
    margin-bottom: 8px;
}
